public interface DocetNotificationSession extends OsidSession
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.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeDocetNotification(Id notificationId)
Acknowledge a docet notification.
|
boolean |
canRegisterForDocetNotifications()
Tests if this user can register for
Docet
notifications. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
registerForChangedDocet(Id docetId)
Registers for notification of an updated docet.
|
void |
registerForChangedDocets()
Registers for notification of updated docets.
|
void |
registerForChangedDocetsForActivityUnit(Id activityUnitId)
Registers for notification of updated docets of the given activity
unit.
|
void |
registerForChangedDocetsForModule(Id moduleId)
Registers for notification of updated docets of the given module.
|
void |
registerForDeletedDocet(Id docetId)
Registers for notification of a deleted docet.
|
void |
registerForDeletedDocets()
Registers for notification of deleted docets.
|
void |
registerForDeletedDocetsForActivityUnit(Id activityUnitId)
Registers for notification of deleted docets of the given activity
unit.
|
void |
registerForDeletedDocetsForModule(Id moduleId)
Registers for notification of deleted docets of the given module.
|
void |
registerForNewDocets()
Register for notifications of new docets.
|
void |
registerForNewDocetsForActivityUnit(Id activityUnitId)
Registers for notification of new docets of the given activity unit.
|
void |
registerForNewDocetsForModule(Id moduleId)
Registers for notification of new docets of the given module.
|
void |
reliableDocetNotifications()
Reliable notifications are desired.
|
void |
unreliableDocetNotifications()
Unreliable notifications are desired.
|
void |
useFederatedCourseCatalogView()
Federates the view for methods in this session.
|
void |
useIsolatedCourseCatalogView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCourseCatalogId()
CourseCatalog
Id
associated
with this session. CourseCatalog Id
associated with this
sessionmandatory
- This method must be implemented. CourseCatalog getCourseCatalog() throws OperationFailedException, PermissionDeniedException
CourseCatalog
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForDocetNotifications()
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. false
if notification methods are not
authorized, true
otherwisemandatory
- This method must be implemented. void useFederatedCourseCatalogView()
mandatory
- This method is must be implemented. void useIsolatedCourseCatalogView()
mandatory
- This method is must be implemented. void reliableDocetNotifications()
acknowledgeDocetNotification()
.mandatory
- This method is must be implemented. void unreliableDocetNotifications()
mandatory
- This method is must be implemented. void acknowledgeDocetNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewDocets() throws OperationFailedException, PermissionDeniedException
DocetReceiver.newDocets()
is invoked when a new Docet
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewDocetsForModule(Id moduleId) throws OperationFailedException, PermissionDeniedException
DocetReceiver.newDocets()
is invoked when a new Docet
is created.moduleId
- the Id
of the Module
to
monitorNullArgumentException
- moduleId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewDocetsForActivityUnit(Id activityUnitId) throws OperationFailedException, PermissionDeniedException
DocetReceiver.newDocets()
is invoked when a new
Docet
is created.activityUnitId
- the Id
of the
ActivityUnit
to monitorNullArgumentException
- activityUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDocets() throws OperationFailedException, PermissionDeniedException
DocetReceiver.changedDocets()
is invoked when a docet is
changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDocetsForModule(Id moduleId) throws OperationFailedException, PermissionDeniedException
DocetReceiver.changedDocets()
is invoked when a a docet
is changed.moduleId
- the Id
of the Module
to
monitorNullArgumentException
- moduleId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDocetsForActivityUnit(Id activityUnitId) throws OperationFailedException, PermissionDeniedException
DocetReceiver.changedDocets()
is invoked when a a
docet is changed.activityUnitId
- the Id
of the
ActivityUnit
to monitorNullArgumentException
- activityUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDocet(Id docetId) throws OperationFailedException, PermissionDeniedException
DocetReceiver.changedDocet()
is invoked when the specified
docet in this course catalog is changed.docetId
- the Id
of the Docet
to
monitorNullArgumentException
- docetId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDocets() throws OperationFailedException, PermissionDeniedException
DocetReceiver.deletedDocets()
is invoked when a docet is in
this course catalog deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDocetsForModule(Id moduleId) throws OperationFailedException, PermissionDeniedException
DocetReceiver.deletedDocets()
is invoked when a docet
in this course catalog is removed.moduleId
- the Id
of the Module
to
monitorNullArgumentException
- moduleId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDocetsForActivityUnit(Id activityUnitId) throws OperationFailedException, PermissionDeniedException
DocetReceiver.deletedDocets()
is invoked when a
docet in this course catalog is removed.activityUnitId
- the Id
of the
ActivityUnit
to monitorNullArgumentException
- activityUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDocet(Id docetId) throws OperationFailedException, PermissionDeniedException
DocetReceiver.deletedDocets()
is invoked when the specified
docet is deleted.docetId
- the Id
of the Docet
to
monitorNullArgumentException
- docetId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.