Interface QueueConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply QueueConstrainers to
Queues . Multiple QueueConstrainers applied to an
Queue may be sequenced such that the first positive evaluation results in
the QueueConstrainer used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignQueueConstrainerToQueue(Id queueConstrainerId, Id queueId) Adds an existingQueueConstrainerto aQueue.booleanTests if this user can alter queue constrainer/queue mappings.booleanTests if this user can orderQueueConstrainers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveQueueConstrainerAhead(Id queueConstrainerId, Id queueId, Id referenceId) Reorders queue constrainers for a queue by moving the specified queue constrainer in front of a reference queue constrainer.voidmoveQueueConstrainerBehind(Id queueConstrainerId, Id queueId, Id referenceId) Reorders queue constrainers for a queue by moving the specified queue constrainer behind a reference queue constrainer.voidorderQueueConstrainers(Id[] queueConstrainerIds, Id queueId) Reorders a set of queue constrainers for a queue.voidunassignQueueConstrainerFromQueue(Id queueConstrainerId, Id queueId) Removes an existingQueueConstrainerfrom 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.
-
canAssignQueueConstrainers
boolean canAssignQueueConstrainers()Tests if this user can alter queue constrainer/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.
-
assignQueueConstrainerToQueue
void assignQueueConstrainerToQueue(Id queueConstrainerId, Id queueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingQueueConstrainerto aQueue.- Parameters:
queueConstrainerId- theIdof theQueueConstrainerqueueId- theIdof theQueue- Throws:
AlreadyExistsException-queueConstrainerIdalready applied toqueueIdNotFoundException-queueConstrainerIdorqueueIdnot foundNullArgumentException-queueConstrainerIdorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignQueueConstrainerFromQueue
void unassignQueueConstrainerFromQueue(Id queueConstrainerId, Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingQueueConstrainerfrom aQueue.- Parameters:
queueConstrainerId- theIdof theQueueConstrainerqueueId- theIdof theQueue- Throws:
NotFoundException-queueConstrainerIdorqueueIdnot found orqueueConstrainerIdalready applied toqueueIdNullArgumentException-queueConstrainerIdorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceQueueConstrainers
boolean canSequenceQueueConstrainers()Tests if this user can orderQueueConstrainers. 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:
falseifQueueConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveQueueConstrainerAhead
void moveQueueConstrainerAhead(Id queueConstrainerId, Id queueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue constrainers for a queue by moving the specified queue constrainer in front of a reference queue constrainer.- Parameters:
queueConstrainerId- theIdof theQueueConstrainerqueueId- theIdof theQueuereferenceId- the reference queue constrainerId- Throws:
NotFoundException-queueConstrainerId, queueId, orreferenceIdnot found or,queueConstrainerIdorreferenceIdnot related toqueueIdNullArgumentException-queueConstrainerId, queueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveQueueConstrainerBehind
void moveQueueConstrainerBehind(Id queueConstrainerId, Id queueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue constrainers for a queue by moving the specified queue constrainer behind a reference queue constrainer.- Parameters:
queueConstrainerId- theIdof theQueueConstrainerqueueId- theIdof theQueuereferenceId- the reference queue constrainerId- Throws:
NotFoundException-queueConstrainerId, queueId, orreferenceIdnot found or,queueConstrainerIdorreferenceIdnot related toqueueIdNullArgumentException-queueConstrainerId, queueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderQueueConstrainers
void orderQueueConstrainers(Id[] queueConstrainerIds, Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of queue constrainers for a queue.- Parameters:
queueConstrainerIds- theIdsfor a set ofQueueConstrainersqueueId- theIdof theQueue- Throws:
NotFoundException-queueIdnot found or, aqueueConstrainerIdnot related toqueueIdNullArgumentException-queueConstrainerIdsorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-