OSID Logo
OSID Specifications
course plan package
Version 3.1.0
Interfaceosid.course.plan.LessonNotificationSession
Implementsosid.OsidSession
Used Byosid.course.plan.CoursePlanManager
osid.course.plan.CoursePlanProxyManager
Description

This session defines methods to receive notifications on adds/changes to Lessons. 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.Id the CourseCatalog Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCourseCatalog
Description

Gets the CourseCatalog associated with this session.

Returnosid.course.CourseCatalog the course catalog
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethodreliableLessonNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableLessonNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeLessonNotification
Description

Acknowledge a lesson notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewLessons
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdplanId the Id of the Plan to monitor
ErrorsNULL_ARGUMENT planId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IddocetId the Id of the Docet to monitor
ErrorsNULL_ARGUMENT docetId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedLessons
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedLessonsForPlan
Description

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

Parametersosid.id.IdplanId the Id of the Plan to monitor
ErrorsNULL_ARGUMENT planId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedLessonsForDocet
Description

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

Parametersosid.id.IddocetId the Id of the Docet to monitor
ErrorsNULL_ARGUMENT docetId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdlessonId the Id of the Lesson to monitor
ErrorsNULL_ARGUMENT lessonId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdplanId the Id of the Plan to monitor
ErrorsNULL_ARGUMENT planId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IddocetId the Id of the Docet to monitor
ErrorsNULL_ARGUMENT docetId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdlessonId the Id of the Lesson to monitor
ErrorsNULL_ARGUMENT lessonId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.