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

Gets the Publisher associated with this session.

Returnosid.subscription.Publisherthe publisher
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignDispatchConstrainerToDispatch
Description

Adds an existing DispatchConstrainer to a Dispatch .

Parametersosid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsALREADY_EXISTSdispatchConstrainerId already applied to dispatchId
NOT_FOUNDdispatchConstrainerId or dispatchId not found
NULL_ARGUMENTdispatchConstrainerId or dispatchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignDispatchConstrainerFromDispatch
Description

Removes an existing DispatchConstrainer from a Dispatch .

Parametersosid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsNOT_FOUNDdispatchConstrainerId or dispatchId not found or dispatchConstrainerId already applied to dispatchId
NULL_ARGUMENTdispatchConstrainerId or dispatchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if DispatchConstrainer ordering is not authorized, true otherwise
CompliancemandatoryThis 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.IddispatchConstrainerIdthe Id of the DispatchConstrainer
osid.id.IddispatchIdthe Id of the Dispatch
osid.id.IdreferenceIdthe reference dispatch constrainer Id
ErrorsNOT_FOUNDdispatchConstrainerId, dispatchId , or referenceId not found or, dispatchConstrainerId or referenceId not related to dispatchId
NULL_ARGUMENTdispatchConstrainerId, dispatchId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IddispatchConstrainerIdthe Id of the DispatchConstrainer
osid.id.IddispatchIdthe Id of the Dispatch
osid.id.IdreferenceIdthe reference dispatch constrainer Id
ErrorsNOT_FOUNDdispatchConstrainerId, dispatchId , or referenceId not found or, dispatchConstrainerId or referenceId not related to dispatchId
NULL_ARGUMENTdispatchConstrainerId, dispatchId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderDispatchConstrainers
Description

Reorders a set of dispatch constrainers for a dispatch.

Parametersosid.id.Id[]dispatchConstrainerIdsthe Ids for a set of DispatchConstrainers
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsNOT_FOUNDdispatchId not found or, a dispatchConstrainerId not related to dispatchId
NULL_ARGUMENTdispatchConstrainerIds or dispatchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.