public interface GradebookColumnNotificationSession extends OsidSession
This session defines methods to receive asynchronous notifications on
adds/changes to GradebookColumn 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.
The views defined in this session correspond to the views in the
GradebookColumnLookupSession.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRegisterForGradebookColumnNotifications()
Tests if this user can register for
GradebookColumn
notifications. |
Gradebook |
getGradebook()
Gets the
Gradebook associated with this session. |
Id |
getGradebookId()
Gets the
Gradebook Id associated with
this session. |
void |
registerForChangedGradebookColumn(Id gradebookColumnId)
Registers for notification of an updated gradebook column.
|
void |
registerForChangedGradebookColumns()
Registers for notification of updated gradebook columns.
|
void |
registerForDeletedGradebookColumn(Id gradebookColumnId)
Registers for notification of a deleted gradebook column.
|
void |
registerForDeletedGradebookColumns()
Registers for notification of deleted gradebook columns.
|
void |
registerForNewGradebookColumns()
Register for notifications of new gradebook columns.
|
void |
useFederatedGradebookView()
Federates the view for methods in this session.
|
void |
useIsolatedGradebookView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getGradebookId()
Gradebook Id associated with
this session. Gradebook Id associated with this sessionmandatory - This method must be implemented. Gradebook getGradebook() throws OperationFailedException, PermissionDeniedException
Gradebook associated with this session. Gradebook associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canRegisterForGradebookColumnNotifications()
GradebookColumn
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 useFederatedGradebookView()
mandatory - This method is must be implemented. void useIsolatedGradebookView()
mandatory - This method is must be implemented. void registerForNewGradebookColumns()
throws OperationFailedException,
PermissionDeniedException
GradebookColumnReceiver.newGradebookColumns() is invoked when
a new column is created.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedGradebookColumns()
throws OperationFailedException,
PermissionDeniedException
GradebookColumnReceiver.changedGradebookColumns() is invoked
when a gradebook column is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedGradebookColumn(Id gradebookColumnId) throws OperationFailedException, PermissionDeniedException
GradebookColumnReceiver.changedGradebookColumns() is invoked
when the specified gradebook column is changed.gradebookColumnId - the Id of the
GradebookColumn to monitorNullArgumentException - gradebookColumnId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedGradebookColumns()
throws OperationFailedException,
PermissionDeniedException
GradebookColumnReceiver.deletedGradebookColumns() is invoked
when a gradebook column is removed from this gradebook.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedGradebookColumn(Id gradebookColumnId) throws OperationFailedException, PermissionDeniedException
GradebookColumnReceiver.deletedGradebookColumns() is invoked
when the specified column is removed from thia gradebook.gradebookColumnId - the Id of the
GradebookColumn to monitorNullArgumentException - gradebookColumnId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.