Interface QueueEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply QueueEnablers to
Queues . Multiple QueueEnablers applied to an Queue may
be sequenced such that the first positive evaluation results in the
QueueEnablers used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignQueueEnablerToQueue(Id queueEnablerId, Id queueId) Adds an existingQueueEnablerto aQueue.booleanTests if this user can alter queue enabler/queue mappings.booleanTests if this user can orderQueueEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveQueueEnablerAhead(Id queueEnablerId, Id queueId, Id referenceId) Reorders queue enablers for a queue by moving the specified queue enabler in front of a reference queue enabler.voidmoveQueueEnablerBehind(Id queueEnablerId, Id queueId, Id referenceId) Reorders queue enablers for a queue by moving the specified queue enabler behind a reference queue enabler.voidorderQueueEnablers(Id[] queueEnablerIds, Id queueId) Reorders a set of queue enablers for a queue.voidunassignQueueEnablerFromQueue(Id queueEnablerId, Id queueId) Removes an existingQueueEnablerfrom 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.
-
canAssignQueueEnablers
boolean canAssignQueueEnablers()Tests if this user can alter queue enabler/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.
-
assignQueueEnablerToQueue
void assignQueueEnablerToQueue(Id queueEnablerId, Id queueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingQueueEnablerto aQueue.- Parameters:
queueEnablerId- theIdof theQueueEnablerqueueId- theIdof theQueue- Throws:
AlreadyExistsException-queueEnablerIdalready applied toqueueIdNotFoundException-queueEnablerIdorqueueIdnot foundNullArgumentException-queueEnablerIdorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignQueueEnablerFromQueue
void unassignQueueEnablerFromQueue(Id queueEnablerId, Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingQueueEnablerfrom aQueue.- Parameters:
queueEnablerId- theIdof theQueueEnablerqueueId- theIdof theQueue- Throws:
NotFoundException-queueEnablerIdorqueueIdnot found orqueueEnablerIdalready applied toqueueIdNullArgumentException-queueEnablerIdorqueueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceQueueEnablers
boolean canSequenceQueueEnablers()Tests if this user can orderQueueEnablers. 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:
falseifQueueEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveQueueEnablerAhead
void moveQueueEnablerAhead(Id queueEnablerId, Id queueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue enablers for a queue by moving the specified queue enabler in front of a reference queue enabler.- Parameters:
queueEnablerId- theIdof theQueueEnablerqueueId- theIdof theQueuereferenceId- the reference queue enablerId- Throws:
NotFoundException-queueEnablerId, queueId, orreferenceIdnot found or,queueEnablerIdorreferenceIdnot related toqueueIdNullArgumentException-queueEnablerId, queueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveQueueEnablerBehind
void moveQueueEnablerBehind(Id queueEnablerId, Id queueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue enablers for a queue by moving the specified queue enabler behind a reference queue enabler.- Parameters:
queueEnablerId- theIdof theQueueEnablerqueueId- theIdof theQueuereferenceId- the reference queue enablerId- Throws:
NotFoundException-queueEnablerId, queueId, orreferenceIdnot found or,queueEnablerIdorreferenceIdnot related toqueueIdNullArgumentException-queueEnablerId, queueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderQueueEnablers
void orderQueueEnablers(Id[] queueEnablerIds, Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of queue enablers for a queue.- Parameters:
queueEnablerIds- theIdsfor a set ofQueueEnablersqueueId- theIdof theQueue- Throws:
NotFoundException-queueEnablerId, queueId, orreferenceIdnot found or,queueEnablerIdorreferenceIdnot related toqueueIdNullArgumentException-queueEnablerIds, queueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-