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

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

Tests if this user can register for Docet 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 docetsin 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.
MethodreliableDocetNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableDocetNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeDocetNotification
Description

Acknowledge a docet notification.

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

Register for notifications of new docets. DocetReceiver.newDocets() is invoked when a new Docet is created.

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

Registers for notification of new docets of the given module. DocetReceiver.newDocets() is invoked when a new Docet is created.

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

Registers for notification of new docets of the given activity unit. DocetReceiver.newDocets() is invoked when a new Docet is created.

Parametersosid.id.IdactivityUnitIdthe Id of the ActivityUnit to monitor
ErrorsNULL_ARGUMENT activityUnitId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedDocets
Description

Registers for notification of updated docets. DocetReceiver.changedDocets() is invoked when a docet is changed.

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

Registers for notification of updated docets of the given module. DocetReceiver.changedDocets() is invoked when a a docet 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.
MethodregisterForChangedDocetsForActivityUnit
Description

Registers for notification of updated docets of the given activity unit. DocetReceiver.changedDocets() is invoked when a a docet is changed.

Parametersosid.id.IdactivityUnitIdthe Id of the ActivityUnit to monitor
ErrorsNULL_ARGUMENT activityUnitId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedDocet
Description

Registers for notification of an updated docet. DocetReceiver.changedDocet() is invoked when the specified docet in this course catalog 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.
MethodregisterForDeletedDocets
Description

Registers for notification of deleted docets. DocetReceiver.deletedDocets() is invoked when a docet is in this course catalog deleted.

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

Registers for notification of deleted docets of the given module. DocetReceiver.deletedDocets() is invoked when a docet in this course catalog is removed.

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

Registers for notification of deleted docets of the given activity unit. DocetReceiver.deletedDocets() is invoked when a docet in this course catalog is removed.

Parametersosid.id.IdactivityUnitIdthe Id of the ActivityUnit to monitor
ErrorsNULL_ARGUMENT activityUnitId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDocet
Description

Registers for notification of a deleted docet. DocetReceiver.deletedDocets() is invoked when the specified docet is deleted.

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.