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

This session defines methods to receive notifications on adds/changes to Lesson 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.

Notifications are triggered with changes to the Lesson object itself. Adding and removing syllabi result in notifications available from the notification session for syllabi.

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.
MethodcanRegisterForLessonNotifications
Description

Tests if this user can register for Lesson 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 lessonsin 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.
MethodreliableLessonNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableLessonNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeLessonNotification
Description

Acknowledge a lesson notification.

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

Register for notifications of new lessons. LessonReceiver.newLessons() is invoked when a new Lesson is created.

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

Registers for notification of new lessons of the given plan. LessonReceiver.newLessons() is invoked when a new Lesson is created.

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.
MethodregisterForNewLessonsForDocet
Description

Registers for notification of new lessons of the given docet. LessonReceiver.newLessons() is invoked when a new Lesson is created.

Parametersosid.id.IddocetIdthe Id of the Docet to monitor
ErrorsNULL_ARGUMENT docetId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedLessons
Description

Registers for notification of updated lessons. LessonReceiver.changedLessons() is invoked when a lesson is changed.

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

Registers for notification of updated lessons of the given plan. LessonReceiver.changedLessons() is invoked when a a lesson 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.
MethodregisterForChangedLessonsForDocet
Description

Registers for notification of updated lessons of the given docet. LessonReceiver.changedLessons() is invoked when a a lesson is changed.

Parametersosid.id.IddocetIdthe Id of the Docet to monitor
ErrorsNULL_ARGUMENT docetId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedLesson
Description

Registers for notification of an updated lesson. LessonReceiver.changedLessons() is invoked when the specified lesson in this course catalog is changed.

Parametersosid.id.IdlessonIdthe Id of the Lesson to monitor
ErrorsNULL_ARGUMENT lessonId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedLessons
Description

Registers for notification of deleted lessons. LessonReceiver.deletedLesson() is invoked when a lesson is in this course catalog deleted.

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

Registers for notification of deleted lessons of the given plan. LessonReceiver.deletedLessons() is invoked when a lesson in this course catalog is removed.

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.
MethodregisterForDeletedLessonsForDocet
Description

Registers for notification of deleted lessons of the given docet. LessonReceiver.deletedLessons() is invoked when a lesson in this course catalog is removed.

Parametersosid.id.IddocetIdthe Id of the Docet to monitor
ErrorsNULL_ARGUMENT docetId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedLesson
Description

Registers for notification of a deleted lesson. LessonReceiver.deletedLessons() is invoked when the specified lesson is deleted.

Parametersosid.id.IdlessonIdthe Id of the Lesson to monitor
ErrorsNULL_ARGUMENT lessonId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.