Interface QueueProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply QueueProcessorEnablers
to QueueProcessors . Multiple QueueProcessorEnablers
applied to an QueueProcessor may be sequenced such that the first
positive evaluation results in the QueueProcessorEnabler used.
-
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 theDistributorassociated with this session.Gets theDistributorIdassociated 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 an existingQueueProcessorEnablerfrom 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
-
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.
-
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-queueProcessorEnablerIdalready 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 an existingQueueProcessorEnablerfrom aQueueProcessor.- Parameters:
queueProcessorEnablerId- theIdof theQueueProcessorEnablerqueueProcessorId- theIdof theQueueProcessor- Throws:
NotFoundException-queueProcessorEnablerIdorqueueProcessorIdnot found orqueueProcessorEnablerIdalready 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 theQueueProcessorEnablerqueueProcessorId- theIdof theQueueProcessorreferenceId- 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 theQueueProcessorEnablerqueueProcessorId- theIdof theQueueProcessorreferenceId- the reference queue processorId- 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 theQueueProcessor- Throws:
NotFoundException-queueProcessorIdnot found or, aqueueProcessorEnablerIdnot related toqueueProcessorIdNullArgumentException-queueProcessorEnablerIdsorqueueProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-