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

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

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

Adds an existing DispatchConstrainer to a Dispatch.

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

Removes an existing DispatchConstrainer from a Dispatch.

Parametersosid.id.IddispatchConstrainerId the Id of the DispatchConstrainer
osid.id.IddispatchId the Id of the Dispatch
ErrorsNOT_FOUND dispatchConstrainerId or dispatchId not found or dispatchConstrainerId already applied to dispatchId
NULL_ARGUMENT dispatchConstrainerId or dispatchId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSequenceDispatchConstrainers
Description

Tests if this user can order DispatchConstrainers. 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 DispatchConstrainer ordering is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodmoveDispatchConstrainerAhead
Description

Reorders dispatch constrainers for a dispatch by moving the specified dispatch constrainer in front of a reference dispatch constrainer.

Parametersosid.id.IddispatchConstrainerId the Id of the DispatchConstrainer
osid.id.IddispatchId the Id of the Dispatch
osid.id.IdreferenceId the reference dispatch constrainer Id
ErrorsNOT_FOUND dispatchConstrainerId, dispatchId, or referenceId not found or, dispatchConstrainerId or referenceId not related to dispatchId
NULL_ARGUMENT dispatchConstrainerId, dispatchId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveDispatchConstrainerBehind
Description

Reorders dispatch constrainers for a dispatch by moving the specified dispatch constrainer behind a reference dispatch constrainer.

Parametersosid.id.IddispatchConstrainerId the Id of the DispatchConstrainer
osid.id.IddispatchId the Id of the Dispatch
osid.id.IdreferenceId the reference dispatch constrainer Id
ErrorsNOT_FOUND dispatchConstrainerId, dispatchId, or referenceId not found or, dispatchConstrainerId or referenceId not related to dispatchId
NULL_ARGUMENT dispatchConstrainerId, dispatchId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderDispatchConstrainers
Description

Reorders a set of dispatch constrainers for a dispatch.

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