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

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

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

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

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableDispatchProcessorEnablerNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeDispatchProcessorEnablerNotification
Description

Acknowledge a dispatch processor enabler notification.

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

Register for notifications of new dispatch processor enablers. DispatchProcessorEnablerReceiver.newDispatchProcessorEnablers() is invoked when a new DispatchProcessorEnabler appears in this publisher.

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

Register for notifications of updated dispatch processor enablers. DispatchProcessorEnablerReceiver.changedDispatchProcessorEnablers() is invoked when a DispatchProcessorEnabler in this publisher is changed.

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

Register for notifications of an updated dispatch processor enabler. DispatchProcessorEnablerReceiver.changedDispatchProcessorEnablers() is invoked when the specified DispatchProcessorEnabler in this publisher is changed.

Parametersosid.id.IddispatchProcessorEnablerIdthe Id of the DispatchProcessorEnabler to monitor
ErrorsNULL_ARGUMENTdispatchProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDispatchProcessorEnablers
Description

Registers for notification of deleted dispatch processor enablers. DispatchProcessorEnablerReceiver.deletedDispatchProcessorEnablers() is invoked when a dispatch processor enabler is deleted or removed from this publisher.

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

Registers for notification of a deleted dispatch processor enabler. DispatchProcessorEnablerReceiver.deletedDispatchProcessorEnabler() is invok ed when the specified dispatch processor enabler is deleted or removed from this publisher.

Parametersosid.id.IddispatchProcessorEnablerIdthe Id of the DispatchProcessorEnabler to monitor
ErrorsNULL_ARGUMENTdispatchProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.