OSID Logo
OSID Specifications
subscription rules package
Version 3.1.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.Id the Publisher Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetPublisher
Description

Gets the Publisher associated with this session.

Returnosid.subscription.Publisher the publisher
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodassignDispatchProcessorToDispatch
Description

Adds an existing DispatchProcessor to a Dispatch.

Parametersosid.id.IddispatchProcessorId the Id of the DispatchProcessor
osid.id.IddispatchId the Id of the Dispatch
ErrorsALREADY_EXISTS dispatchProcessorId already applied to dispatchId
NOT_FOUND dispatchProcessorId or dispatchId not found
NULL_ARGUMENT dispatchProcessorId or dispatchId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignDispatchProcessorFromDispatch
Description

Removes an existing DispatchProcessor from a Dispatch.

Parametersosid.id.IddispatchProcessorId the Id of the DispatchProcessor
osid.id.IddispatchId the Id of the Dispatch
ErrorsNOT_FOUND dispatchProcessorId or dispatchId not found or dispatchProcessorId already applied to dispatchId
NULL_ARGUMENT dispatchProcessorId or dispatchId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.

Returnboolean false if DispatchProcessor ordering is not authorized, true otherwise
Compliancemandatory This 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.IddispatchProcessorId the Id of the DispatchProcessor
osid.id.IddispatchId the Id of the Dispatch
osid.id.IdreferenceId the reference dispatch processor Id
ErrorsNOT_FOUND dispatchProcessorId dispatchId, or referenceId not found or, dispatchProcessorId or referenceId not related to dispatchId
NULL_ARGUMENT dispatchProcessorId, dispatchId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IddispatchProcessorId the Id of the DispatchProcessor
osid.id.IddispatchId the Id of the Dispatch
osid.id.IdreferenceId the reference dispatch processor Id
ErrorsNOT_FOUND dispatchProcessorId, dispatchId, or referenceId not found or, dispatchProcessorId or referenceId not related to dispatchId
NULL_ARGUMENT dispatchProcessorId, dispatchId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderDispatchProcessors
Description

Reorders a set of dispatch processors for a dispatch.

Parametersosid.id.Id[]dispatchProcessorIds the Ids for a set of DispatchProcessors
osid.id.IddispatchId the Id of the Dispatch
ErrorsNOT_FOUND dispatchId not found or, a dispatchProcessorId not related to dispatchId
NULL_ARGUMENT dispatchProcessorIds or dispatchId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.