Interface PoolProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply PoolProcessors to
Pools . Multiple PoolProcessors applied to an Pool may be
sequenced such that the first positive evaluation results in the
PoolProcessor used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignPoolProcessorToPool(Id poolProcessorId, Id poolId) Adds an existingPoolProcessorto aPool.booleanTests if this user can alter pool processor/pool mappings.booleanTests if this user can orderPoolProcessors.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmovePoolProcessorAhead(Id poolProcessorId, Id poolId, Id referenceId) Reorders pool processors for a pool by moving the specified pool processor in front of a reference pool processor.voidmovePoolProcessorBehind(Id poolProcessorId, Id poolId, Id referenceId) Reorders pool processors for a pool by moving the specified pool processor behind a reference pool processor.voidorderPoolProcessors(Id[] poolProcessorIds, Id poolId) Reorders a set of pool processors for a pool.voidunassignPoolProcessorFromPool(Id poolProcessorId, Id poolId) Removes an existingPoolProcessorfrom aPool.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.
-
canAssignPoolProcessors
boolean canAssignPoolProcessors()Tests if this user can alter pool processor/pool 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.
-
assignPoolProcessorToPool
void assignPoolProcessorToPool(Id poolProcessorId, Id poolId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingPoolProcessorto aPool.- Parameters:
poolProcessorId- theIdof thePoolProcessorpoolId- theIdof thePool- Throws:
AlreadyExistsException-poolProcessorIdalready applied topoolIdNotFoundException-poolProcessorIdorpoolIdnot foundNullArgumentException-poolProcessorIdorpoolIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignPoolProcessorFromPool
void unassignPoolProcessorFromPool(Id poolProcessorId, Id poolId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingPoolProcessorfrom aPool.- Parameters:
poolProcessorId- theIdof thePoolProcessorpoolId- theIdof thePool- Throws:
NotFoundException-poolProcessorIdorpoolIdnot found orpoolProcessorIdalready applied topoolIdNullArgumentException-poolProcessorIdorpoolIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequencePoolProcessors
boolean canSequencePoolProcessors()Tests if this user can orderPoolProcessors. 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:
falseifPoolProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
movePoolProcessorAhead
void movePoolProcessorAhead(Id poolProcessorId, Id poolId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool processors for a pool by moving the specified pool processor in front of a reference pool processor.- Parameters:
poolProcessorId- theIdof thePoolProcessorpoolId- theIdof thePoolreferenceId- the reference pool processorId- Throws:
NotFoundException-poolProcessorId poolId, orreferenceIdnot found or,poolProcessorIdorreferenceIdnot related topoolIdNullArgumentException-poolProcessorId, poolId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
movePoolProcessorBehind
void movePoolProcessorBehind(Id poolProcessorId, Id poolId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool processors for a pool by moving the specified pool processor behind a reference pool processor.- Parameters:
poolProcessorId- theIdof thePoolProcessorpoolId- theIdof thePoolreferenceId- the reference pool processorId- Throws:
NotFoundException-poolProcessorId, poolId, orreferenceIdnot found or,poolProcessorIdorreferenceIdnot related topoolIdNullArgumentException-poolProcessorId, poolId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderPoolProcessors
void orderPoolProcessors(Id[] poolProcessorIds, Id poolId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of pool processors for a pool.- Parameters:
poolProcessorIds- theIdsfor a set ofPoolProcessorspoolId- theIdof thePool- Throws:
NotFoundException-poolIdnot found or, apoolProcessorIdnot related topoolIdNullArgumentException-poolProcessorIdsorpoolIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-