OSID Logo
OSID Specifications
course plan package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.plan.PlanNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Plan objects. This session is intended for consumers needing to synchronize their state with this service without the use of polling. Notifications are cancelled when this session is closed.

MethodgetCourseCatalogId
Description

Gets the CourseCatalog Id associated with this session.

Returnosid.id.Idthe CourseCatalog Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalog
Description

Gets the CourseCatalog associated with this session.

Returnosid.course.CourseCatalogthe course catalog
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForPlanNotifications
Description

Tests if this user can register for Plan notifications. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedCourseCatalogView
Description

Federates the view for methods in this session. A federated view will include plans in course catalogs which are children of this course catalog in the course catalog hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedCourseCatalogView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this course catalog only.

CompliancemandatoryThis method is must be implemented.
MethodreliablePlanNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgePlanNotification() .

CompliancemandatoryThis method is must be implemented.
MethodunreliablePlanNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

CompliancemandatoryThis method is must be implemented.
MethodacknowledgePlanNotification
Description

Acknowledge a plan notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewPlans
Description

Register for notifications of new plans. PlanReceiver.newPlans() is invoked when a new Plan is created.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewPlansForSyllabus
Description

Register for notifications of new plans for the given syllabus. PlanReceiver.newPlans() is invoked when a new Plan is created.

Parametersosid.id.IdsyllabusIdthe Id of the Syllabus to monitor
ErrorsNULL_ARGUMENT syllabusId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewPlansForCourseOffering
Description

Register for notifications of new plans for the given course offering. PlanReceiver.newPlans() is invoked when a new Plan is created.

Parametersosid.id.IdcourseOfferingIdthe Id of the CourseOffering to monitor
ErrorsNULL_ARGUMENT courseOfferingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedPlans
Description

Registers for notification of updated plans. PlanReceiver.changedPlans() is invoked when a plan is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedPlansForSyllabus
Description

Registers for notification of updated plans for the given syllabus. PlanReceiver.changedPlans() is invoked when a plan is changed.

Parametersosid.id.IdsyllabusIdthe Id of the Syllabus to monitor
ErrorsNULL_ARGUMENT syllabusId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedPlansForCourseOffering
Description

Registers for notification of updated plans for the given course offering. PlanReceiver.changedPlans() is invoked when a plan is changed.

Parametersosid.id.IdcourseOfferingIdthe Id of the CourseOffering to monitor
ErrorsNULL_ARGUMENT courseOfferingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedPlan
Description

Registers for notification of an updated plan. PlanReceiver.changedPlans() is invoked when the specified plan is changed.

Parametersosid.id.IdplanIdthe Id of the Plan to monitor
ErrorsNULL_ARGUMENT planId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPlans
Description

Registers for notification of deleted plans. PlanReceiver.deletedPlans() is invoked when a plan in this catalog is deleted.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPlansForSyllabus
Description

Registers for notification of deleted plans for the given syllabus. PlanReceiver.deletedPlans() is invoked when a plan in this catalog is deleted.

Parametersosid.id.IdsyllabusIdthe Id of the Syllabus to monitor
ErrorsNULL_ARGUMENT syllabusId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPlansForCourseOffering
Description

Registers for notification of deleted plans for the given course offering. PlanReceiver.deletedPlans() is invoked when a plan in this catalog is deleted.

Parametersosid.id.IdcourseOfferingIdthe Id of the CourseOffering to monitor
ErrorsNULL_ARGUMENT courseOfferingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPlan
Description

Registers for notification of a deleted plan. PlanReceiver.deletedPlans() is invoked when the specified plan in this catalog is deleted.

Parametersosid.id.IdplanIdthe Id of the Plan to monitor
ErrorsNULL_ARGUMENT planId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.