public interface GradeSystemTransformNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to GradeSystems
and the Grades defined within.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 |
canRegisterForGradeSystemTransformNotifications()
Tests if this user can register for
GradeSystemTransform
notifications. |
Gradebook |
getGradebook()
Gets the
Gradebook associated with this session. |
Id |
getGradebookId()
Gets the
Gradebook Id associated with
this session. |
void |
registerForChangedGradeSystemTransform(Id gradeSystemTransformId)
Registers for notification of an updated grade system transform.
|
void |
registerForChangedGradeSystemTransforms()
Registers for notification of updated grade system transforms.
|
void |
registerForDeletedGradeSystemTransform(Id gradeSystemTransformId)
Registers for notification of a deleted grade system transform.
|
void |
registerForDeletedGradeSystemTransforms()
Registers for notification of deleted grade system transforms.
|
void |
registerForNewGradeSystemTransforms()
Register for notifications of new grade system transforms.
|
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 canRegisterForGradeSystemTransformNotifications()
GradeSystemTransform
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 registerForNewGradeSystemTransforms() throws OperationFailedException, PermissionDeniedException
GradeSystemTransformReceiver.newGradeSystemTransforms()
is
invoked when a new GradeSystemTransform
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradeSystemTransforms() throws OperationFailedException, PermissionDeniedException
GradeSystemTransformReceiver.changedGradeSystemTransforms()
is
invoked when a transform is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedGradeSystemTransform(Id gradeSystemTransformId) throws OperationFailedException, PermissionDeniedException
GradeSystemTransformReceiver.changedGradeSystemTransforms()
is invoked when the specified grade system transform is
changed.gradeSystemTransformId
- the Id
of the grade
system transform to monitorNullArgumentException
- gradeSystemTransformId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradeSystemTransforms() throws OperationFailedException, PermissionDeniedException
GradeSystemTransformReceiver.deletedGradeSystemTransforms()
is
invoked when a grade system transform is removed from this gradebook.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedGradeSystemTransform(Id gradeSystemTransformId) throws OperationFailedException, PermissionDeniedException
GradeSystemTransformReceiver.deletedGradeSystemTransforms()
is
invoked when the specified system transform is removed from this
gradebook.gradeSystemTransformId
- the Id
of the grade
system transform to monitorNullArgumentException
- gradeSystemTransformId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.