OSID Logo
OSID Specifications
subscription rules package
Version 3.0.0
Interfaceosid.subscription.rules.DispatchConstrainerEnablerNotificationSession
Implementsosid.OsidSession
Used Byosid.subscription.rules.SubscriptionRulesManager
osid.subscription.rules.SubscriptionRulesProxyManager
Description

This session defines methods to receive notifications on adds/changes to DispatchConstrainerEnablers in this Publisher . This also includes existing dispatch constrainer enablers that may appear or disappear due to changes in the Publisher hier archy, 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 DispatchConstrainerEnablerLookupSession .

MethodgetPublisherId
Description

Gets the Publisher Id associated with this session.

Returnosid.id.Idthe Publisher Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetPublisher
Description

Gets the Publisher associated with this session.

Returnosid.subscription.Publisherthe publisher
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForDispatchConstrainerEnablerNotifications
Description

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

Federates the view for methods in this session. A federated view will include dispatch constrainer enablers in publishers which are children of this publisher in the publisher hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedPublisherView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodreliableDispatchConstrainerEnablerNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableDispatchConstrainerEnablerNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeDispatchConstrainerEnablerNotification
Description

Acknowledge a dispatch constrainer enabler notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewDispatchConstrainerEnablers
Description

Register for notifications of new dispatch constrainer enablers. DispatchConstrainerEnablerReceiver.newDispatchConstrainerEnablers() is invoked when a new DispatchConstrainerEnabler appears in this publisher.

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

Register for notifications of updated dispatch constrainer enablers. DispatchConstrainerEnablerReceiver.changedDispatchConstrainerEnablers() is invoked when a DispatchConstrainerEnabler in this publisher is changed.

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

Register for notifications of an updated dispatch constrainer enabler. DispatchConstrainerEnablerReceiver.changedDispatchConstrainerEnablers() is invoked when the specified DispatchConstrainerEnabler in this publisher is changed.

Parametersosid.id.IddispatchConstrainerEnablerIdthe Id of the DispatchConstrainerEnabler to monitor
ErrorsNULL_ARGUMENTdispatchConstrainerEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDispatchConstrainerEnablers
Description

Registers for notification of deleted dispatch constrainer enablers. DispatchConstrainerEnablerReceiver.deletedDispatchConstrainerEnablers() is invok ed when a dispatch constrainer enabler is deleted or removed from this publisher.

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

Registers for notification of a deleted dispatch constrainer enabler. DispatchConstrainerEnablerReceiver.deletedDispatchConstrainerEnabler() is invoked when the specified dispatch constrainer enabler is deleted or removed from this publisher.

Parametersosid.id.IddispatchConstrainerEnablerIdthe Id of the DispatchConstrainerEnabler to monitor
ErrorsNULL_ARGUMENTdispatchConstrainerEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.