org.sakaiproject.coursemanagement.impl.job
Class CmSynchronizer

java.lang.Object
  extended by org.sakaiproject.coursemanagement.impl.job.CmSynchronizer
Direct Known Subclasses:
ClassPathCMSyncJob

public abstract class CmSynchronizer
extends Object

Synchronizes the state of the local CourseManagementService with an external data source.

Author:
Josh Holtzman

Field Summary
protected  CourseManagementAdministration cmAdmin
           
protected  CourseManagementService cmService
           
 
Constructor Summary
CmSynchronizer()
           
 
Method Summary
protected  void addAcademicSession(org.jdom.Element element)
           
protected  void addCanonicalCourse(org.jdom.Element element)
           
protected  CourseOffering addCourseOffering(org.jdom.Element element)
           
protected  CourseSet addCourseSet(org.jdom.Element element)
           
protected  EnrollmentSet addEnrollmentSet(org.jdom.Element element)
           
protected  Section addSection(org.jdom.Element element)
           
protected  Set getChildValues(org.jdom.Element element)
           
protected  Date getDate(String str)
           
protected abstract  InputStream getXmlInputStream()
           
protected  void reconcileAcademicSessions(org.jdom.Document doc)
           
protected  void reconcileCanonicalCourses(org.jdom.Document doc)
           
protected  void reconcileCourseOfferings(org.jdom.Document doc)
           
protected  void reconcileCourseSets(org.jdom.Document doc)
           
protected  void reconcileCurrentAcademicSessions(org.jdom.Document doc)
           
protected  void reconcileEnrollments(org.jdom.Element enrollmentsElement, EnrollmentSet enrollmentSet)
           
protected  void reconcileEnrollmentSets(org.jdom.Document doc)
           
protected  void reconcileOfficialInstructors(org.jdom.Element esElement, EnrollmentSet enrollmentSet)
           
protected  void reconcileSections(org.jdom.Document doc)
           
 void setCmAdmin(CourseManagementAdministration cmAdmin)
           
 void setCmService(CourseManagementService cmService)
           
 void syncAllCmObjects()
           
protected  void updateAcademicSession(AcademicSession session, org.jdom.Element element)
           
protected  void updateCanonicalCourse(CanonicalCourse canonicalCourse, org.jdom.Element element)
           
protected  CourseOffering updateCourseOffering(CourseOffering courseOffering, org.jdom.Element element)
           
protected  void updateCourseOfferingMembers(org.jdom.Element membersElement, CourseOffering courseOffering)
           
protected  CourseSet updateCourseSet(CourseSet courseSet, org.jdom.Element element)
           
protected  void updateCourseSetMembers(org.jdom.Element membersElement, CourseSet courseSet)
           
protected  EnrollmentSet updateEnrollmentSet(EnrollmentSet enrollmentSet, org.jdom.Element element)
           
protected  void updateOfficialInstructors(EnrollmentSet enr, org.jdom.Element element)
           
protected  Section updateSection(Section section, org.jdom.Element element)
           
protected  void updateSectionMembers(org.jdom.Element membersElement, Section section)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cmService

protected CourseManagementService cmService

cmAdmin

protected CourseManagementAdministration cmAdmin
Constructor Detail

CmSynchronizer

public CmSynchronizer()
Method Detail

getXmlInputStream

protected abstract InputStream getXmlInputStream()

syncAllCmObjects

public void syncAllCmObjects()

reconcileAcademicSessions

protected void reconcileAcademicSessions(org.jdom.Document doc)

reconcileCurrentAcademicSessions

protected void reconcileCurrentAcademicSessions(org.jdom.Document doc)

addAcademicSession

protected void addAcademicSession(org.jdom.Element element)

updateAcademicSession

protected void updateAcademicSession(AcademicSession session,
                                     org.jdom.Element element)

reconcileCanonicalCourses

protected void reconcileCanonicalCourses(org.jdom.Document doc)

addCanonicalCourse

protected void addCanonicalCourse(org.jdom.Element element)

updateCanonicalCourse

protected void updateCanonicalCourse(CanonicalCourse canonicalCourse,
                                     org.jdom.Element element)

reconcileCourseOfferings

protected void reconcileCourseOfferings(org.jdom.Document doc)

updateCourseOffering

protected CourseOffering updateCourseOffering(CourseOffering courseOffering,
                                              org.jdom.Element element)

addCourseOffering

protected CourseOffering addCourseOffering(org.jdom.Element element)

updateCourseOfferingMembers

protected void updateCourseOfferingMembers(org.jdom.Element membersElement,
                                           CourseOffering courseOffering)

reconcileEnrollmentSets

protected void reconcileEnrollmentSets(org.jdom.Document doc)

reconcileEnrollments

protected void reconcileEnrollments(org.jdom.Element enrollmentsElement,
                                    EnrollmentSet enrollmentSet)

reconcileOfficialInstructors

protected void reconcileOfficialInstructors(org.jdom.Element esElement,
                                            EnrollmentSet enrollmentSet)

getChildValues

protected Set getChildValues(org.jdom.Element element)

updateOfficialInstructors

protected void updateOfficialInstructors(EnrollmentSet enr,
                                         org.jdom.Element element)

addEnrollmentSet

protected EnrollmentSet addEnrollmentSet(org.jdom.Element element)

updateEnrollmentSet

protected EnrollmentSet updateEnrollmentSet(EnrollmentSet enrollmentSet,
                                            org.jdom.Element element)

reconcileSections

protected void reconcileSections(org.jdom.Document doc)

updateSection

protected Section updateSection(Section section,
                                org.jdom.Element element)

addSection

protected Section addSection(org.jdom.Element element)

updateSectionMembers

protected void updateSectionMembers(org.jdom.Element membersElement,
                                    Section section)

reconcileCourseSets

protected void reconcileCourseSets(org.jdom.Document doc)

updateCourseSetMembers

protected void updateCourseSetMembers(org.jdom.Element membersElement,
                                      CourseSet courseSet)

updateCourseSet

protected CourseSet updateCourseSet(CourseSet courseSet,
                                    org.jdom.Element element)

addCourseSet

protected CourseSet addCourseSet(org.jdom.Element element)

getDate

protected Date getDate(String str)

setCmAdmin

public void setCmAdmin(CourseManagementAdministration cmAdmin)

setCmService

public void setCmService(CourseManagementService cmService)


Copyright © 2011 Sakai Project. All Rights Reserved.