public interface OublietteNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Oubliette
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 |
canRegisterForOublietteNotifications()
Tests if this user can register for
Oubliette
notifications. |
void |
registerForChangedOubliette(Id oublietteId)
Registers for notification of an updated oubliette.
|
void |
registerForChangedOubliettes()
Registers for notification of updated oubliettes.
|
void |
registerForDeletedOubliette(Id oublietteId)
Registers for notification of a deleted oubliette.
|
void |
registerForDeletedOublietteAncestors(Id oublietteId)
Registers for notification if an ancestor is removed from the
specified oubliette in the oubliette hierarchy.
|
void |
registerForDeletedOublietteDescendants(Id oublietteId)
Registers for notification if a descendant is removed from fthe
specified oubliette in the oubliette hierarchy.
|
void |
registerForDeletedOubliettes()
Registers for notification of deletedoOubliettes.
|
void |
registerForNewOublietteAncestors(Id oublietteId)
Registers for notification if an ancestor is added to the specified
oubliette in the oubliette hierarchy.
|
void |
registerForNewOublietteDescendants(Id oublietteId)
Registers for notification if a descendant is added to the specified
oubliette in the oubliette hierarchy.
|
void |
registerForNewOubliettes()
Register for notifications of new oubliettes.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForOublietteNotifications()
Oubliette
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 registerForNewOubliettes() throws OperationFailedException, PermissionDeniedException
OublietteReceiver.newOubliette()
is invoked when a new
Oubliette
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewOublietteAncestors(Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OublietteReceiver.newOublietteAncestor()
is invoked when the
specified oubliette experiences an addition in ancestry.oublietteId
- the Id
of the oubliette to monitorNotFoundException
- an oubliette was not found
identified by the given Id
NullArgumentException
- oublietteId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewOublietteDescendants(Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OublietteReceiver.newOublietteDescendant()
is invoked when the
specified oubliette experiences an addition in descendants.oublietteId
- the Id
of the oubliette to monitorNotFoundException
- an oubliette was not found
identified by the given Id
NullArgumentException
- oublietteId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedOubliettes() throws OperationFailedException, PermissionDeniedException
OublietteReceiver.changedOubliette()
is invoked when an
oubliette is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedOubliette(Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OublietteReceiver.changedOubliette()
is invoked when the
specified oubliette is changed.oublietteId
- the Id of the Oubliette
to monitorNotFoundException
- an oubliette was not found
identified by the given Id
NullArgumentException
- oublietteId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOubliettes() throws OperationFailedException, PermissionDeniedException
OublietteReceiver.deletedOubliette()
is invoked when an
oubliette is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOubliette(Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OublietteReceiver.deletedOubliette()
is invoked when the
specified oubliette is deleted.oublietteId
- the Id
of the Oubliette
to monitorNotFoundException
- an oubliette was not found
identified by the given Id
NullArgumentException
- oublietteId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOublietteAncestors(Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OublietteReceiver.deletedOublietteAncestor()
is invoked when
the specified oubliette experiences a removal of an ancestor.oublietteId
- the Id
of the oubliette to monitorNotFoundException
- an oubliette was not found
identified by the given Id
NullArgumentException
- oublietteId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOublietteDescendants(Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OublietteReceiver.deletedOublietteDescednant()
is invoked when
the specified oubliette experiences a removal of one of its
descdendents.oublietteId
- the Id
of the oubliette to monitorNotFoundException
- an oubliette was not found
identified by the given Id
NullArgumentException
- oublietteId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.