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

This session defines methods to receive notifications on adds/changes to Distributor objects. 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.

MethodcanRegisterForDistributorNotifications
Description

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

Register for notifications of new distributors. DistributorReceiver.newDistributors() is invoked when a new Distributor is created.

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

Registers for notification if an ancestor is added to the specified distributor in the distributor hierarchy. DistributorReceiver.newDistributorAncestor() is invoked when the specified distributor experiences an addition in ancestry.

Parametersosid.id.IddistributorIdthe Id of the distributor to monitor
ErrorsNULL_ARGUMENT distributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewDistributorDescendants
Description

Registers for notification if a descendant is added to the specified distributor in the distributor hierarchy. DistributorReceiver.newDistributorDescendant() is invoked when the specified distributor experiences an addition in descendants.

Parametersosid.id.IddistributorIdthe Id of the distributor to monitor
ErrorsNULL_ARGUMENT distributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedDistributors
Description

Registers for notification of updated distributors. DistributorReceiver.changedDistributors() is invoked when a distributor is changed.

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

Registers for notification of an updated distributor. DistributorReceiver.changedDistributors() is invoked when the specified distributor is changed.

Parametersosid.id.IddistributorIdthe Id of the Distributor to monitor
ErrorsNULL_ARGUMENT distributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDistributors
Description

Registers for notification of deleted distributors. DistributorReceiver.deletedDistributors() is invoked when a distributor is deleted.

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

Registers for notification of a deleted distributor. DistributorReceiver.deletedDistributors() is invoked when the specified distributor is deleted.

Parametersosid.id.IddistributorIdthe Id of the Distributor to monitor
ErrorsNULL_ARGUMENT distributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDistributorAncestors
Description

Registers for notification if an ancestor is removed from the specified distributor in the distributor hierarchy. DistributorReceiver.deletedDistributorAncestor() is invoked when the specified distributor experiences a removal of an ancestor.

Parametersosid.id.IddistributorIdthe Id of the distributor to monitor
ErrorsNULL_ARGUMENT distributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDistributorDescendants
Description

Registers for notification if a descendant is removed from fthe specified distributor in the distributor hierarchy. DistributorReceiver.deletedDistributorDescednant() is invoked when the specified distributor experiences a removal of one of its descdendents.

Parametersosid.id.IddistributorIdthe Id of the distributor to monitor
ErrorsNULL_ARGUMENT distributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.