Interface PoolConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply PoolConstrainers to
Pools . Multiple PoolConstrainers applied to an
Pool may be sequenced such that the first positive evaluation results in
the PoolConstrainer used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignPoolConstrainerToPool(Id poolConstrainerId, Id poolId) Adds an existingPoolConstrainerto aPool.booleanTests if this user can alter pool constrainer/pool mappings.booleanTests if this user can orderPoolConstrainers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmovePoolConstrainerAhead(Id poolConstrainerId, Id poolId, Id referenceId) Reorders pool constrainers for a pool by moving the specified pool constrainer in front of a reference pool constrainer.voidmovePoolConstrainerBehind(Id poolConstrainerId, Id poolId, Id referenceId) Reorders pool constrainers for a pool by moving the specified pool constrainer behind a reference pool constrainer.voidorderPoolConstrainers(Id[] poolConstrainerIds, Id poolId) Reorders a set of pool constrainers for a pool.voidunassignPoolConstrainerFromPool(Id poolConstrainerId, Id poolId) Removes an existingPoolConstrainerfrom 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.
-
canAssignPoolConstrainers
boolean canAssignPoolConstrainers()Tests if this user can alter pool constrainer/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.
-
assignPoolConstrainerToPool
void assignPoolConstrainerToPool(Id poolConstrainerId, Id poolId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingPoolConstrainerto aPool.- Parameters:
poolConstrainerId- theIdof thePoolConstrainerpoolId- theIdof thePool- Throws:
AlreadyExistsException-poolConstrainerIdalready applied topoolIdNotFoundException-poolConstrainerIdorpoolIdnot foundNullArgumentException-poolConstrainerIdorpoolIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignPoolConstrainerFromPool
void unassignPoolConstrainerFromPool(Id poolConstrainerId, Id poolId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingPoolConstrainerfrom aPool.- Parameters:
poolConstrainerId- theIdof thePoolConstrainerpoolId- theIdof thePool- Throws:
NotFoundException-poolConstrainerIdorpoolIdnot found orpoolConstrainerIdalready applied topoolIdNullArgumentException-poolConstrainerIdorpoolIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequencePoolConstrainers
boolean canSequencePoolConstrainers()Tests if this user can orderPoolConstrainers. 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:
falseifPoolConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
movePoolConstrainerAhead
void movePoolConstrainerAhead(Id poolConstrainerId, Id poolId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool constrainers for a pool by moving the specified pool constrainer in front of a reference pool constrainer.- Parameters:
poolConstrainerId- theIdof thePoolConstrainerpoolId- theIdof thePoolreferenceId- the reference pool constrainerId- Throws:
NotFoundException-poolConstrainerId, poolId, orreferenceIdnot found or,poolConstrainerIdorreferenceIdnot related topoolIdNullArgumentException-poolConstrainerId, poolId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
movePoolConstrainerBehind
void movePoolConstrainerBehind(Id poolConstrainerId, Id poolId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool constrainers for a pool by moving the specified pool constrainer behind a reference pool constrainer.- Parameters:
poolConstrainerId- theIdof thePoolConstrainerpoolId- theIdof thePoolreferenceId- the reference pool constrainerId- Throws:
NotFoundException-poolConstrainerId, poolId, orreferenceIdnot found or,poolConstrainerIdorreferenceIdnot related topoolIdNullArgumentException-poolConstrainerId, poolId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderPoolConstrainers
void orderPoolConstrainers(Id[] poolConstrainerIds, Id poolId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of pool constrainers for a pool.- Parameters:
poolConstrainerIds- theIdsfor a set ofPoolConstrainerspoolId- theIdof thePool- Throws:
NotFoundException-poolIdnot found or, apoolConstrainerIdnot related topoolIdNullArgumentException-poolConstrainerIdsorpoolIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-