OSID Logo
OSID Specifications
provisioning rules package
Version 3.0.0
Interfaceosid.provisioning.rules.QueueConstrainerEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.provisioning.rules.ProvisioningRulesManager
osid.provisioning.rules.ProvisioningRulesProxyManager
Description

This session provides methods to apply QueueConstrainerEnablers to QueueConstrainers . Multiple QueueConstrainerEnablers applied to an QueueConstrainer may be sequenced such that the first positive evaluation results in the QueueConstrainerEnabler used.

MethodgetDistributorId
Description

Gets the Distributor Id associated with this session.

Returnosid.id.Idthe Distributor Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDistributor
Description

Gets the Distributor associated with this session.

Returnosid.provisioning.Distributorthe distributor
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignQueueConstrainerEnablers
Description

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

Adds an existing QueueConstrainerEnabler to a QueueConstrainer .

Parametersosid.id.IdqueueConstrainerEnablerIdthe Id of the QueueConstrainerEnabler
osid.id.IdqueueConstrainerIdthe Id of the QueueConstrainer
ErrorsALREADY_EXISTSqueueConstrainerEnablerId already applied to queueConstrainerId
NOT_FOUNDqueueConstrainerEnablerId or queueConstrainerId not found
NULL_ARGUMENTqueueConstrainerEnablerId or queueConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignQueueConstrainerEnablerFromQueueConstrainer
Description

Removes an existing QueueConstrainerEnabler from a QueueConstrainer .

Parametersosid.id.IdqueueConstrainerEnablerIdthe Id of the QueueConstrainerEnabler
osid.id.IdqueueConstrainerIdthe Id of the QueueConstrainer
ErrorsNOT_FOUNDqueueConstrainerEnablerId or queueConstrainerId not found or queueConstrainerEnablerId already applied to queueConstrainerId
NULL_ARGUMENTqueueConstrainerEnablerId or queueConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceQueueConstrainerEnablers
Description

Tests if this user can order QueueConstrainerEnablers . 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 QueueConstrainerEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveQueueConstrainerEnablerAhead
Description

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

Parametersosid.id.IdqueueConstrainerEnablerIdthe Id of the QueueConstrainerEnabler
osid.id.IdqueueConstrainerIdthe Id of the QueueConstrainer
osid.id.IdreferenceIdthe reference queue constrainer enabler Id
ErrorsNOT_FOUNDqueueConstrainerEnablerId queueConstrainerId , or referenceId not found or, queueConstrainerEnablerId or referenceId not related to queueConstrainerId
NULL_ARGUMENTqueueConstrainerEnablerId, queueConstrainerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveQueueConstrainerEnablerBehind
Description

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

Parametersosid.id.IdqueueConstrainerEnablerIdthe Id of the QueueConstrainerEnabler
osid.id.IdqueueConstrainerIdthe Id of the QueueConstrainer
osid.id.IdreferenceIdthe reference queue constrainer Id
ErrorsNOT_FOUNDqueueConstrainerEnablerId queueConstrainerId , or referenceId not found or, queueConstrainerEnablerId or referenceId not related to queueConstrainerId
NULL_ARGUMENTqueueConstrainerEnablerId, queueConstrainerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderQueueConstrainerEnablers
Description

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

Parametersosid.id.Id[]queueConstrainerEnablerIdsthe Ids for a set of QueueConstrainerEnablers
osid.id.IdqueueConstrainerIdthe Id of the QueueConstrainer
ErrorsNOT_FOUNDqueueConstrainerId not found or, a queueConstrainerEnablerId not related to queueConstrainerId
NULL_ARGUMENTqueueConstrainerEnablerIds or queueConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.