OSID Logo
OSID Specifications
course syllabus package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.syllabus.ModuleNotificationSession
Implementsosid.OsidSession
Description

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

Tests if this user can register for Module 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 modules 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.
MethodreliableModuleNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableModuleNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeModuleNotification
Description

Acknowledge a module notification.

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

Register for notifications of new modules. ModuleReceiver.newModules() is invoked when a new Module is created.

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

Register for notifications of new modules for the given syllabus. ModuleReceiver.newModules() is invoked when a new Module 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.
MethodregisterForChangedModules
Description

Registers for notification of updated modules. ModuleReceiver.changedModules() is invoked when a module is changed.

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

Registers for notification of updated modules for the given syllabus. ModuleReceiver.changedModules() is invoked when a module 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.
MethodregisterForChangedModule
Description

Registers for notification of an updated module. ModuleReceiver.changedModules() is invoked when the specified module is changed.

Parametersosid.id.IdmoduleIdthe Id of the Module to monitor
ErrorsNULL_ARGUMENT moduleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedModules
Description

Registers for notification of deleted modules. ModuleReceiver.deletedModules() is invoked when a module in this catalog is deleted.

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

Registers for notification of deleted modules for the given syllabus. ModuleReceiver.deletedModules() is invoked when a module 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.
MethodregisterForDeletedModule
Description

Registers for notification of a deleted module. ModuleReceiver.deletedModules() is invoked when the specified module in this catalog is deleted.

Parametersosid.id.IdmoduleIdthe Id of the Module to monitor
ErrorsNULL_ARGUMENT moduleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.