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

This session provides methods to apply QueueProcessors to Queues. Multiple QueueProcessors applied to an Queue may be sequenced such that the first positive evaluation results in the QueueProcessor 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.
MethodcanAssignQueueProcessors
Description

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

Adds an existing QueueProcessor to a Queue.

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

Removes an existing QueueProcessor from a Queue.

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

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

Reorders queue processors for a queue by moving the specified queue processor in front of a reference queue processor.

Parametersosid.id.IdqueueProcessorId the Id of the QueueProcessor
osid.id.IdqueueId the Id of the Queue
osid.id.IdreferenceId the reference queue processor Id
ErrorsNOT_FOUND queueProcessorId queueId, or referenceId not found or, queueProcessorId or referenceId not related to queueId
NULL_ARGUMENT queueProcessorId, queueId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveQueueProcessorBehind
Description

Reorders queue processors for a queue by moving the specified queue processor behind a reference queue processor.

Parametersosid.id.IdqueueProcessorId the Id of the QueueProcessor
osid.id.IdqueueId the Id of the Queue
osid.id.IdreferenceId the reference queue processor Id
ErrorsNOT_FOUND queueProcessorId, queueId, or referenceId not found or, queueProcessorId or referenceId not related to queueId
NULL_ARGUMENT queueProcessorId, queueId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderQueueProcessors
Description

Reorders a set of queue processors for a queue.

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