Interface AssessmentTakenNotificationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods to receive notifications on adds/changes
to AssessmentTaken objects in this Bank . 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 two views defined in this session correspond to the views in the
AssessmentTakenLookupSession .
-
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeAssessmentTakenNotification(Id notificationId) Acknowledge an assessment taken notification.booleanTests if this user can register forAssessmentTakennotifications.getBank()Gets theBankassociated with this session.Gets theBankIdassociated with this session.voidRegisters for notification of updated assessments taken.voidregisterForChangedAssessmentsTakenForAssessment(Id assessmentId) Register for notifications of changed assessments taken for an assessment.voidregisterForChangedAssessmentsTakenForAssessmentOffered(Id assessmentOfferedId) Register for notifications of changed assessments taken for an assessment offered.voidregisterForChangedAssessmentsTakenForTaker(Id resourceId) Register for notifications of changed assessments taken for a resource.voidregisterForChangedAssessmentTaken(Id assessmentTakenId) Registers for notification of an updated assessment taken.voidRegisters for notification of deleted assessments taken.voidregisterForDeletedAssessmentsTakenForAssessment(Id assessmentId) Register for notifications of deleted assessments taken for an assessment.voidregisterForDeletedAssessmentsTakenForAssessmentOffered(Id assessmentOfferedId) Register for notifications of deleted assessments taken for an assessment offered.voidregisterForDeletedAssessmentsTakenForTaker(Id resourceId) Register for notifications of deleted assessments taken for a resource.voidregisterForDeletedAssessmentTaken(Id assessmentTakenId) Registers for notification of a deleted assessment taken.voidRegister for notifications of new assessments taken in this assessment bank.voidregisterForNewAssessmentsTakenForAssessment(Id assessmentId) Register for notifications of new assessments taken for an assessment.voidregisterForNewAssessmentsTakenForAssessmentOffered(Id assessmentOfferedId) Register for notifications of new assessments taken for an assessment offered.voidregisterForNewAssessmentsTakenForTaker(Id resourceId) Register for notifications of new assessments taken for a 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
-
getBankId
Id getBankId()Gets theBankIdassociated with this session.- Returns:
- the
Bank Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBank
Gets theBankassociated with this session.- Returns:
- the
Bankassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canRegisterForAssessmentTakenNotifications
boolean canRegisterForAssessmentTakenNotifications()Tests if this user can register forAssessmentTakennotifications. 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.
-
useFederatedBankView
void useFederatedBankView()Federates the view for methods in this session. A federated view will include notifications for assessments taken in banks which are children of this bank in the bank hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedBankView
void useIsolatedBankView()Isolates the view for methods in this session. An isolated view restricts notifications for assessments taken to this bank only.- Compliance:
mandatory- This method is must be implemented.
-
reliableAssessmentTakenNotifications
void reliableAssessmentTakenNotifications()Reliable notifications are desired. In reliable mode, notifications are to be acknowledged usingacknowledgeAssessmentTakenNotification().- Compliance:
mandatory- This method is must be implemented.
-
unreliableAssessmentTakenNotifications
void unreliableAssessmentTakenNotifications()Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.- Compliance:
mandatory- This method is must be implemented.
-
acknowledgeAssessmentTakenNotification
void acknowledgeAssessmentTakenNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException Acknowledge an assessment taken notification.- Parameters:
notificationId- theIdof the notification- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewAssessmentsTaken
Register for notifications of new assessments taken in this assessment bank.AssessmentTakenReceiver.newAssessmentsTaken()is invoked when a newAssessmentTakenappears in this assessment bank.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForNewAssessmentsTakenForTaker
void registerForNewAssessmentsTakenForTaker(Id resourceId) throws OperationFailedException, PermissionDeniedException Register for notifications of new assessments taken for a resource.AssessmentTakenReceiver.newAssessmenstTaken()is invoked when a newAssessmentTakenappears in this assessment bank.- Parameters:
resourceId- theIdof theResourceto monitor- Throws:
NullArgumentException-assessmentOfferedIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForNewAssessmentsTakenForAssessmentOffered
void registerForNewAssessmentsTakenForAssessmentOffered(Id assessmentOfferedId) throws OperationFailedException, PermissionDeniedException Register for notifications of new assessments taken for an assessment offered.AssessmentTakenReceiver.newAssessmentsTaken()is invoked when a newAssessmentTakenappears in this assessment bank.- Parameters:
assessmentOfferedId- theIdof theAssessmentOfferedto monitor- Throws:
NullArgumentException-assessmentOfferedIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForNewAssessmentsTakenForAssessment
void registerForNewAssessmentsTakenForAssessment(Id assessmentId) throws OperationFailedException, PermissionDeniedException Register for notifications of new assessments taken for an assessment.AssessmentTakenReceiver.newAssessmentsTaken()is invoked when a newAssessmentTakenappears in this assessment bank.- Parameters:
assessmentId- theIdof theAssessmentto monitor- Throws:
NullArgumentException-assessmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAssessmentsTaken
void registerForChangedAssessmentsTaken() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of updated assessments taken.AssessmentTakenReceiver.changedAssessmentsTaken()is invoked when an assessment taken in this assessment bank is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAssessmentsTakenForTaker
void registerForChangedAssessmentsTakenForTaker(Id resourceId) throws OperationFailedException, PermissionDeniedException Register for notifications of changed assessments taken for a resource.AssessmentTakenReceiver.changedAssessmentsTaken()is invoked when anAssessmentTakenis changed in this assessment bank.- Parameters:
resourceId- theIdof theResourceto monitor- Throws:
NullArgumentException-assessmentOfferedIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAssessmentsTakenForAssessmentOffered
void registerForChangedAssessmentsTakenForAssessmentOffered(Id assessmentOfferedId) throws OperationFailedException, PermissionDeniedException Register for notifications of changed assessments taken for an assessment offered.AssessmentTakenReceiver.changedAssessmentsTaken()is invoked when anAssessmentTakenis changed in this assessment bank.- Parameters:
assessmentOfferedId- theIdof theAssessmentOfferedto monitor- Throws:
NullArgumentException-assessmentOfferedIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAssessmentsTakenForAssessment
void registerForChangedAssessmentsTakenForAssessment(Id assessmentId) throws OperationFailedException, PermissionDeniedException Register for notifications of changed assessments taken for an assessment.AssessmentTakenReceiver.changedAssessmentsTaken()is invoked when anAssessmentTakenis changed in this assessment bank.- Parameters:
assessmentId- theIdof theAssessmentto monitor- Throws:
NullArgumentException-assessmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAssessmentTaken
void registerForChangedAssessmentTaken(Id assessmentTakenId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated assessment taken.AssessmentTakenReceiver.changedAssessmentsTaken()is invoked when the specified assessment taken in this assessment bank is changed.- Parameters:
assessmentTakenId- theIdof theAssessmentTakento monitor- Throws:
NullArgumentException-assessmentTakenIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAssessmentsTaken
void registerForDeletedAssessmentsTaken() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of deleted assessments taken.AssessmentTakenReceiver.deletedAssessmentsTaken()is invoked when an assessment taken is removed from this assessment bank.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAssessmentsTakenForTaker
void registerForDeletedAssessmentsTakenForTaker(Id resourceId) throws OperationFailedException, PermissionDeniedException Register for notifications of deleted assessments taken for a resource.AssessmentTakenReceiver.deletedAssessmentsTaken()is invoked when anAssessmentTakenis removed from this assessment bank.- Parameters:
resourceId- theIdof theResourceto monitor- Throws:
NullArgumentException-assessmentOfferedIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAssessmentsTakenForAssessmentOffered
void registerForDeletedAssessmentsTakenForAssessmentOffered(Id assessmentOfferedId) throws OperationFailedException, PermissionDeniedException Register for notifications of deleted assessments taken for an assessment offered.AssessmentTakenReceiver.deletedAssessmentsTaken()is invoked when anAssessmentTakenis removed from this assessment bank.- Parameters:
assessmentOfferedId- theIdof theAssessmentOfferedto monitor- Throws:
NullArgumentException-assessmentOfferedIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAssessmentsTakenForAssessment
void registerForDeletedAssessmentsTakenForAssessment(Id assessmentId) throws OperationFailedException, PermissionDeniedException Register for notifications of deleted assessments taken for an assessment.AssessmentTakenReceiver.deletedAssessmentsTaken()is invoked when anAssessmentTakenis removed from this assessment bank.- Parameters:
assessmentId- theIdof theAssessmentto monitor- Throws:
NullArgumentException-assessmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAssessmentTaken
void registerForDeletedAssessmentTaken(Id assessmentTakenId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted assessment taken.AssessmentTakenReceiver.deletedAssessmentsTaken()is invoked when the specified assessment taken is removed from this assessment bank.- Parameters:
assessmentTakenId- theIdof theAssessmentTakento monitor- Throws:
NullArgumentException-assessmentTakenIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-