Interface PoolProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply PoolProcessorEnablers to
PoolProcessors . Multiple PoolProcessorEnablers applied to
an PoolProcessor may be sequenced such that the first positive
evaluation results in the PoolProcessorEnabler used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignPoolProcessorEnablerToPoolProcessor(Id poolProcessorEnablerId, Id poolProcessorId) Adds an existingPoolProcessorEnablerto aPoolProcessor.booleanTests if this user can alter pool processor enabler/pool processor mappings.booleanTests if this user can orderPoolProcessorEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmovePoolProcessorEnablerAhead(Id poolProcessorEnablerId, Id poolProcessorId, Id referenceId) Reorders pool processor enablers for a pool processor by moving the specified pool processor enabler in front of a reference pool processor enabler.voidmovePoolProcessorEnablerBehind(Id poolProcessorEnablerId, Id poolProcessorId, Id referenceId) Reorders pool processor enablers for a pool processor by moving the specified pool processor enabler behind a reference pool processor enabler.voidorderPoolProcessorEnablers(Id[] poolProcessorEnablerIds, Id poolProcessorId) Reorders a set of pool processor enablers for a pool processor.voidunassignPoolProcessorEnablerFromPoolProcessor(Id poolProcessorEnablerId, Id poolProcessorId) Removes an existingPoolProcessorEnablerfrom aPoolProcessor.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.
-
canAssignPoolProcessorEnablers
boolean canAssignPoolProcessorEnablers()Tests if this user can alter pool processor enabler/pool 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.
-
assignPoolProcessorEnablerToPoolProcessor
void assignPoolProcessorEnablerToPoolProcessor(Id poolProcessorEnablerId, Id poolProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingPoolProcessorEnablerto aPoolProcessor.- Parameters:
poolProcessorEnablerId- theIdof thePoolProcessorEnablerpoolProcessorId- theIdof thePoolProcessor- Throws:
AlreadyExistsException-poolProcessorEnablerIdalready applied topoolProcessorIdNotFoundException-poolProcessorEnablerIdorpoolProcessorIdnot foundNullArgumentException-poolProcessorEnablerIdorpoolProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignPoolProcessorEnablerFromPoolProcessor
void unassignPoolProcessorEnablerFromPoolProcessor(Id poolProcessorEnablerId, Id poolProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingPoolProcessorEnablerfrom aPoolProcessor.- Parameters:
poolProcessorEnablerId- theIdof thePoolProcessorEnablerpoolProcessorId- theIdof thePoolProcessor- Throws:
NotFoundException-poolProcessorEnablerIdorpoolProcessorIdnot found orpoolProcessorEnablerIdalready applied topoolProcessorIdNullArgumentException-poolProcessorEnablerIdorpoolProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequencePoolProcessorEnablers
boolean canSequencePoolProcessorEnablers()Tests if this user can orderPoolProcessorEnablers. 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:
falseifPoolProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
movePoolProcessorEnablerAhead
void movePoolProcessorEnablerAhead(Id poolProcessorEnablerId, Id poolProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool processor enablers for a pool processor by moving the specified pool processor enabler in front of a reference pool processor enabler.- Parameters:
poolProcessorEnablerId- theIdof thePoolProcessorEnablerpoolProcessorId- theIdof thePoolProcessorreferenceId- the reference pool processor enablerId- Throws:
NotFoundException-poolProcessorEnablerId poolProcessorId, orreferenceIdnot found or,poolProcessorEnablerIdorreferenceIdnot related topoolProcessorIdNullArgumentException-poolProcessorEnablerId, poolProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
movePoolProcessorEnablerBehind
void movePoolProcessorEnablerBehind(Id poolProcessorEnablerId, Id poolProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool processor enablers for a pool processor by moving the specified pool processor enabler behind a reference pool processor enabler.- Parameters:
poolProcessorEnablerId- theIdof thePoolProcessorEnablerpoolProcessorId- theIdof thePoolProcessorreferenceId- the reference pool processorId- Throws:
NotFoundException-poolProcessorEnablerId poolProcessorId, orreferenceIdnot found or,poolProcessorEnablerIdorreferenceIdnot related topoolProcessorIdNullArgumentException-poolProcessorEnablerId, poolProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderPoolProcessorEnablers
void orderPoolProcessorEnablers(Id[] poolProcessorEnablerIds, Id poolProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of pool processor enablers for a pool processor.- Parameters:
poolProcessorEnablerIds- theIdsfor a set ofPoolProcessorEnablerspoolProcessorId- theIdof thePoolProcessor- Throws:
NotFoundException-poolProcessorIdnot found or, apoolProcessorEnablerIdnot related topoolProcessorIdNullArgumentException-poolProcessorEnablerIdsorpoolProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-