org.sakaiproject.coursemanagement.impl.job
Class ClassPathCMSyncJob

java.lang.Object
  extended by org.sakaiproject.coursemanagement.impl.job.CmSynchronizer
      extended by org.sakaiproject.coursemanagement.impl.job.ClassPathCMSyncJob
All Implemented Interfaces:
org.quartz.Job

public class ClassPathCMSyncJob
extends CmSynchronizer
implements org.quartz.Job

A sample quartz job to synchronize the CM data in Sakai's hibernate impl with an xml file available in the classpath.

Author:
Josh Holtzman

Field Summary
protected  String classPathToXml
           
 
Fields inherited from class org.sakaiproject.coursemanagement.impl.job.CmSynchronizer
cmAdmin, cmService
 
Constructor Summary
ClassPathCMSyncJob()
           
 
Method Summary
 void destroy()
           
 void execute(org.quartz.JobExecutionContext arg0)
          
 InputStream getXmlInputStream()
          
 void init()
           
protected  void loginToSakai()
           
protected  void logoutFromSakai()
           
 void setClassPathToXml(String classPathToXml)
           
 
Methods inherited from class org.sakaiproject.coursemanagement.impl.job.CmSynchronizer
addAcademicSession, addCanonicalCourse, addCourseOffering, addCourseSet, addEnrollmentSet, addSection, getChildValues, getDate, reconcileAcademicSessions, reconcileCanonicalCourses, reconcileCourseOfferings, reconcileCourseSets, reconcileCurrentAcademicSessions, reconcileEnrollments, reconcileEnrollmentSets, reconcileOfficialInstructors, reconcileSections, setCmAdmin, setCmService, syncAllCmObjects, updateAcademicSession, updateCanonicalCourse, updateCourseOffering, updateCourseOfferingMembers, updateCourseSet, updateCourseSetMembers, updateEnrollmentSet, updateOfficialInstructors, updateSection, updateSectionMembers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classPathToXml

protected String classPathToXml
Constructor Detail

ClassPathCMSyncJob

public ClassPathCMSyncJob()
Method Detail

init

public void init()

destroy

public void destroy()

getXmlInputStream

public InputStream getXmlInputStream()

Specified by:
getXmlInputStream in class CmSynchronizer

execute

public void execute(org.quartz.JobExecutionContext arg0)
             throws org.quartz.JobExecutionException

Specified by:
execute in interface org.quartz.Job
Throws:
org.quartz.JobExecutionException

loginToSakai

protected void loginToSakai()

logoutFromSakai

protected void logoutFromSakai()

setClassPathToXml

public void setClassPathToXml(String classPathToXml)


Copyright © 2011 Sakai Project. All Rights Reserved.