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

This session provides methods to apply DispatchProcessors to Dispatches . Multiple DispatchProcessors applied to an Dispatch may be sequenced such that the first positive evaluation results in the DispatchProcessor 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.
MethodcanAssignDispatchProcessors
Description

Tests if this user can alter dispatch processor/dispatch 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.
MethodassignDispatchProcessorToDispatch
Description

Adds an existing DispatchProcessor to a Dispatch .

Parametersosid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsALREADY_EXISTSdispatchProcessorId already applied to dispatchId
NOT_FOUNDdispatchProcessorId or dispatchId not found
NULL_ARGUMENTdispatchProcessorId or dispatchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignDispatchProcessorFromDispatch
Description

Removes an existing DispatchProcessor from a Dispatch .

Parametersosid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsNOT_FOUNDdispatchProcessorId or dispatchId not found or dispatchProcessorId already applied to dispatchId
NULL_ARGUMENTdispatchProcessorId or dispatchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceDispatchProcessors
Description

Tests if this user can order DispatchProcessors . 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 DispatchProcessor ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveDispatchProcessorAhead
Description

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

Parametersosid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
osid.id.IddispatchIdthe Id of the Dispatch
osid.id.IdreferenceIdthe reference dispatch processor Id
ErrorsNOT_FOUNDdispatchProcessorId dispatchId , or referenceId not found or, dispatchProcessorId or referenceId not related to dispatchId
NULL_ARGUMENTdispatchProcessorId, dispatchId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveDispatchProcessorBehind
Description

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

Parametersosid.id.IddispatchProcessorIdthe Id of the DispatchProcessor
osid.id.IddispatchIdthe Id of the Dispatch
osid.id.IdreferenceIdthe reference dispatch processor Id
ErrorsNOT_FOUNDdispatchProcessorId, dispatchId , or referenceId not found or, dispatchProcessorId or referenceId not related to dispatchId
NULL_ARGUMENTdispatchProcessorId, dispatchId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderDispatchProcessors
Description

Reorders a set of dispatch processors for a dispatch.

Parametersosid.id.Id[]dispatchProcessorIdsthe Ids for a set of DispatchProcessors
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsNOT_FOUNDdispatchId not found or, a dispatchProcessorId not related to dispatchId
NULL_ARGUMENTdispatchProcessorIds or dispatchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.