public interface DistributorNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Distributor
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 |
canRegisterForDistributorNotifications()
Tests if this user can register for
Distributor
notifications. |
void |
registerForChangedDistributor(Id distributorId)
Registers for notification of an updated distributor.
|
void |
registerForChangedDistributors()
Registers for notification of updated distributors.
|
void |
registerForDeletedDistributor(Id distributorId)
Registers for notification of a deleted distributor.
|
void |
registerForDeletedDistributorAncestors(Id distributorId)
Registers for notification if an ancestor is removed from the
specified distributor in the distributor hierarchy.
|
void |
registerForDeletedDistributorDescendants(Id distributorId)
Registers for notification if a descendant is removed from fthe
specified distributor in the distributor hierarchy.
|
void |
registerForDeletedDistributors()
Registers for notification of deleted distributors.
|
void |
registerForNewDistributorAncestors(Id distributorId)
Registers for notification if an ancestor is added to the specified
distributor in the distributor hierarchy.
|
void |
registerForNewDistributorDescendants(Id distributorId)
Registers for notification if a descendant is added to the specified
distributor in the distributor hierarchy.
|
void |
registerForNewDistributors()
Register for notifications of new distributors.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForDistributorNotifications()
Distributor
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 registerForNewDistributors() throws OperationFailedException, PermissionDeniedException
DistributorReceiver.newDistributors()
is invoked when a new
Distributor
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewDistributorAncestors(Id distributorId) throws OperationFailedException, PermissionDeniedException
DistributorReceiver.newDistributorAncestor()
is invoked when
the specified distributor experiences an addition in ancestry.distributorId
- the Id
of the distributor to
monitorNullArgumentException
- distributorId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewDistributorDescendants(Id distributorId) throws OperationFailedException, PermissionDeniedException
DistributorReceiver.newDistributorDescendant()
is invoked when
the specified distributor experiences an addition in descendants.distributorId
- the Id
of the distributor to
monitorNullArgumentException
- distributorId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDistributors() throws OperationFailedException, PermissionDeniedException
DistributorReceiver.changedDistributors()
is invoked when a
distributor is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDistributor(Id distributorId) throws OperationFailedException, PermissionDeniedException
DistributorReceiver.changedDistributors()
is invoked when the
specified distributor is changed.distributorId
- the Id of the Distributor
to
monitorNullArgumentException
- distributorId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDistributors() throws OperationFailedException, PermissionDeniedException
DistributorReceiver.deletedDistributors()
is invoked when a
distributor is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDistributor(Id distributorId) throws OperationFailedException, PermissionDeniedException
DistributorReceiver.deletedDistributors()
is invoked when the
specified distributor is deleted.distributorId
- the Id
of the Distributor
to monitorNullArgumentException
- distributorId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDistributorAncestors(Id distributorId) throws OperationFailedException, PermissionDeniedException
DistributorReceiver.deletedDistributorAncestor()
is invoked
when the specified distributor experiences a removal of an ancestor.distributorId
- the Id
of the distributor to
monitorNullArgumentException
- distributorId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDistributorDescendants(Id distributorId) throws OperationFailedException, PermissionDeniedException
DistributorReceiver.deletedDistributorDescednant()
is invoked
when the specified distributor experiences a removal of one of its
descdendents.distributorId
- the Id
of the distributor to
monitorNullArgumentException
- distributorId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.