Interface QueueProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignQueueProcessorToQueue(Id queueProcessorId, Id queueId) Adds an existingQueueProcessorto aQueue.booleanTests if this user can alter queue processor/queue mappings.booleanTests if this user can orderQueueProcessors.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveQueueProcessorAhead(Id queueProcessorId, Id queueId, Id referenceId) Reorders queue processors for a queue by moving the specified queue processor in front of a reference queue processor.voidmoveQueueProcessorBehind(Id queueProcessorId, Id queueId, Id referenceId) Reorders queue processors for a queue by moving the specified queue processor behind a reference queue processor.voidorderQueueProcessors(Id[] queueProcessorIds, Id queueId) Reorders a set of queue processors for a queue.voidunassignQueueProcessorFromQueue(Id queueProcessorId, Id queueId) Removes an existingQueueProcessorfrom aQueue.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getDistributorId
Id getDistributorId()Gets theDistributorIdassociated with this session.- Returns:
- the
Distributor Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getDistributor
Gets theDistributorassociated with this session.- Returns:
- the distributor
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignQueueProcessors
boolean canAssignQueueProcessors()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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignQueueProcessorToQueue
void assignQueueProcessorToQueue(Id queueProcessorId, Id queueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingQueueProcessorto aQueue.- Parameters:
queueProcessorId- theIdof theQueueProcessorqueueId- theIdof theQueue- Throws:
AlreadyExistsException-queueProcessorIdalready applied toqueueIdNotFoundException-queueProcessorIdorqueueIdnot foundNullArgumentException-queueProcessorIdorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignQueueProcessorFromQueue
void unassignQueueProcessorFromQueue(Id queueProcessorId, Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingQueueProcessorfrom aQueue.- Parameters:
queueProcessorId- theIdof theQueueProcessorqueueId- theIdof theQueue- Throws:
NotFoundException-queueProcessorIdorqueueIdnot found orqueueProcessorIdalready applied toqueueIdNullArgumentException-queueProcessorIdorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceQueueProcessors
boolean canSequenceQueueProcessors()Tests if this user can orderQueueProcessors. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifQueueProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveQueueProcessorAhead
void moveQueueProcessorAhead(Id queueProcessorId, Id queueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue processors for a queue by moving the specified queue processor in front of a reference queue processor.- Parameters:
queueProcessorId- theIdof theQueueProcessorqueueId- theIdof theQueuereferenceId- the reference queue processorId- Throws:
NotFoundException-queueProcessorId queueId, orreferenceIdnot found or,queueProcessorIdorreferenceIdnot related toqueueIdNullArgumentException-queueProcessorId, queueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveQueueProcessorBehind
void moveQueueProcessorBehind(Id queueProcessorId, Id queueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue processors for a queue by moving the specified queue processor behind a reference queue processor.- Parameters:
queueProcessorId- theIdof theQueueProcessorqueueId- theIdof theQueuereferenceId- the reference queue processorId- Throws:
NotFoundException-queueProcessorId, queueId, orreferenceIdnot found or,queueProcessorIdorreferenceIdnot related toqueueIdNullArgumentException-queueProcessorId, queueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderQueueProcessors
void orderQueueProcessors(Id[] queueProcessorIds, Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of queue processors for a queue.- Parameters:
queueProcessorIds- theIdsfor a set ofQueueProcessorsqueueId- theIdof theQueue- Throws:
NotFoundException-queueIdnot found or, aqueueProcessorIdnot related toqueueIdNullArgumentException-queueProcessorIdsorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-