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

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

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

Adds an existing DispatchEnabler to a Dispatch.

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

Removes an existing DispatchEnabler from a Dispatch.

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

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

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

Parametersosid.id.IddispatchEnablerId the Id of the DispatchEnabler
osid.id.IddispatchId the Id of the Dispatch
osid.id.IdreferenceId the reference dispatch enabler Id
ErrorsNOT_FOUND dispatchEnablerId, dispatchId, or referenceId not found or, dispatchEnablerId or referenceId not related to dispatchId
NULL_ARGUMENT dispatchEnablerId, dispatchId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveDispatchEnablerBehind
Description

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

Parametersosid.id.IddispatchEnablerId the Id of the DispatchEnabler
osid.id.IddispatchId the Id of the Dispatch
osid.id.IdreferenceId the reference dispatch enabler Id
ErrorsNOT_FOUND dispatchEnablerId, dispatchId, or referenceId not found or, dispatchEnablerId or referenceId not related to dispatchId
NULL_ARGUMENT dispatchEnablerId, dispatchId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderDispatchEnablers
Description

Reorders a set of dispatch enablers for a dispatch.

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