public interface InquestNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Inquest
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.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForInquestNotifications()
Tests if this user can register for
Inquest
notifications. |
void |
registerForChangedInquest(Id inquestId)
Registers for notification of an updated inquest.
|
void |
registerForChangedInquests()
Registers for notification of updated inquests.
|
void |
registerForDeletedInquest(Id inquestId)
Registers for notification of a deleted inquest.
|
void |
registerForDeletedInquestAncestors(Id inquestId)
Registers for notification if an ancestor is removed from the
specified inquest in the inquest hierarchy.
|
void |
registerForDeletedInquestDescendants(Id inquestId)
Registers for notification if a descendant is removed from fthe
specified inquest in the inquest hierarchy.
|
void |
registerForDeletedInquests()
Registers for notification of deleted inquests.
|
void |
registerForNewInquestAncestors(Id inquestId)
Registers for notification if an ancestor is added to the specified
inquest in the inquest hierarchy.
|
void |
registerForNewInquestDescendants(Id inquestId)
Registers for notification if a descendant is added to the specified
inquest in the inquest hierarchy.
|
void |
registerForNewInquests()
Register for notifications of new inquests.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForInquestNotifications()
Inquest
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 registerForNewInquests() throws OperationFailedException, PermissionDeniedException
InquestReceiver.newInquest()
is invoked when a new
Inquest
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewInquestAncestors(Id inquestId) throws OperationFailedException, PermissionDeniedException
InquestReceiver.newInquestAncestor()
is invoked when the
specified inquest experiences an addition in ancestry.inquestId
- the Id
of the inquest to monitorNullArgumentException
- inquestId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewInquestDescendants(Id inquestId) throws OperationFailedException, PermissionDeniedException
InquestReceiver.newInquestDescendant()
is invoked when the
specified inquest experiences an addition in descendants.inquestId
- the Id
of the inquest to monitorNullArgumentException
- inquestId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedInquests() throws OperationFailedException, PermissionDeniedException
InquestReceiver.changedInquest()
is invoked when an inquest is
changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedInquest(Id inquestId) throws OperationFailedException, PermissionDeniedException
InquestReceiver.changedInquest()
is invoked when the specified
inquest is changed.inquestId
- the Id of the Inquest
to monitorNullArgumentException
- inquestId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedInquests() throws OperationFailedException, PermissionDeniedException
InquestReceiver.deletedInquest()
is invoked when an inquest is
deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedInquest(Id inquestId) throws OperationFailedException, PermissionDeniedException
InquestReceiver.deletedInquest()
is invoked when the specified
inquest is deleted.inquestId
- the Id
of the Inquest
to monitorNullArgumentException
- inquestId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedInquestAncestors(Id inquestId) throws OperationFailedException, PermissionDeniedException
InquestReceiver.deletedInquestAncestor()
is invoked when the
specified inquest experiences a removal of an ancestor.inquestId
- the Id
of the inquest to monitorNullArgumentException
- inquestId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedInquestDescendants(Id inquestId) throws OperationFailedException, PermissionDeniedException
InquestReceiver.deletedInquestDescednant()
is invoked when the
specified inquest experiences a removal of one of its descdendents.inquestId
- the Id
of the inquest to monitorNullArgumentException
- inquestId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.