OSID Logo
OSID Specifications
subscription rules package
Version 3.1.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.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.
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.

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

Adds an existing DispatchProcessorEnabler to a DispatchProcessor.

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

Removes an existing DispatchProcessorEnabler from a DispatchProcessor.

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

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

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

Parametersosid.id.Id[]dispatchProcessorEnablerIds the Ids for a set of DispatchProcessorEnablers
osid.id.IddispatchProcessorId the Id of the DispatchProcessor
ErrorsNOT_FOUND dispatchProcessorId not found or, a dispatchProcessorEnablerId not related to dispatchProcessorId
NULL_ARGUMENT dispatchProcessorEnablerIds or dispatchProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.