OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.MyProvisionNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Provision objects in this Distributor for resources related to the authenticated agent.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.

MethodgetDistributorId
Description

Gets the Distributor Id associated with this session.

Returnosid.id.Idthe Distributor Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDistributor
Description

Gets the Distributor associated with this session.

Returnosid.provisioning.Distributorthe distributor
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForProvisionNotifications
Description

Tests if this user can register for 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.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodregisterForNewProvisions
Description

Register for notifications of new provisions for resources related to the authenticated agent. ProvisionReceiver.newProvision() is invoked when a new Provision appears in this distributor.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewProvisionsForPool
Description

Register for notifications of new provisions for the given pool Id for resources related to the authenticated agent. ProvisionReceiver.newProvision() is invoked when a new Provision is created.

Parametersosid.id.IdpoolIdthe Id of the pool to monitor
ErrorsNULL_ARGUMENT poolId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewProvisionsForQueue
Description

Register for notifications of new provisions for the given queue Id for resources related to the authenticated agent. ProvisionReceiver.newProvision() is invoked when a new Provision is created.

Parametersosid.id.IdqueueIdthe Id of the queue to monitor
ErrorsNULL_ARGUMENT queueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewProvisionsForBroker
Description

Register for notifications of new provisions for the given broker Id for resources related to the authenticated agent. ProvisionReceiver.newProvision() is invoked when a new Provision is created.

Parametersosid.id.IdbrokerIdthe Id of the broker to monitor
ErrorsNULL_ARGUMENT brokerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedProvisions
Description

Registers for notification of updated provisions for resources related to the authenticated agent. ProvisionReceiver.changedProvision() is invoked when a provision in this distributor is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedProvisionsForPool
Description

Register for notifications of updated provisions for the given pool Id for resources related to the authenticated agent. ProvisionReceiver.changedProvision() is invoked when a provision in this distributor is changed.

Parametersosid.id.IdpoolIdthe Id of the pool to monitor
ErrorsNULL_ARGUMENT poolId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedProvisionsForQueue
Description

Register for notifications of updated provisions for the given queue Id for resources related to the authenticated agent. ProvisionReceiver.changedProvision() is invoked when a provision in this distributor is changed.

Parametersosid.id.IdqueueIdthe Id of the queue to monitor
ErrorsNULL_ARGUMENT queueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedProvisionsForBroker
Description

Register for notifications of updated provisions for the given broker Id for resources related to the authenticated agent. ProvisionReceiver.changedProvision() is invoked when a provision in this distributor is changed.

Parametersosid.id.IdbrokerIdthe Id of the broker to monitor
ErrorsNULL_ARGUMENT brokerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedProvisions
Description

Registers for notification of deleted provisions for resources related to the authenticated agent. ProvisionReceiver.deletedProvision() is invoked when a provision is deleted or removed from this distributor.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedProvisionsForPool
Description

Register for notifications of deleted provisions for the given pool Id for resources related to the authenticated agent. ProvisionReceiver.deletedProvision() is invoked when a provision in this distributor is removed or deleted.

Parametersosid.id.IdpoolIdthe Id of the pool to monitor
ErrorsNULL_ARGUMENT poolId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedProvisionsForQueue
Description

Register for notifications of deleted provisions for the given queue Id for resources related to the authenticated agent. ProvisionReceiver.deletedProvision() is invoked when a provision in this distributor is removed or deleted.

Parametersosid.id.IdqueueIdthe Id of the queue to monitor
ErrorsNULL_ARGUMENT queueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedProvisionsForBroker
Description

Register for notifications of deleted provisions for the given broker Id for resources related to the authenticated agent. ProvisionReceiver.deletedProvision() is invoked when a provision in this distributor is removed or deleted.

Parametersosid.id.IdbrokerIdthe Id of the vroker to monitor
ErrorsNULL_ARGUMENT queueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.