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

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.

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.
MethodcanRegisterForProvisionableNotifications
Description

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

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

Federates the view for methods in this session. A federated view will include provisionables in distributors which are children of this distributor in the distributor hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedDistributorView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this distributor only.

CompliancemandatoryThis method is must be implemented.
MethodregisterForNewProvisionables
Description

Register for notifications of new provisionables. ProvisionableReceiver.newProvisionables() is invoked when a new Provisionable appears in this distributor.

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

Register for notifications of new provisionables for the given resource. ProvisionableReceiver.newProvisionables() is invoked when a new Provisionable appears in this distributor.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewProvisionablesForPool
Description

Register for notifications of new provisionables for the given pool. ProvisionableReceiver.newProvisionables() is invoked when a new Provisionable appears in this distributor.

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.
MethodregisterForChangedProvisionables
Description

Registers for notification of updated provisionables. ProvisionableReceiver.changedProvisionables() is invoked when a provisionable in this distributor is changed.

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

Registers for notification of updated provisionables for the given resource. ProvisionableReceiver.changedProvisionables() is invoked when a provisionable in this distributor is changed.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedProvisionablesForPool
Description

Registers for notification of updated provisionables for the given pool. ProvisionableReceiver.changedProvisionables() is invoked when a provisionable 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.
MethodregisterForChangedProvisionable
Description

Registers for notification of an updated provisionable. ProvisionableReceiver.changedProvisionables() is invoked when the specified provisionable in this distributor is changed.

Parametersosid.id.IdprovisionableIdthe Id of the Provisionable to monitor
ErrorsNULL_ARGUMENT provisionableId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedProvisionables
Description

Registers for notification of deleted provisionables. ProvisionableReceiver.deletedProvisionables() is invoked when a provisionable is deleted or removed from this distributor.

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

Registers for notification of deleted provisionables for the given resource. ProvisionableReceiver.deletedProvisionables() is invoked when a provisionable is deleted or removed from this distributor.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedProvisionablesForPool
Description

Registers for notification of deleted provisionables for the given pool. ProvisionableReceiver.deletedProvisionables() is invoked when a provisionable is deleted or removed from this distributor.

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.
MethodregisterForDeletedProvisionable
Description

Registers for notification of a deleted provisionable. ProvisionableReceiver.deletedProvisionables() is invoked when the specified provisionable is deleted or removed from this distributor.

Parametersosid.id.IdprovisionableIdthe Id of the Provisionable to monitor
ErrorsNULL_ARGUMENT provisionableId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.