public interface GradeEntryNotificationSession extends 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.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForGradeEntryNotifications()
Tests if this user can register for
GradeEntry
notifications. |
Gradebook |
getGradebook()
Gets the
Gradebook associated with this session. |
Id |
getGradebookId()
Gets the
Gradebook Id associated with
this session. |
void |
registerForChangedGradeEntries()
Registers for notification of updated grade entries.
|
void |
registerForChangedGradeEntriesByGrader(Id resourceId)
Registers for notification of an updated grade entry for the specified
grader.
|
void |
registerForChangedGradeEntriesForGradebookColumn(Id gradebookColumnId)
Registers for notification of an updated grade entry for the specified
gradebook column.
|
void |
registerForChangedGradeEntriesForResource(Id resourceId)
Registers for notification of an updated grade entry for the specified
key resource.
|
void |
registerForChangedGradeEntry(Id gradeEntryId)
Registers for notification of an updated grade entry.
|
void |
registerForDeletedGradeEntries()
Registers for notification of deleted grade entries.
|
void |
registerForDeletedGradeEntriesByGrader(Id resourceId)
Registers for notification of a deleted grade entry for the specified
grader.
|
void |
registerForDeletedGradeEntriesForGradebookColumn(Id gradebookColumnId)
Registers for notification of a deleted grade entry for the specified
gradebook column.
|
void |
registerForDeletedGradeEntriesForResource(Id resourceId)
Registers for notification of a deleted grade entry for the specified
key resource.
|
void |
registerForDeletedGradeEntry(Id gradeEntryId)
Registers for notification of a deleted grade entry.
|
void |
registerForNewGradeEntries()
Register for notifications of new grade entries.
|
void |
registerForNewGradeEntriesByGrader(Id resourceId)
Registers for notification of a new grade entry for the specified
grader agent.
|
void |
registerForNewGradeEntriesForGradebookColumn(Id gradebookColumnId)
Registers for notification of a new grade entry for the specified
gradebook column.
|
void |
registerForNewGradeEntriesForResource(Id resourceId)
Registers for notification of a new grade entry for the specified
resource.
|
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, supportsTransactions
close
Id 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 canRegisterForGradeEntryNotifications()
GradeEntry
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 registerForNewGradeEntries() throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.newGradeEntries()
is invoked when a new
grade entry is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewGradeEntriesForGradebookColumn(Id gradebookColumnId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.newGradeEntries()
is invoked when a new entry for the resource is created.gradebookColumnId
- the Id
of the
GradebookColumn
to monitorNullArgumentException
- gradebookColumnId is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewGradeEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.newGradeEntries()
is
invoked when a new entry for the resource is created.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewGradeEntriesByGrader(Id resourceId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.newGradeEntries()
is
invoked when a new entry for the grader is created.resourceId
- the Id
of the Agent
to monitorNullArgumentException
- agentId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradeEntries() throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.changedGradeEntries()
is invoked when a
grade entry is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradeEntriesForGradebookColumn(Id gradebookColumnId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.changedGradeEntries()
is invoked when an entry for the column is updated.gradebookColumnId
- the Id
of the
GradebookColumn
to monitorNullArgumentException
- gradebookColumnId is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradeEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.changedGradeEntries()
is invoked when an entry for the resource is updated.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradeEntriesByGrader(Id resourceId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.changedGradeEntries()
is
invoked when an entry for the agent is updated.resourceId
- the Id
of the Agent
to monitorNullArgumentException
- agentId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradeEntry(Id gradeEntryId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.changedGradeEntries()
is invoked when the
specified grade entry is changed.gradeEntryId
- the Id
of the GradeEntry
to monitorNullArgumentException
- gradeEntryId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradeEntries() throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.deletedGradeEntries()
is invoked when a
grade entry is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradeEntriesForGradebookColumn(Id gradebookColumnId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.changedGradeEntries()
is invoked when an entry for the column is removed from this
gradebook.gradebookColumnId
- the Id
of the
GradebookColumn
to monitorNullArgumentException
- gradebookColumnId is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradeEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.changedGradeEntries()
is invoked when an entry for the resource is removed from this
gradebook.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradeEntriesByGrader(Id resourceId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.changedGradeEntries()
is
invoked when an entry for the agent is removed from this gradebook.resourceId
- the Id
of the Agent
to monitorNullArgumentException
- agentId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradeEntry(Id gradeEntryId) throws OperationFailedException, PermissionDeniedException
GradeEntryReceiver.deletedGradeEntries()
is invoked when the
specified entry is deleted.gradeEntryId
- the Id
of the GradeEntry
to monitorNullArgumentException
- gradeEntryId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.