public interface ProvisionNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Provision
objects in this Distributor.
This also includes existing provisions 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
ProvisionLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForProvisionNotifications()
Tests if this user can register for
Provision
notifications. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
registerForChangedProvision(Id provisionId)
Registers for notification of an updated provision.
|
void |
registerForChangedProvisions()
Registers for notification of updated provisions.
|
void |
registerForChangedProvisionsForBroker(Id brokerId)
Register for notifications of updated provisions for the given broker
Id. |
void |
registerForChangedProvisionsForProvisionable(Id provisionableId)
Register for notifications of updated provisions for the given
provisionable
Id. |
void |
registerForChangedProvisionsForRecipient(Id resourceId)
Register for notifications of updated provisions for the given
recipient
Id. |
void |
registerForChangedProvisionsForRequest(Id requestId)
Register for notifications of updated provisions for the given request
Id. |
void |
registerForDeletedProvision(Id provisionId)
Registers for notification of a deleted provision.
|
void |
registerForDeletedProvisions()
Registers for notification of deleted provisions.
|
void |
registerForDeletedProvisionsForBroker(Id brokerId)
Register for notifications of deleted provisions for the given broker
Id. |
void |
registerForDeletedProvisionsForProvisionable(Id provisionableId)
Register for notifications of deleted provisions for the given
provisionable
Id. |
void |
registerForDeletedProvisionsForRecipient(Id resourceId)
Register for notifications of deleted provisions for the given
recipient
Id. |
void |
registerForDeletedProvisionsForRequest(Id requestId)
Register for notifications of deleted provisions for the given request
Id. |
void |
registerForNewProvisions()
Register for notifications of new provisions.
|
void |
registerForNewProvisionsForBroker(Id brokerId)
Register for notifications of new provisions for the given broker
Id. |
void |
registerForNewProvisionsForProvisionable(Id provisionableId)
Register for notifications of new provisions for the given
provisionable
Id. |
void |
registerForNewProvisionsForRecipient(Id resourceId)
Register for notifications of new provisions for the given resource
Id. |
void |
registerForNewProvisionsForRequest(Id requestId)
Register for notifications of new provisions for the given request
Id. |
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 canRegisterForProvisionNotifications()
Provision
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 registerForNewProvisions() throws OperationFailedException, PermissionDeniedException
ProvisionReceiver.newProvision()
is invoked when a new
Provision
appears in this distributor.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProvisionsForRequest(Id requestId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.newProvision()
is
invoked when a new Provision
is created.requestId
- the Id
of the request to monitorNullArgumentException
- requestId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProvisionsForBroker(Id brokerId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.newProvision()
is
invoked when a new Provision
is created.brokerId
- the Id
of the broker to monitorNullArgumentException
- brokerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProvisionsForProvisionable(Id provisionableId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.newProvision()
is invoked when a new
Provision
is created.provisionableId
- the Id
of the provisionable to
monitorNullArgumentException
- provisionableId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProvisionsForRecipient(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.newProvision()
is
invoked when a new Provision
is created.resourceId
- the Id
of the recipient to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvisions() throws OperationFailedException, PermissionDeniedException
ProvisionReceiver.changedProvision()
is invoked when a
provision in this distributor is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvisionsForRequest(Id requestId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.changedProvision()
is invoked when a provision in this distributor is changed.requestId
- the Id
of the request to monitorNullArgumentException
- requestId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvisionsForBroker(Id brokerId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.changedProvision()
is invoked when a provision in this distributor is changed.brokerId
- the Id
of the broker to monitorNullArgumentException
- brokerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvisionsForProvisionable(Id provisionableId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.changedProvision()
is invoked when a
provision 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 registerForChangedProvisionsForRecipient(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.changedProvision()
is invoked when a
provision in this distributor is changed.resourceId
- the Id
of the recipient to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProvision(Id provisionId) throws OperationFailedException, PermissionDeniedException
ProvisionReceiver.changedProvision()
is invoked when the
specified provision in this distributor is changed.provisionId
- the Id
of the Provision
to monitorNullArgumentException
- provisionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisions() throws OperationFailedException, PermissionDeniedException
ProvisionReceiver.deletedProvision()
is invoked when a
provision is deleted or removed from this distributor.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisionsForRequest(Id requestId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.deletedProvision()
is invoked when a provision in this distributor is removed or deleted.requestId
- the Id
of the request to monitorNullArgumentException
- requestId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisionsForBroker(Id brokerId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.deletedProvision()
is invoked when a provision in this distributor is removed or deleted.brokerId
- the Id
of the broker to monitorNullArgumentException
- brokerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisionsForProvisionable(Id provisionableId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.deletedProvision()
is invoked when a
provision in this distributor is removed or deleted.provisionableId
- the Id
of the provisionable to
monitorNullArgumentException
- provisionableId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvisionsForRecipient(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
ProvisionReceiver.deletedProvision()
is invoked when a
provision in this distributor is removed or deleted.resourceId
- the Id
of the recipient to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProvision(Id provisionId) throws OperationFailedException, PermissionDeniedException
ProvisionReceiver.deletedProvision()
is invoked when the
specified provision is deleted or removed from this distributor.provisionId
- the Id
of the Provision
to monitorNullArgumentException
- provisionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.