public interface AssessmentOfferedNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to AssessmentOffered
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
AssessmentOfferedLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeAssessmentOfferedNotification(Id notificationId)
Acknowledge an assessment offered notification.
|
boolean |
canRegisterForAssessmentOfferedNotifications()
Tests if this user can register for
AssessmentOffered
notifications. |
Bank |
getBank()
Gets the
Bank associated with this session. |
Id |
getBankId()
Gets the
Bank Id associated with this
session. |
void |
registerForChangedAssessmentOffered(Id assessmentOfferedId)
Registers for notification of an updated assessment offered.
|
void |
registerForChangedAssessmentsOffered()
Registers for notification of updated assessments offered.
|
void |
registerForChangedAssessmentsOfferedForAssessment(Id assessmentId)
Register for notifications of updated assessments offered by
assessment.
|
void |
registerForDeletedAssessmentOffered(Id assessmentOfferedId)
Registers for notification of a deleted assessment offered.
|
void |
registerForDeletedAssessmentsOffered()
Registers for notification of deleted assessments offered.
|
void |
registerForDeletedAssessmentsOfferedForAssessment(Id assessmentId)
Register for notifications of deleted assessments offered by
assessment.
|
void |
registerForNewAssessmentsOffered()
Register for notifications of new assessments offered.
|
void |
registerForNewAssessmentsOfferedForAssessment(Id assessmentId)
Register for notifications of new assessments offered by assessment.
|
void |
reliableAssessmentOfferedNotifications()
Reliable notifications are desired.
|
void |
unreliableAssessmentOfferedNotifications()
Unreliable notifications are desired.
|
void |
useFederatedBankView()
Federates the view for methods in this session.
|
void |
useIsolatedBankView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getBankId()
Bank
Id
associated with this
session. Bank Id
associated with this sessionmandatory
- This method must be implemented. Bank getBank() throws OperationFailedException, PermissionDeniedException
Bank
associated with this session. Bank
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForAssessmentOfferedNotifications()
AssessmentOffered
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 useFederatedBankView()
mandatory
- This method is must be implemented. void useIsolatedBankView()
mandatory
- This method is must be implemented. void reliableAssessmentOfferedNotifications()
acknowledgeAssessmentOfferedNotification()
.mandatory
- This method is must be implemented. void unreliableAssessmentOfferedNotifications()
mandatory
- This method is must be implemented. void acknowledgeAssessmentOfferedNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewAssessmentsOffered() throws OperationFailedException, PermissionDeniedException
AssessmentOfferedReceiver.newAssessmentsOffered()
is invoked
when a new AssessmentOffered
appears in this assessmen
tbank.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForNewAssessmentsOfferedForAssessment(Id assessmentId) throws OperationFailedException, PermissionDeniedException
AssessmentOfferedReceiver.newAssessmentsOffered()
is
invoked when a new AssessmentOffered
appears in this
assessment bank.assessmentId
- Id
of an assessment to monitorNullArgumentException
- assessmentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForChangedAssessmentsOffered() throws OperationFailedException, PermissionDeniedException
AssessmentOfferedReceiver.changedAssessmentsOffered()
is
invoked when an assessment offered in this assessment bank is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForChangedAssessmentsOfferedForAssessment(Id assessmentId) throws OperationFailedException, PermissionDeniedException
AssessmentOfferedReceiver.changedAssessmentsOffered()
is
invoked when an AssessmentOffered
in this assessment
bank is changed.assessmentId
- Id
of an assessment to monitorNullArgumentException
- assessmentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForChangedAssessmentOffered(Id assessmentOfferedId) throws OperationFailedException, PermissionDeniedException
AssessmentOfferedReceiver.changedAssessmentsOffered()
is
invoked when the specified assessment offered in this assessment bank
is changed.assessmentOfferedId
- the Id
of the
AssessmentOffered
to monitorNullArgumentException
- assessmentOfferedId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForDeletedAssessmentsOffered() throws OperationFailedException, PermissionDeniedException
AssessmentOfferedReceiver.deletedAssessmentsOffered()
is
invoked when an assessment offered is removed from the assessment
bank.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForDeletedAssessmentsOfferedForAssessment(Id assessmentId) throws OperationFailedException, PermissionDeniedException
AssessmentOfferedReceiver.deletedAssessmenstOffered()
is
invoked when an AssessmentOffered
is removed form the
assessment bank.assessmentId
- Id
of an assessment to monitorNullArgumentException
- assessmentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForDeletedAssessmentOffered(Id assessmentOfferedId) throws OperationFailedException, PermissionDeniedException
AssessmentOfferedReceiver.deletedAssessmentsOffered()
is
invoked when the specified assessment offered is removed from the
assessment bank.assessmentOfferedId
- the Id
of the
AssessmentOffered
to monitorNullArgumentException
- assessmentOfferedId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented.