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

This session provides methods to apply QueueEnablers to Queues. Multiple QueueEnablers applied to an Queue may be sequenced such that the first positive evaluation results in the QueueEnablers used.

MethodgetDistributorId
Description

Gets the Distributor Id associated with this session.

Returnosid.id.Id the Distributor Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetDistributor
Description

Gets the Distributor associated with this session.

Returnosid.provisioning.Distributor the distributor
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanAssignQueueEnablers
Description

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

Adds an existing QueueEnabler to a Queue.

Parametersosid.id.IdqueueEnablerId the Id of the QueueEnabler
osid.id.IdqueueId the Id of the Queue
ErrorsALREADY_EXISTS queueEnablerId already applied to queueId
NOT_FOUND queueEnablerId or queueId not found
NULL_ARGUMENT queueEnablerId or queueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignQueueEnablerFromQueue
Description

Removes an existing QueueEnabler from a Queue.

Parametersosid.id.IdqueueEnablerId the Id of the QueueEnabler
osid.id.IdqueueId the Id of the Queue
ErrorsNOT_FOUND queueEnablerId or queueId not found or queueEnablerId already applied to queueId
NULL_ARGUMENT queueEnablerId or queueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSequenceQueueEnablers
Description

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

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

Parametersosid.id.IdqueueEnablerId the Id of the QueueEnabler
osid.id.IdqueueId the Id of the Queue
osid.id.IdreferenceId the reference queue enabler Id
ErrorsNOT_FOUND queueEnablerId, queueId, or referenceId not found or, queueEnablerId or referenceId not related to queueId
NULL_ARGUMENT queueEnablerId, queueId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveQueueEnablerBehind
Description

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

Parametersosid.id.IdqueueEnablerId the Id of the QueueEnabler
osid.id.IdqueueId the Id of the Queue
osid.id.IdreferenceId the reference queue enabler Id
ErrorsNOT_FOUND queueEnablerId, queueId, or referenceId not found or, queueEnablerId or referenceId not related to queueId
NULL_ARGUMENT queueEnablerId, queueId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderQueueEnablers
Description

Reorders a set of queue enablers for a queue.

Parametersosid.id.Id[]queueEnablerIds the Ids for a set of QueueEnablers
osid.id.IdqueueId the Id of the Queue
ErrorsNOT_FOUND queueEnablerId, queueId, or referenceId not found or, queueEnablerId or referenceId not related to queueId
NULL_ARGUMENT queueEnablerIds, queueId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.