public interface ProvisionableNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Provisionable
objects in this dDstributor.
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
ProvisionableLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForProvisionableNotifications()
Tests if this user can register for
Provisionable
notifications. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
registerForChangedProvisionable(Id provisionableId)
Registers for notification of an updated provisionable.
|
void |
registerForChangedProvisionables()
Registers for notification of updated provisionables.
|
void |
registerForChangedProvisionablesForPool(Id poolId)
Registers for notification of updated provisionables for the given
pool.
|
void |
registerForChangedProvisionablesForResource(Id resourceId)
Registers for notification of updated provisionables for the given
resource.
|
void |
registerForDeletedProvisionable(Id provisionableId)
Registers for notification of a deleted provisionable.
|
void |
registerForDeletedProvisionables()
Registers for notification of deleted provisionables.
|
void |
registerForDeletedProvisionablesForPool(Id poolId)
Registers for notification of deleted provisionables for the given
pool.
|
void |
registerForDeletedProvisionablesForResource(Id resourceId)
Registers for notification of deleted provisionables for the given
resource.
|
void |
registerForNewProvisionables()
Register for notifications of new provisionables.
|
void |
registerForNewProvisionablesForPool(Id poolId)
Register for notifications of new provisionables for the given pool.
|
void |
registerForNewProvisionablesForResource(Id resourceId)
Register for notifications of new provisionables for the given
resource.
|
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 canRegisterForProvisionableNotifications()
Provisionable
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 registerForNewProvisionables() throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.newProvisionable()
is invoked when a new
Provisionable
appears in this distributor.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProvisionablesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.newProvisionable()
is
invoked when a new Provisionable
appears in this
distributor.resourceId
- the Id
of the resource to monitorNullArgumentException
- resourceId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProvisionablesForPool(Id poolId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.newProvisionable()
is invoked
when a new Provisionable
appears in this distributor.poolId
- the Id
of the pool to monitorNullArgumentException
- poolId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvisionables() throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedProvisionable()
is invoked when a
provisionable in this distributor is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvisionablesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedProvisionable()
is invoked when a provisionable in this distributor is changed.resourceId
- the Id
of the resource to monitorNullArgumentException
- resourceId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvisionablesForPool(Id poolId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedProvisionable()
is
invoked when a provisionable in this distributor is changed.poolId
- the Id
of the pool to monitorNullArgumentException
- poolId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvisionable(Id provisionableId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedProvisionable()
is invoked when
the specified provisionable in this distributor is changed.provisionableId
- the Id
of the
Provisionable
to monitorNullArgumentException
- provisionableId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisionables() throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.deletedProvisionable()
is invoked when a
provisionable is deleted or removed from this distributor.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisionablesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.deletedProvisionable()
is invoked when a provisionable is deleted or removed from this
distributor.resourceId
- the Id
of the resource to monitorNullArgumentException
- resourceId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisionablesForPool(Id poolId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.deletedProvisionable()
is
invoked when a provisionable is deleted or removed from this
distributor.poolId
- the Id
of the pool to monitorNullArgumentException
- poolId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisionable(Id provisionableId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.deletedProvisionable()
is invoked when
the specified provisionable is deleted or removed from this
distributor.provisionableId
- the Id
of the
Provisionable
to monitorNullArgumentException
- provisionableId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.