public interface GradebookNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Gradebook
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.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForGradebookNotifications()
Tests if this user can register for
Gradebook
notifications. |
void |
registerForChangedGradebook(Id gradebookId)
Registers for notification of an updated gradebook.
|
void |
registerForChangedGradebooks()
Registers for notification of updated gradebooks.
|
void |
registerForDeletedGradebook(Id gradebookId)
Registers for notification of a deleted gradebook.
|
void |
registerForDeletedGradebookAncestors(Id gradebookId)
Registers for notification if an ancestor is removed from the
specified gradebook in the gradebook hierarchy.
|
void |
registerForDeletedGradebookDescendants(Id gradebookId)
Registers for notification if a descendant is removed from fthe
specified gradebook in the calndar hierarchy.
|
void |
registerForDeletedGradebooks()
Registers for notification of deleted gradebooks.
|
void |
registerForNewGradebookAncestors(Id gradebookId)
Registers for notification if an ancestor is added to the specified
gradebook in the gradebook hierarchy.
|
void |
registerForNewGradebookDescendants(Id gradebookId)
Registers for notification if a descendant is added to the specified
gradebook in the gradebook hierarchy.
|
void |
registerForNewGradebooks()
Register for notifications of new gradebooks.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForGradebookNotifications()
Gradebook
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 registerForNewGradebooks() throws OperationFailedException, PermissionDeniedException
GradebookReceiver.newGradebook()
is invoked when a new
Gradebook
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewGradebookAncestors(Id gradebookId) throws OperationFailedException, PermissionDeniedException
GradebookReceiver.newGradebookAncestor()
is invoked when the
specified gradebook experiences an addition in ancestry.gradebookId
- the Id
of the gradebook to monitorNullArgumentException
- gradebookId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewGradebookDescendants(Id gradebookId) throws OperationFailedException, PermissionDeniedException
GradebookReceiver.newGradebookDescendant()
is invoked when the
specified gradebook experiences an addition in descendants.gradebookId
- the Id
of the gradebook to monitorNullArgumentException
- gradebookId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradebooks() throws OperationFailedException, PermissionDeniedException
GradebookReceiver.changedGradebook()
is invoked when a
gradebook is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradebook(Id gradebookId) throws OperationFailedException, PermissionDeniedException
GradebookReceiver.changedGradebook()
is invoked when the
specified gradebook is changed.gradebookId
- the Id
of the gradebook to monitorNullArgumentException
- gradebookId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradebooks() throws OperationFailedException, PermissionDeniedException
GradebookReceiver.deletedGradebook()
is invoked when a
calenedar is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradebook(Id gradebookId) throws OperationFailedException, PermissionDeniedException
GradebookReceiver.deletedGradebook()
is invoked when the
specified gradebook is deleted.gradebookId
- the Id
of the gradebook to monitorNullArgumentException
- gradebookId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradebookAncestors(Id gradebookId) throws OperationFailedException, PermissionDeniedException
GradebookReceiver.deletedGradebookAncestor()
is invoked when
the specified gradebook experiences a removal of an ancestor.gradebookId
- the Id
of the gradebook to monitorNullArgumentException
- gradebookId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradebookDescendants(Id gradebookId) throws OperationFailedException, PermissionDeniedException
GradebookReceiver.deletedGradebookDescednant()
is invoked when
the specified gradebook experiences a removal of one of its
descendants.gradebookId
- the Id
of the gradebook to monitorNullArgumentException
- gradebookId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.