Interface GradeEntryNotificationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods to receive asynchronous notifications on
adds/changes to GradeEntry 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
GradeEntryLookupSession .
-
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeGradeEntryNotification(Id notificationId) Acknowledge a grade entry notification.booleanTests if this user can register forGradeEntrynotifications.Gets theGradebookassociated with this session.Gets theGradebookIdassociated with this session.voidRegisters for notification of updated grade entries.voidregisterForChangedGradeEntriesByGrader(Id resourceId) Registers for notification of an updated grade entry for the specified grader.voidregisterForChangedGradeEntriesForGradebookColumn(Id gradebookColumnId) Registers for notification of an updated grade entry for the specified gradebook column.voidregisterForChangedGradeEntriesForResource(Id resourceId) Registers for notification of an updated grade entry for the specified key resource.voidregisterForChangedGradeEntry(Id gradeEntryId) Registers for notification of an updated grade entry.voidRegisters for notification of deleted grade entries.voidregisterForDeletedGradeEntriesByGrader(Id resourceId) Registers for notification of a deleted grade entry for the specified grader.voidregisterForDeletedGradeEntriesForGradebookColumn(Id gradebookColumnId) Registers for notification of a deleted grade entry for the specified gradebook column.voidregisterForDeletedGradeEntriesForResource(Id resourceId) Registers for notification of a deleted grade entry for the specified key resource.voidregisterForDeletedGradeEntry(Id gradeEntryId) Registers for notification of a deleted grade entry.voidRegister for notifications of new grade entries.voidregisterForNewGradeEntriesByGrader(Id resourceId) Registers for notification of a new grade entry for the specified grader agent.voidregisterForNewGradeEntriesForGradebookColumn(Id gradebookColumnId) Registers for notification of a new grade entry for the specified gradebook column.voidregisterForNewGradeEntriesForResource(Id resourceId) Registers for notification of a new grade entry for the specified resource.voidReliable notifications are desired.voidUnreliable notifications are desired.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getGradebookId
Id getGradebookId()Gets theGradebookIdassociated with this session.- Returns:
- the
Gradebook Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getGradebook
Gets theGradebookassociated with this session.- Returns:
- the
Gradebookassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canRegisterForGradeEntryNotifications
boolean canRegisterForGradeEntryNotifications()Tests if this user can register forGradeEntrynotifications. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.- Returns:
falseif notification methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useFederatedGradebookView
void useFederatedGradebookView()Federates the view for methods in this session. A federated view will include notifications for grade entries in gradebooks which are children of this gradebook in the gradebook hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedGradebookView
void useIsolatedGradebookView()Isolates the view for methods in this session. An isolated view restricts notifications to this gradebook only.- Compliance:
mandatory- This method is must be implemented.
-
reliableGradeEntryNotifications
void reliableGradeEntryNotifications()Reliable notifications are desired. In reliable mode, notifications are to be acknowledged usingacknowledgeGradeEntryNotification().- Compliance:
mandatory- This method is must be implemented.
-
unreliableGradeEntryNotifications
void unreliableGradeEntryNotifications()Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.- Compliance:
mandatory- This method is must be implemented.
-
acknowledgeGradeEntryNotification
void acknowledgeGradeEntryNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException Acknowledge a grade entry notification.- Parameters:
notificationId- theIdof the notification- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewGradeEntries
Register for notifications of new grade entries.GradeEntryReceiver.newGradeEntries()is invoked when a new grade entry is created.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewGradeEntriesForGradebookColumn
void registerForNewGradeEntriesForGradebookColumn(Id gradebookColumnId) throws OperationFailedException, PermissionDeniedException Registers for notification of a new grade entry for the specified gradebook column.GradeEntryReceiver.newGradeEntries()is invoked when a new entry for the resource is created.- Parameters:
gradebookColumnId- theIdof theGradebookColumnto monitor- Throws:
NullArgumentException-gradebookColumnId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewGradeEntriesForResource
void registerForNewGradeEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException Registers for notification of a new grade entry for the specified resource.GradeEntryReceiver.newGradeEntries()is invoked when a new entry for the resource is created.- Parameters:
resourceId- theIdof theResourceto monitor- Throws:
NullArgumentException-resourceId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewGradeEntriesByGrader
void registerForNewGradeEntriesByGrader(Id resourceId) throws OperationFailedException, PermissionDeniedException Registers for notification of a new grade entry for the specified grader agent.GradeEntryReceiver.newGradeEntries()is invoked when a new entry for the grader is created.- Parameters:
resourceId- theIdof theAgentto monitor- Throws:
NullArgumentException-agentId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedGradeEntries
Registers for notification of updated grade entries.GradeEntryReceiver.changedGradeEntries()is invoked when a grade entry is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedGradeEntriesForGradebookColumn
void registerForChangedGradeEntriesForGradebookColumn(Id gradebookColumnId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated grade entry for the specified gradebook column.GradeEntryReceiver.changedGradeEntries()is invoked when an entry for the column is updated.- Parameters:
gradebookColumnId- theIdof theGradebookColumnto monitor- Throws:
NullArgumentException-gradebookColumnId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedGradeEntriesForResource
void registerForChangedGradeEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated grade entry for the specified key resource.GradeEntryReceiver.changedGradeEntries()is invoked when an entry for the resource is updated.- Parameters:
resourceId- theIdof theResourceto monitor- Throws:
NullArgumentException-resourceId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedGradeEntriesByGrader
void registerForChangedGradeEntriesByGrader(Id resourceId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated grade entry for the specified grader.GradeEntryReceiver.changedGradeEntries()is invoked when an entry for the agent is updated.- Parameters:
resourceId- theIdof theAgentto monitor- Throws:
NullArgumentException-agentId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedGradeEntry
void registerForChangedGradeEntry(Id gradeEntryId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated grade entry.GradeEntryReceiver.changedGradeEntries()is invoked when the specified grade entry is changed.- Parameters:
gradeEntryId- theIdof theGradeEntryto monitor- Throws:
NullArgumentException-gradeEntryId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedGradeEntries
Registers for notification of deleted grade entries.GradeEntryReceiver.deletedGradeEntries()is invoked when a grade entry is deleted.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedGradeEntriesForGradebookColumn
void registerForDeletedGradeEntriesForGradebookColumn(Id gradebookColumnId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted grade entry for the specified gradebook column.GradeEntryReceiver.changedGradeEntries()is invoked when an entry for the column is removed from this gradebook.- Parameters:
gradebookColumnId- theIdof theGradebookColumnto monitor- Throws:
NullArgumentException-gradebookColumnId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedGradeEntriesForResource
void registerForDeletedGradeEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted grade entry for the specified key resource.GradeEntryReceiver.changedGradeEntries()is invoked when an entry for the resource is removed from this gradebook.- Parameters:
resourceId- theIdof theResourceto monitor- Throws:
NullArgumentException-resourceId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedGradeEntriesByGrader
void registerForDeletedGradeEntriesByGrader(Id resourceId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted grade entry for the specified grader.GradeEntryReceiver.changedGradeEntries()is invoked when an entry for the agent is removed from this gradebook.- Parameters:
resourceId- theIdof theAgentto monitor- Throws:
NullArgumentException-agentId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedGradeEntry
void registerForDeletedGradeEntry(Id gradeEntryId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted grade entry.GradeEntryReceiver.deletedGradeEntries()is invoked when the specified entry is deleted.- Parameters:
gradeEntryId- theIdof theGradeEntryto monitor- Throws:
NullArgumentException-gradeEntryId is nullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-