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

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

Adds an existing DispatchConstrainerEnabler to a DispatchConstrainer .

Parametersosid.id.IddispatchConstrainerEnablerIdthe Id of the DispatchConstrainerEnabler
osid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer
ErrorsALREADY_EXISTSdispatchConstrainerEnablerId already applied to dispatchConstrainerId
NOT_FOUNDdispatchConstrainerEnablerId or dispatchConstrainerId not found
NULL_ARGUMENTdispatchConstrainerEnablerId or dispatchConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignDispatchConstrainerEnablerFromDispatchConstrainer
Description

Removes an existing DispatchConstrainerEnabler from a DispatchConstrainer .

Parametersosid.id.IddispatchConstrainerEnablerIdthe Id of the DispatchConstrainerEnabler
osid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer
ErrorsNOT_FOUNDdispatchConstrainerEnablerId or dispatchConstrainerId not found or dispatchConstrainerEnablerId already applied to dispatchConstrainerId
NULL_ARGUMENTdispatchConstrainerEnablerId or dispatchConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if DispatchConstrainerEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis 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.IddispatchConstrainerEnablerIdthe Id of the DispatchConstrainerEnabler
osid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer
osid.id.IdreferenceIdthe reference dispatch constrainer enabler Id
ErrorsNOT_FOUNDdispatchConstrainerEnablerId dispatchConstrainerId , or referenceId not found or, dispatchConstrainerEnablerId or referenceId not related to dispatchConstrainerId
NULL_ARGUMENTdispatchConstrainerEnablerId, dispatchConstrainerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IddispatchConstrainerEnablerIdthe Id of the DispatchConstrainerEnabler
osid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer
osid.id.IdreferenceIdthe reference dispatch constrainer Id
ErrorsNOT_FOUNDdispatchConstrainerEnablerId dispatchConstrainerId , or referenceId not found or, dispatchConstrainerEnablerId or referenceId not related to dispatchConstrainerId
NULL_ARGUMENTdispatchConstrainerEnablerId, dispatchConstrainerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderDispatchConstrainerEnablers
Description

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

Parametersosid.id.Id[]dispatchConstrainerEnablerIdsthe Ids for a set of DispatchConstrainerEnablers
osid.id.IddispatchConstrainerIdthe Id of the DispatchConstrainer
ErrorsNOT_FOUNDdispatchConstrainerId not found or, a dispatchConstrainerEnablerId not related to dispatchConstrainerId
NULL_ARGUMENTdispatchConstrainerEnablerIds or dispatchConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.