Interface QueueConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply QueueConstrainerEnablers
to QueueConstrainers . Multiple QueueConstrainerEnablers
applied to an QueueConstrainer may be sequenced such that the
first positive evaluation results in the QueueConstrainerEnabler
used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignQueueConstrainerEnablerToQueueConstrainer(Id queueConstrainerEnablerId, Id queueConstrainerId) Adds an existingQueueConstrainerEnablerto aQueueConstrainer.booleanTests if this user can alter queue constrainer enabler/queue constrainer mappings.booleanTests if this user can orderQueueConstrainerEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveQueueConstrainerEnablerAhead(Id queueConstrainerEnablerId, Id queueConstrainerId, Id referenceId) Reorders queue constrainer enablers for a queue constrainer by moving the specified queue constrainer enabler in front of a reference queue constrainer enabler.voidmoveQueueConstrainerEnablerBehind(Id queueConstrainerEnablerId, Id queueConstrainerId, Id referenceId) Reorders queue constrainer enablers for a queue constrainer by moving the specified queue constrainer enabler behind a reference queue constrainer enabler.voidorderQueueConstrainerEnablers(Id[] queueConstrainerEnablerIds, Id queueConstrainerId) Reorders a set of queue constrainer enablers for a queue constrainer.voidunassignQueueConstrainerEnablerFromQueueConstrainer(Id queueConstrainerEnablerId, Id queueConstrainerId) Removes an existingQueueConstrainerEnablerfrom aQueueConstrainer.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.
-
canAssignQueueConstrainerEnablers
boolean canAssignQueueConstrainerEnablers()Tests if this user can alter queue constrainer enabler/queue constrainer 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.
-
assignQueueConstrainerEnablerToQueueConstrainer
void assignQueueConstrainerEnablerToQueueConstrainer(Id queueConstrainerEnablerId, Id queueConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingQueueConstrainerEnablerto aQueueConstrainer.- Parameters:
queueConstrainerEnablerId- theIdof theQueueConstrainerEnablerqueueConstrainerId- theIdof theQueueConstrainer- Throws:
AlreadyExistsException-queueConstrainerEnablerIdalready applied toqueueConstrainerIdNotFoundException-queueConstrainerEnablerIdorqueueConstrainerIdnot foundNullArgumentException-queueConstrainerEnablerIdorqueueConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignQueueConstrainerEnablerFromQueueConstrainer
void unassignQueueConstrainerEnablerFromQueueConstrainer(Id queueConstrainerEnablerId, Id queueConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingQueueConstrainerEnablerfrom aQueueConstrainer.- Parameters:
queueConstrainerEnablerId- theIdof theQueueConstrainerEnablerqueueConstrainerId- theIdof theQueueConstrainer- Throws:
NotFoundException-queueConstrainerEnablerIdorqueueConstrainerIdnot found orqueueConstrainerEnablerIdalready applied toqueueConstrainerIdNullArgumentException-queueConstrainerEnablerIdorqueueConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceQueueConstrainerEnablers
boolean canSequenceQueueConstrainerEnablers()Tests if this user can orderQueueConstrainerEnablers. 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:
falseifQueueConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveQueueConstrainerEnablerAhead
void moveQueueConstrainerEnablerAhead(Id queueConstrainerEnablerId, Id queueConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue constrainer enablers for a queue constrainer by moving the specified queue constrainer enabler in front of a reference queue constrainer enabler.- Parameters:
queueConstrainerEnablerId- theIdof theQueueConstrainerEnablerqueueConstrainerId- theIdof theQueueConstrainerreferenceId- the reference queue constrainer enablerId- Throws:
NotFoundException-queueConstrainerEnablerId queueConstrainerId, orreferenceIdnot found or,queueConstrainerEnablerIdorreferenceIdnot related toqueueConstrainerIdNullArgumentException-queueConstrainerEnablerId, queueConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveQueueConstrainerEnablerBehind
void moveQueueConstrainerEnablerBehind(Id queueConstrainerEnablerId, Id queueConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue constrainer enablers for a queue constrainer by moving the specified queue constrainer enabler behind a reference queue constrainer enabler.- Parameters:
queueConstrainerEnablerId- theIdof theQueueConstrainerEnablerqueueConstrainerId- theIdof theQueueConstrainerreferenceId- the reference queue constrainerId- Throws:
NotFoundException-queueConstrainerEnablerId queueConstrainerId, orreferenceIdnot found or,queueConstrainerEnablerIdorreferenceIdnot related toqueueConstrainerIdNullArgumentException-queueConstrainerEnablerId, queueConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderQueueConstrainerEnablers
void orderQueueConstrainerEnablers(Id[] queueConstrainerEnablerIds, Id queueConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of queue constrainer enablers for a queue constrainer.- Parameters:
queueConstrainerEnablerIds- theIdsfor a set ofQueueConstrainerEnablersqueueConstrainerId- theIdof theQueueConstrainer- Throws:
NotFoundException-queueConstrainerIdnot found or, aqueueConstrainerEnablerIdnot related toqueueConstrainerIdNullArgumentException-queueConstrainerEnablerIdsorqueueConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-