Interface QueueConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply QueueConstrainerEnablers
to QueueConstrainers . a QueueConstrainer with multiple
QueueConstrainerEnablers means any positive rule evaluation across
the enablers result in an effective QueueConstrainer .
-
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 theFrontOfficeassociated with this session.Gets theFrontOfficeIdassociated 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 aQueueConstrainerEnablerfrom 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
-
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.
-
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-queueConstrainerEnablerIdis already 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 aQueueConstrainerEnablerfrom aQueueConstrainer.- Parameters:
queueConstrainerEnablerId- theIdof theQueueConstrainerEnablerqueueConstrainerId- theIdof theQueueConstrainer- Throws:
NotFoundException-queueConstrainerEnablerIdorqueueConstrainerIdnot found orqueueConstrainerEnablerIdnot 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 aQueueConstrainerEnablerqueueConstrainerId- theIdof aQueueConstrainerreferenceId- 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 aQueueConstrainerEnablerqueueConstrainerId- theIdof aQueueConstrainerreferenceId- 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.
-
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 aQueueConstrainer- Throws:
NotFoundException-queueConstrainerIdnot found or, anqueueConstrainerEnablerIdnot related toqueueConstrainerIdNullArgumentException-queueConstrainerEnablerIdsorqueueConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-