OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Interfaceosid.provisioning.DistributorNotificationSession
Implementsosid.OsidSession
Used Byosid.provisioning.ProvisioningManager
osid.provisioning.ProvisioningProxyManager
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.

Returnbooleanfalse if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodreliableDistributorNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeDistributorNotification() .

CompliancemandatoryThis method is must be implemented.
MethodunreliableDistributorNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeDistributorNotification
Description

Acknowledge a distributor notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
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.
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_ARGUMENTdistributorId 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_ARGUMENTdistributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedDistributorHierarchy
Description

Registers for notification of an updated distributor hierarchy structure. DistributorReceiver.changedChildOfDistributors() is invoked when the specified node or any of its descendants experiences a change in its children.

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

Registers for notification of an updated distributor hierarchy structure. DistributorReceiver.changedChildOfDistributors() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IddistributorIdthe Id of the Distributor node to monitor
ErrorsNULL_ARGUMENTdistributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedDistributorHierarchyForDescendants
Description

Registers for notification of an updated distributor hierarchy structure. DistributorReceiver.changedChildOfDistributors() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IddistributorIdthe Id of the Distributor node to monitor
ErrorsNULL_ARGUMENTdistributorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.