Interface QueueProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply QueueProcessorEnablers
to QueueProcessors . a QueueProcessor with multiple
QueueProcessorEnablers means any positive rule evaluation across the
enablers result in an effective QueueProcessor .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignQueueProcessorEnablerToQueueProcessor(Id queueProcessorEnablerId, Id queueProcessorId) Adds an existingQueueProcessorEnablerto aQueueProcessor.booleanTests if this user can alter queue processor enabler/queue processor mappings.booleanTests if this user can orderQueueProcessorEnablers.Gets theFrontOfficeassociated with this session.Gets theFrontOfficeIdassociated with this session.voidmoveQueueProcessorEnablerAhead(Id queueProcessorEnablerId, Id queueProcessorId, Id referenceId) Reorders queue processor enablers for a queue processor by moving the specified queue processor enabler in front of a reference queue processor enabler.voidmoveQueueProcessorEnablerBehind(Id queueProcessorEnablerId, Id queueProcessorId, Id referenceId) Reorders queue processor enablers for a queue processor by moving the specified queue processor enabler behind a reference queue processor enabler.voidorderQueueProcessorEnablers(Id[] queueProcessorEnablerIds, Id queueProcessorId) Reorders a set of queue processor enablers for a queue processor.voidunassignQueueProcessorEnablerFromQueueProcessor(Id queueProcessorEnablerId, Id queueProcessorId) Removes aQueueProcessorEnablerfrom aQueueProcessor.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.
-
canAssignQueueProcessorEnablers
boolean canAssignQueueProcessorEnablers()Tests if this user can alter queue processor enabler/queue processor 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.
-
assignQueueProcessorEnablerToQueueProcessor
void assignQueueProcessorEnablerToQueueProcessor(Id queueProcessorEnablerId, Id queueProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingQueueProcessorEnablerto aQueueProcessor.- Parameters:
queueProcessorEnablerId- theIdof theQueueProcessorEnablerqueueProcessorId- theIdof theQueueProcessor- Throws:
AlreadyExistsException-queueProcessorEnablerIdis already applied toqueueProcessorIdNotFoundException-queueProcessorEnablerIdorqueueProcessorIdnot foundNullArgumentException-queueProcessorEnablerIdorqueueProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignQueueProcessorEnablerFromQueueProcessor
void unassignQueueProcessorEnablerFromQueueProcessor(Id queueProcessorEnablerId, Id queueProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aQueueProcessorEnablerfrom aQueueProcessor.- Parameters:
queueProcessorEnablerId- theIdof theQueueProcessorEnablerqueueProcessorId- theIdof theQueueProcessor- Throws:
NotFoundException-queueProcessorEnablerIdorqueueProcessorIdnot found orqueueProcessorEnablerIdnot applied toqueueProcessorIdNullArgumentException-queueProcessorEnablerIdorqueueProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceQueueProcessorEnablers
boolean canSequenceQueueProcessorEnablers()Tests if this user can orderQueueProcessorEnablers. 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:
falseifQueueProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveQueueProcessorEnablerAhead
void moveQueueProcessorEnablerAhead(Id queueProcessorEnablerId, Id queueProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue processor enablers for a queue processor by moving the specified queue processor enabler in front of a reference queue processor enabler.- Parameters:
queueProcessorEnablerId- theIdof aQueueProcessorEnablerqueueProcessorId- theIdof aQueueProcessorreferenceId- the reference queue processor enablerId- Throws:
NotFoundException-queueProcessorEnablerId, queueProcessorId, orreferenceIdnot found or,queueProcessorEnablerIdorreferenceIdnot related toqueueProcessorIdNullArgumentException-queueProcessorEnablerId, queueProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveQueueProcessorEnablerBehind
void moveQueueProcessorEnablerBehind(Id queueProcessorEnablerId, Id queueProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders queue processor enablers for a queue processor by moving the specified queue processor enabler behind a reference queue processor enabler.- Parameters:
queueProcessorEnablerId- theIdof aQueueProcessorEnablerqueueProcessorId- theIdof aQueueProcessorreferenceId- the reference queue processor enablerId- Throws:
NotFoundException-queueProcessorEnablerId, queueProcessorId, orreferenceIdnot found or,queueProcessorEnablerIdorreferenceIdnot related toqueueProcessorIdNullArgumentException-queueProcessorEnablerId, queueProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderQueueProcessorEnablers
void orderQueueProcessorEnablers(Id[] queueProcessorEnablerIds, Id queueProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of queue processor enablers for a queue processor.- Parameters:
queueProcessorEnablerIds- theIdsfor a set ofQueueProcessorEnablersqueueProcessorId- theIdof aQueueProcessor- Throws:
NotFoundException-queueProcessorIdnot found or, anqueueProcessorEnablerIdnot related toqueueProcessorIdNullArgumentException-queueProcessorEnablerIdsorqueueProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-