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

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

Adds an existing DispatchEnabler to a Dispatch .

Parametersosid.id.IddispatchEnablerIdthe Id of the DispatchEnabler
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsALREADY_EXISTSdispatchEnablerId already applied to dispatchId
NOT_FOUNDdispatchEnablerId or dispatchId not found
NULL_ARGUMENTdispatchEnablerId or dispatchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignDispatchEnablerFromDispatch
Description

Removes an existing DispatchEnabler from a Dispatch .

Parametersosid.id.IddispatchEnablerIdthe Id of the DispatchEnabler
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsNOT_FOUNDdispatchEnablerId or dispatchId not found or dispatchEnablerId already applied to dispatchId
NULL_ARGUMENTdispatchEnablerId or dispatchId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if DispatchEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis 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.IddispatchEnablerIdthe Id of the DispatchEnabler
osid.id.IddispatchIdthe Id of the Dispatch
osid.id.IdreferenceIdthe reference dispatch enabler Id
ErrorsNOT_FOUNDdispatchEnablerId, dispatchId , or referenceId not found or, dispatchEnablerId or referenceId not related to dispatchId
NULL_ARGUMENTdispatchEnablerId, dispatchId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IddispatchEnablerIdthe Id of the DispatchEnabler
osid.id.IddispatchIdthe Id of the Dispatch
osid.id.IdreferenceIdthe reference dispatch enabler Id
ErrorsNOT_FOUNDdispatchEnablerId, dispatchId , or referenceId not found or, dispatchEnablerId or referenceId not related to dispatchId
NULL_ARGUMENTdispatchEnablerId, dispatchId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderDispatchEnablers
Description

Reorders a set of dispatch enablers for a dispatch.

Parametersosid.id.Id[]dispatchEnablerIdsthe Ids for a set of DispatchEnablers
osid.id.IddispatchIdthe Id of the Dispatch
ErrorsNOT_FOUNDdispatchEnablerId, dispatchId , or referenceId not found or, dispatchEnablerId or referenceId not related to dispatchId
NULL_ARGUMENTdispatchEnablerIds, dispatchId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.