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

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

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

Adds an existing DispatchConstrainerEnabler to a DispatchConstrainer.

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

Removes an existing DispatchConstrainerEnabler from a DispatchConstrainer.

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

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

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

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

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

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

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

Parametersosid.id.Id[]dispatchConstrainerEnablerIds the Ids for a set of DispatchConstrainerEnablers
osid.id.IddispatchConstrainerId the Id of the DispatchConstrainer
ErrorsNOT_FOUND dispatchConstrainerId not found or, a dispatchConstrainerEnablerId not related to dispatchConstrainerId
NULL_ARGUMENT dispatchConstrainerEnablerIds or dispatchConstrainerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.