Interface CourseManagementAdministration
-
public interface CourseManagementAdministrationA service that provides for the administration of enterprise-defined course data. This service is typically not used inside Sakai, and should not be exposed until appropriate permission and reconciliation issues are solved.- Author:
- Josh Holtzman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCanonicalCourseToCourseSet(String courseSetEid, String canonicalCourseEid)Adds a CanonicalCourse to a CourseSet.voidaddCourseOfferingToCourseSet(String courseSetEid, String courseOfferingEid)Adds a CourseOffering to a CourseSet.MembershipaddOrUpdateCourseOfferingMembership(String userId, String role, String courseOfferingEid, String status)Adds a user to a CourseOffering.MembershipaddOrUpdateCourseSetMembership(String userId, String role, String courseSetEid, String status)Adds a user to a CourseSet.EnrollmentaddOrUpdateEnrollment(String userId, String enrollmentSetEid, String enrollmentStatus, String credits, String gradingScheme)Adds an Enrollment to an EnrollmentSet.EnrollmentaddOrUpdateEnrollment(String userId, String enrollmentSetEid, String enrollmentStatus, String credits, String gradingScheme, Date dropDate)Adds an Enrollment to an EnrollmentSet.MembershipaddOrUpdateSectionMembership(String userId, String role, String sectionEid, String status)Adds a user to a Section.MembershipaddOrUpdateSectionMembership(String userId, String role, Section sec, String status)Adds a user to a Section.SectionCategoryaddSectionCategory(String categoryCode, String categoryDescription)AcademicSessioncreateAcademicSession(String eid, String title, String description, Date startDate, Date endDate)Creates a new AcademicSession.CanonicalCoursecreateCanonicalCourse(String eid, String title, String description)Creates a new CanonicalCourse.CourseOfferingcreateCourseOffering(String eid, String title, String description, String status, String academicSessionEid, String canonicalCourseEid, Date startDate, Date endDate)Creates a new CourseOffering.CourseSetcreateCourseSet(String eid, String title, String description, String category, String parentCourseSetEid)Creates a new CourseSet.EnrollmentSetcreateEnrollmentSet(String eid, String title, String description, String category, String defaultEnrollmentCredits, String courseOfferingEid, Set officialInstructors)Creates a new EnrollmentSet.SectioncreateSection(String eid, String title, String description, String category, String parentSectionEid, String courseOfferingEid, String enrollmentSetEid)Creates a new Section.MeetingnewSectionMeeting(String sectionEid, String location, Time startTime, Time finishTime, String notes)Creates a new meeting instance.voidremoveAcademicSession(String eid)Removes an academic session and all CourseOfferings associated with this academic session.voidremoveAllSectionMeetings(String sectionEid)Removes all meetings from the sectionvoidremoveCanonicalCourse(String eid)Removes a canonical course and any course offerings associated with this canonical course.booleanremoveCanonicalCourseFromCourseSet(String courseSetEid, String canonicalCourseEid)Removes a CanonicalCourse from a CourseSet.voidremoveCourseOffering(String eid)Removes a course offering, any memberships in the course offering, as well as sections and enrollment sets that belong to this course offering.booleanremoveCourseOfferingFromCourseSet(String courseSetEid, String courseOfferingEid)Removes a CourseOffering from a CourseSet.booleanremoveCourseOfferingMembership(String userId, String courseOfferingEid)Removes a user from a CourseOffering.voidremoveCourseSet(String eid)Removes a course set and any memberships in the course set.booleanremoveCourseSetMembership(String userId, String courseSetEid)Removes a user from a CourseSet.booleanremoveEnrollment(String userId, String enrollmentSetEid)Removes an Enrollment from an EnrollmentSet by setting the Enrollment to dropped=true.voidremoveEnrollmentSet(String eid)Removes an enrollment set and all associated enrollments.booleanremoveEquivalency(CanonicalCourse canonicalCourse)Removes a CanonicalCourse from its set of equivalent CanonicalCourses, if it is a member of such a set.booleanremoveEquivalency(CourseOffering courseOffering)Removes a CourseOffering from its set of equivalent CourseOfferings, if it is a member of such a set.voidremoveSection(String eid)Removes a section and any memberships in the section.booleanremoveSectionMembership(String userId, String sectionEid)Removes a user from a Section.voidsetCurrentAcademicSessions(List<String> academicSessionEids)Determines which sessions will be returned by getCurrentAcademicSessions().voidsetEquivalentCanonicalCourses(Set canonicalCourses)Creates an equivalency (cross listing) between CanonicalCoursesvoidsetEquivalentCourseOfferings(Set courseOfferings)Creates an equivalency (cross listing) betweencourseOfferingsvoidupdateAcademicSession(AcademicSession academicSession)Updates an existing AcademicSession.voidupdateCanonicalCourse(CanonicalCourse canonicalCourse)Updates an existing CanonicalCourse.voidupdateCourseOffering(CourseOffering courseOffering)Updates an existing CourseOffering.voidupdateCourseSet(CourseSet courseSet)Updates an existing CourseSet.voidupdateEnrollmentSet(EnrollmentSet enrollmentSet)Updates an existing EnrollmentSet.voidupdateSection(Section section)Updates an existing Section.
-
-
-
Method Detail
-
createAcademicSession
AcademicSession createAcademicSession(String eid, String title, String description, Date startDate, Date endDate) throws IdExistsException
Creates a new AcademicSession.- Parameters:
eid-title-description-startDate-endDate-- Throws:
IdExistsException
-
updateAcademicSession
void updateAcademicSession(AcademicSession academicSession)
Updates an existing AcademicSession.- Parameters:
academicSession- The AcademicSession to be updated
-
removeAllSectionMeetings
void removeAllSectionMeetings(String sectionEid)
Removes all meetings from the section- Parameters:
sectionEid-
-
removeAcademicSession
void removeAcademicSession(String eid)
Removes an academic session and all CourseOfferings associated with this academic session.- Parameters:
eid- The enterprise id of the academic session
-
createCourseSet
CourseSet createCourseSet(String eid, String title, String description, String category, String parentCourseSetEid) throws IdExistsException
Creates a new CourseSet.- Parameters:
eid-title-description-category-parentCourseSetEid- The parent CourseSet's eid, or null if none.- Throws:
IdExistsException
-
updateCourseSet
void updateCourseSet(CourseSet courseSet)
Updates an existing CourseSet.- Parameters:
courseSet-
-
removeCourseSet
void removeCourseSet(String eid)
Removes a course set and any memberships in the course set.- Parameters:
eid- The enterprise id of the course set
-
createCanonicalCourse
CanonicalCourse createCanonicalCourse(String eid, String title, String description) throws IdExistsException
Creates a new CanonicalCourse.- Parameters:
eid-title-description-- Throws:
IdExistsException
-
updateCanonicalCourse
void updateCanonicalCourse(CanonicalCourse canonicalCourse)
Updates an existing CanonicalCourse.- Parameters:
canonicalCourse-
-
addCanonicalCourseToCourseSet
void addCanonicalCourseToCourseSet(String courseSetEid, String canonicalCourseEid) throws IdNotFoundException
Adds a CanonicalCourse to a CourseSet.- Parameters:
courseSetEid-canonicalCourseEid-- Throws:
IdNotFoundException
-
removeCanonicalCourseFromCourseSet
boolean removeCanonicalCourseFromCourseSet(String courseSetEid, String canonicalCourseEid)
Removes a CanonicalCourse from a CourseSet.- Parameters:
courseSetEid-canonicalCourseEid-- Returns:
- Whether the CanonicalCourse was a member of the CourseSet and was successfully removed.
-
setEquivalentCanonicalCourses
void setEquivalentCanonicalCourses(Set canonicalCourses)
Creates an equivalency (cross listing) between CanonicalCourses- Parameters:
canonicalCourses-
-
removeEquivalency
boolean removeEquivalency(CanonicalCourse canonicalCourse)
Removes a CanonicalCourse from its set of equivalent CanonicalCourses, if it is a member of such a set.- Parameters:
canonicalCourse-- Returns:
- Whether the equivalency existed and was removed.
-
removeCanonicalCourse
void removeCanonicalCourse(String eid)
Removes a canonical course and any course offerings associated with this canonical course.- Parameters:
eid- The enterprise id of the canonical course
-
createCourseOffering
CourseOffering createCourseOffering(String eid, String title, String description, String status, String academicSessionEid, String canonicalCourseEid, Date startDate, Date endDate) throws IdExistsException
Creates a new CourseOffering.- Parameters:
eid-title-description-academicSessionEid-canonicalCourseEid-startDate-endDate-- Throws:
IdExistsException
-
updateCourseOffering
void updateCourseOffering(CourseOffering courseOffering)
Updates an existing CourseOffering.- Parameters:
courseOffering-
-
setEquivalentCourseOfferings
void setEquivalentCourseOfferings(Set courseOfferings)
Creates an equivalency (cross listing) betweencourseOfferings- Parameters:
courseOfferings-
-
removeEquivalency
boolean removeEquivalency(CourseOffering courseOffering)
Removes a CourseOffering from its set of equivalent CourseOfferings, if it is a member of such a set.- Parameters:
courseOffering-- Returns:
- Whether the equivalency existed and was removed.
-
addCourseOfferingToCourseSet
void addCourseOfferingToCourseSet(String courseSetEid, String courseOfferingEid)
Adds a CourseOffering to a CourseSet.- Parameters:
courseSetEid-courseOfferingEid-
-
removeCourseOfferingFromCourseSet
boolean removeCourseOfferingFromCourseSet(String courseSetEid, String courseOfferingEid)
Removes a CourseOffering from a CourseSet.- Parameters:
courseSetEid-courseOfferingEid-- Returns:
- Whether the CourseOffering was in the CourseSet and was removed.
-
removeCourseOffering
void removeCourseOffering(String eid)
Removes a course offering, any memberships in the course offering, as well as sections and enrollment sets that belong to this course offering.- Parameters:
eid- The enterprise id of the course offering
-
createEnrollmentSet
EnrollmentSet createEnrollmentSet(String eid, String title, String description, String category, String defaultEnrollmentCredits, String courseOfferingEid, Set officialInstructors) throws IdExistsException
Creates a new EnrollmentSet.- Parameters:
eid-title-description-category-defaultEnrollmentCredits-courseOfferingEid-officialInstructors-- Throws:
IdExistsException
-
updateEnrollmentSet
void updateEnrollmentSet(EnrollmentSet enrollmentSet)
Updates an existing EnrollmentSet.- Parameters:
enrollmentSet-
-
removeEnrollmentSet
void removeEnrollmentSet(String eid)
Removes an enrollment set and all associated enrollments.- Parameters:
eid- The enterprise id of the enrollment set
-
addOrUpdateEnrollment
Enrollment addOrUpdateEnrollment(String userId, String enrollmentSetEid, String enrollmentStatus, String credits, String gradingScheme)
Adds an Enrollment to an EnrollmentSet. If the user is already enrolled in the EnrollmentSet, the Enrollment record is updated for the user.- Parameters:
userId-enrollmentSetEid-enrollmentStatus-credits-gradingScheme-
-
addOrUpdateEnrollment
Enrollment addOrUpdateEnrollment(String userId, String enrollmentSetEid, String enrollmentStatus, String credits, String gradingScheme, Date dropDate)
Adds an Enrollment to an EnrollmentSet. If the user is already enrolled in the EnrollmentSet, the Enrollment record is updated for the user.- Parameters:
userId-enrollmentSetEid-enrollmentStatus-credits-gradingScheme-dropDate-
-
removeEnrollment
boolean removeEnrollment(String userId, String enrollmentSetEid)
Removes an Enrollment from an EnrollmentSet by setting the Enrollment to dropped=true.- Parameters:
userId-enrollmentSetEid-- Returns:
- Whether the enrollment existed and was removed.
-
createSection
Section createSection(String eid, String title, String description, String category, String parentSectionEid, String courseOfferingEid, String enrollmentSetEid) throws IdExistsException
Creates a new Section.- Parameters:
eid-title-description-category-parentSectionEid-courseOfferingEid-enrollmentSetEid-- Throws:
IdExistsException
-
addSectionCategory
SectionCategory addSectionCategory(String categoryCode, String categoryDescription)
-
newSectionMeeting
Meeting newSectionMeeting(String sectionEid, String location, Time startTime, Time finishTime, String notes)
Creates a new meeting instance. The meeting must be associated with a section and the section must be updated for the meeting to be persisted.- Parameters:
location- The location of the meetingstartTime- The time that the section startsstartTime- The time that the section finishesnotes- Optional notes about this meeting
-
updateSection
void updateSection(Section section)
Updates an existing Section.- Parameters:
section-
-
removeSection
void removeSection(String eid)
Removes a section and any memberships in the section. If an enrollment set is attached to this section, it must be removed via removeEnrollmentSet before removing the section.- Parameters:
eid- The enterprise id of the section
-
addOrUpdateCourseSetMembership
Membership addOrUpdateCourseSetMembership(String userId, String role, String courseSetEid, String status) throws IdNotFoundException
Adds a user to a CourseSet. If the user is already a member of the CourseSet, update the user's role.- Parameters:
userId-role-courseSetEid-status-- Throws:
IdNotFoundException- If the CourseSet can not be found
-
removeCourseSetMembership
boolean removeCourseSetMembership(String userId, String courseSetEid)
Removes a user from a CourseSet.- Parameters:
userId-courseSetEid-- Returns:
- Whether the user was a member of the CourseSet and was removed.
-
addOrUpdateCourseOfferingMembership
Membership addOrUpdateCourseOfferingMembership(String userId, String role, String courseOfferingEid, String status)
Adds a user to a CourseOffering. If the user is already a member of the CourseOffering, update the user's role.- Parameters:
userId-role-courseOfferingEid-status-
-
removeCourseOfferingMembership
boolean removeCourseOfferingMembership(String userId, String courseOfferingEid)
Removes a user from a CourseOffering.- Parameters:
userId-courseOfferingEid-- Returns:
- Whether the user was a member of the CourseOffering and was removed.
-
addOrUpdateSectionMembership
Membership addOrUpdateSectionMembership(String userId, String role, String sectionEid, String status)
Adds a user to a Section. If the user is already a member of the Section, update the user's role.- Parameters:
userId-role-sectionEid-status-
-
addOrUpdateSectionMembership
Membership addOrUpdateSectionMembership(String userId, String role, Section sec, String status)
Adds a user to a Section. If the user is already a member of the Section, update the user's role.- Parameters:
userId-role-sec-status-
-
removeSectionMembership
boolean removeSectionMembership(String userId, String sectionEid)
Removes a user from a Section.- Parameters:
userId-sectionEid-- Returns:
- Whether the user was a member of the Section and was removed.
-
-