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

This session provides methods to apply DispatchProcessorEnablers to DispatchProcessors . Multiple DispatchProcessorEnablers applied to an DispatchProcessor may be sequenced such that the first positive evaluation results in the DispatchProcessorEnabler used.

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

Tests if this user can alter dispatch processor enabler/dispatch processor mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 lookup operations to unauthorized users.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignDispatchProcessorEnablerToDispatchProcessor
Description

Adds an existing DispatchProcessorEnabler to a DispatchProcessor .

Parametersosid.id.IddispatchProcessorEnablerIdthe Id of the DispatchProcessorEnabler
osid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
ErrorsALREADY_EXISTSdispatchProcessorEnablerId already applied to dispatchProcessorId
NOT_FOUNDdispatchProcessorEnablerId or dispatchProcessorId not found
NULL_ARGUMENTdispatchProcessorEnablerId or dispatchProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignDispatchProcessorEnablerFromDispatchProcessor
Description

Removes an existing DispatchProcessorEnabler from a DispatchProcessor .

Parametersosid.id.IddispatchProcessorEnablerIdthe Id of the DispatchProcessorEnabler
osid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
ErrorsNOT_FOUNDdispatchProcessorEnablerId or dispatchProcessorId not found or dispatchProcessorEnablerId already applied to dispatchProcessorId
NULL_ARGUMENTdispatchProcessorEnablerId or dispatchProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceDispatchProcessorEnablers
Description

Tests if this user can order DispatchProcessorEnablers . A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED .This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnbooleanfalse if DispatchProcessorEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveDispatchProcessorEnablerAhead
Description

Reorders dispatch processor enablers for a dispatch processor by moving the specified dispatch processor enabler in front of a reference dispatch processor enabler.

Parametersosid.id.IddispatchProcessorEnablerIdthe Id of the DispatchProcessorEnabler
osid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
osid.id.IdreferenceIdthe reference dispatch processor enabler Id
ErrorsNOT_FOUNDdispatchProcessorEnablerId dispatchProcessorId , or referenceId not found or, dispatchProcessorEnablerId or referenceId not related to dispatchProcessorId
NULL_ARGUMENTdispatchProcessorEnablerId, dispatchProcessorId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveDispatchProcessorEnablerBehind
Description

Reorders dispatch processor enablers for a dispatch processor by moving the specified dispatch processor enabler behind a reference dispatch processor enabler.

Parametersosid.id.IddispatchProcessorEnablerIdthe Id of the DispatchProcessorEnabler
osid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
osid.id.IdreferenceIdthe reference dispatch processor Id
ErrorsNOT_FOUNDdispatchProcessorEnablerId dispatchProcessorId , or referenceId not found or, dispatchProcessorEnablerId or referenceId not related to dispatchProcessorId
NULL_ARGUMENTdispatchProcessorEnablerId, dispatchProcessorId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderDispatchProcessorEnablers
Description

Reorders a set of dispatch processor enablers for a dispatch processor.

Parametersosid.id.Id[]dispatchProcessorEnablerIdsthe Ids for a set of DispatchProcessorEnablers
osid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
ErrorsNOT_FOUNDdispatchProcessorId not found or, a dispatchProcessorEnablerId not related to dispatchProcessorId
NULL_ARGUMENTdispatchProcessorEnablerIds or dispatchProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.