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

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

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

Tests if this user can register for DispatchProcessor 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 processors 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.
MethodreliableDispatchProcessorNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableDispatchProcessorNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeDispatchProcessorNotification
Description

Acknowledge a dispatch processor notification.

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

Register for notifications of new dispatch processors. DispatchProcessorReceiver.newDispatchProcessors() is invoked when a new DispatchProcessor appears in this publisher.

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

Register for notifications of updated dispatch processors. DispatchProcessorReceiver.changedDispatchProcessors() is invoked when a DispatchProcessor in this publisher is changed.

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

Register for notifications of an updated dispatch processor. DispatchProcessorReceiver.changedDispatchProcessors() is invoked when the specified DispatchProcessor in this publisher is changed.

Parametersosid.id.IddispatchProcessorIdthe Id of the DispatchProcessor to monitor
ErrorsNULL_ARGUMENTdispatchProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDispatchProcessors
Description

Registers for notification of deleted dispatch processors. DispatchProcessorReceiver.deletedDispatchProcessors() is invoked when a dispatch processor is deleted or removed from this publisher.

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

Registers for notification of a deleted dispatch processor. DispatchProcessorReceiver.deletedDispatchProcessor() is invoked when the specified dispatch processor is deleted or removed from this publisher.

Parametersosid.id.IddispatchProcessorIdthe Id of the DispatchProcessor to monitor
ErrorsNULL_ARGUMENTdispatchProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.