public interface BinNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Bin
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 |
canRegisterForBinNotifications()
Tests if this user can register for
Bin notifications. |
void |
registerForChangedBin(Id binId)
Registers for notification of an updated bin.
|
void |
registerForChangedBins()
Registers for notification of updated bins.
|
void |
registerForDeletedBin(Id binId)
Registers for notification of a deleted bin.
|
void |
registerForDeletedBinAncestors(Id binId)
Registers for notification if an ancestor is removed from the
specified bin in the bin hierarchy.
|
void |
registerForDeletedBinDescendants(Id binId)
Registers for notification if a descendant is removed from fthe
specified bin in the bin hierarchy.
|
void |
registerForDeletedBins()
Registers for notification of deleted bins.
|
void |
registerForNewBinAncestors(Id binId)
Registers for notification if an ancestor is added to the specified
bin in the bin hierarchy.
|
void |
registerForNewBinDescendants(Id binId)
Registers for notification if a descendant is added to the specified
bin in the bin hierarchy.
|
void |
registerForNewBins()
Register for notifications of new bins.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForBinNotifications()
Bin
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 registerForNewBins() throws OperationFailedException, PermissionDeniedException
BinReceiver.newBins()
is invoked when a new Bin
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewBinAncestors(Id binId) throws OperationFailedException, PermissionDeniedException
BinReceiver.newBinAncestor()
is invoked when the specified bin experiences an addition in ancestry.binId
- the Id
of the bin to monitorNullArgumentException
- binId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewBinDescendants(Id binId) throws OperationFailedException, PermissionDeniedException
BinReceiver.newBinDescendant()
is invoked when the specified bin experiences an addition in
descendants.binId
- the Id
of the bin to monitorNullArgumentException
- binId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBins() throws OperationFailedException, PermissionDeniedException
BinReceiver.changedBins()
is invoked when a bin is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBin(Id binId) throws OperationFailedException, PermissionDeniedException
BinReceiver.changedBins()
is invoked when the specified bin is
changed.binId
- the Id of the Bin to monitorNullArgumentException
- binId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBins() throws OperationFailedException, PermissionDeniedException
BinReceiver.deletedBins()
is invoked when a bin is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBin(Id binId) throws OperationFailedException, PermissionDeniedException
BinReceiver.deletedBins()
is invoked when the specified bin is
deleted.binId
- the Id
of the Bin
to
monitorNullArgumentException
- binId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBinAncestors(Id binId) throws OperationFailedException, PermissionDeniedException
BinReceiver.deletedBinAncestor()
is invoked when the specified
bin experiences a removal of an ancestor.binId
- the Id
of the bin to monitorNullArgumentException
- binId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBinDescendants(Id binId) throws OperationFailedException, PermissionDeniedException
BinReceiver.deletedBinDescendnant()
is invoked when the
specified bin experiences a removal of one of its descdendents.binId
- the Id
of the bin to monitorNullArgumentException
- binId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.