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

This session defines methods to receive notifications on adds/changes to DispatchConstrainers in this Publisher . This also includes existing dispatch constrainers 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 DispatchConstrainerLookupSession .

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

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

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableDispatchConstrainerNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeDispatchConstrainerNotification
Description

Acknowledge a dispatch constrainer notification.

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

Register for notifications of new dispatch constrainers. DispatchConstrainerReceiver.newDispatchConstrainers() is invoked when a new DispatchConstrainer appears in this publisher.

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

Register for notifications of updated dispatch constrainers. DispatchConstrainerReceiver.changedDispatchConstrainers() is invoked when a DispatchConstrainer in this publisher is changed.

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

Register for notifications of an updated dispatch constrainer. DispatchConstrainerReceiver.changedDispatchConstrainers() is invoked when the specified DispatchConstrainer in this publisher is changed.

Parametersosid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer to monitor
ErrorsNULL_ARGUMENTdispatchConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDispatchConstrainers
Description

Registers for notification of deleted dispatch constrainers. DispatchConstrainerReceiver.deletedDispatchConstrainers() is invoked when a dispatch constrainer is deleted or removed from this publisher.

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

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

Parametersosid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer to monitor
ErrorsNULL_ARGUMENTdispatchConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.