public interface BrokerConstrainerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to BrokerConstrainer
objects in this Distributor.
This also includes existing BrokerConstrainers
that
may appear or disappear due to changes in the Distributor
hierarchy, 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
BrokerConstrainerLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForBrokerConstrainerNotifications()
Tests if this user can register for
BrokerConstrainer
notifications. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
registerForChangedBrokerConstrainer(Id brokerConstrainerId)
Registers for notification of an updated broker constrainer.
|
void |
registerForChangedBrokerConstrainers()
Registers for notification of updated distributors.
|
void |
registerForDeletedBrokerConstrainer(Id brokerConstrainerId)
Registers for notification of a deleted broker constrainer.
|
void |
registerForDeletedBrokerConstrainers()
Registers for notification of deleted broker constrainers.
|
void |
registerForNewBrokerConstrainers()
Register for notifications of new broker constrainers.
|
void |
useFederatedDistributorView()
Federates the view for methods in this session.
|
void |
useIsolatedDistributorView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getDistributorId()
Distributor
Id
associated with
this session. Distributor Id
associated with this sessionmandatory
- This method must be implemented. Distributor getDistributor() throws OperationFailedException, PermissionDeniedException
Distributor
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForBrokerConstrainerNotifications()
BrokerConstrainer
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 useFederatedDistributorView()
mandatory
- This method is must be implemented. void useIsolatedDistributorView()
mandatory
- This method is must be implemented. void registerForNewBrokerConstrainers() throws OperationFailedException, PermissionDeniedException
BrokerConstrainerReceiver.newBrokerConstrainers()
is invoked
when a new BrokerConstrainer
appears in this
distributor.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBrokerConstrainers() throws OperationFailedException, PermissionDeniedException
BrokerConstrainerReceiver.changedBrokerConstrainers()
is
invoked when a broker constrainer in this distributor is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBrokerConstrainer(Id brokerConstrainerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedBrokerConstrainers()
is invoked
when the specified broker constrainer in this distributor is changed.brokerConstrainerId
- the Id
of the
BrokerConstrainer
to monitorNullArgumentException
- brokerConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBrokerConstrainers() throws OperationFailedException, PermissionDeniedException
BrokerConstrainerReceiver.deletedBrokerConstrainers()
is
invoked when a broker constrainer is deleted or removed from this
distributor.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBrokerConstrainer(Id brokerConstrainerId) throws OperationFailedException, PermissionDeniedException
BrokerConstrainerReceiver.deletedBrokerConstrainers()
is
invoked when the specified broker constrainer is deleted or removed
from this distributor.brokerConstrainerId
- the Id
of the
BrokerConstrainer
to monitorNullArgumentException
- brokerConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.