Interface QueueConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply QueueConstrainers to
Queues . A Queue with multiple QueueConstrainers
means any positive rule evaluation across the constrainers result in an
accessible Queue .
-
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 theFrontOfficeassociated with this session.Gets theFrontOfficeIdassociated with this session.voidmoveQueueConstrainerAhead(Id queueConstrainerId, Id queueId, Id referenceId) Reorders queue constrainer 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 constrainer 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 aQueueConstrainerfrom 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.
-
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-queueConstrainerIdis already 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 aQueueConstrainerfrom aQueue.- Parameters:
queueConstrainerId- theIdof theQueueConstrainerqueueId- theIdof theQueue- Throws:
NotFoundException-queueConstrainerIdorqueueIdnot found orqueueConstrainerIdnot 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 constrainer for a queue by moving the specified queue constrainer in front of a reference queue constrainer.- Parameters:
queueConstrainerId- theIdof aQueueConstrainerqueueId- theIdof aQueuereferenceId- the reference queue constrainerId- Throws:
NotFoundException-queueConstrainerId, queueIdorreferenceIdnot found or,queueConstrainerIdorreferenceIdnot related toqueueIdNullArgumentException-queueConstrainerId, queueIdorreferenceIdisnullOperationFailedException- 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 constrainer for a queue by moving the specified queue constrainer behind a reference queue constrainer.- Parameters:
queueConstrainerId- theIdof aQueueConstrainerqueueId- theIdof aQueuereferenceId- the reference queue constrainerId- Throws:
NotFoundException-queueConstrainerId, queueIdorreferenceIdnot found or,queueConstrainerIdorreferenceIdnot related toqueueIdNullArgumentException-queueConstrainerId, queueIdorreferenceIdisnullOperationFailedException- 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 aQueueConstrainer- Throws:
NotFoundException-queueIdnot found or, aqueueConstrainerIdnot related toqueueIdNullArgumentException-queueConstrainerIdsorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-