Interface QueueProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply QueueProcessors to
Queues .
-
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 theFrontOfficeassociated with this session.Gets theFrontOfficeIdassociated with this session.voidmoveQueueProcessorAhead(Id queueProcessorId, Id queueId, Id referenceId) Reorders queue processors for a queue by moving the specified queue processors in front of a reference queue processors.voidmoveQueueProcessorBehind(Id queueProcessorId, Id queueId, Id referenceId) Reorders queue processors for a queue by moving the specified queue processors behind a reference queue processors.voidorderQueueProcessors(Id[] queueProcessorIds, Id queueId) Reorders a set of queue processors for a queue.voidunassignQueueProcessorFromQueue(Id queueProcessorId, Id queueId) Removes aQueueProcessorfrom 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
-
getFrontOfficeId
Id getFrontOfficeId()Gets theFrontOfficeIdassociated with this session.- Returns:
- the
FrontOffice Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getFrontOffice
Gets theFrontOfficeassociated with this session.- Returns:
- the office
- 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-queueProcessorIdis already 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 aQueueProcessorfrom aQueue.- Parameters:
queueProcessorId- theIdof theQueueProcessorqueueId- theIdof theQueue- Throws:
NotFoundException-queueProcessorIdorqueueIdnot found orqueueProcessorIdnot 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 processors in front of a reference queue processors.- Parameters:
queueProcessorId- theIdof aQueueProcessorqueueId- theIdof aQueuereferenceId- 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 processors behind a reference queue processors.- Parameters:
queueProcessorId- theIdof aQueueProcessorqueueId- theIdof aQueuereferenceId- 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 aQueue- Throws:
NotFoundException-queueIdnot found or, anqueueProcessorIdnot related toqueueIdNullArgumentException-queueProcessorIdsorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-