Interface PoolEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply PoolEnablers to
Pools . Multiple PoolEnablers applied to an Pool may be
sequenced such that the first positive evaluation results in the
PoolEnablers used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignPoolEnablerToPool(Id poolEnablerId, Id poolId) Adds an existingPoolEnablerto aPool.booleanTests if this user can alter pool enabler/pool mappings.booleanTests if this user can orderPoolEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmovePoolEnablerAhead(Id poolEnablerId, Id poolId, Id referenceId) Reorders pool enablers for a pool by moving the specified pool enabler in front of a reference pool enabler.voidmovePoolEnablerBehind(Id poolEnablerId, Id poolId, Id referenceId) Reorders pool enablers for a pool by moving the specified pool enabler behind a reference pool enabler.voidorderPoolEnablers(Id[] poolEnablerIds, Id poolId) Reorders a set of pool enablers for a pool.voidunassignPoolEnablerFromPool(Id poolEnablerId, Id poolId) Removes an existingPoolEnablerfrom 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.
-
canAssignPoolEnablers
boolean canAssignPoolEnablers()Tests if this user can alter pool enabler/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.
-
assignPoolEnablerToPool
void assignPoolEnablerToPool(Id poolEnablerId, Id poolId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingPoolEnablerto aPool.- Parameters:
poolEnablerId- theIdof thePoolEnablerpoolId- theIdof thePool- Throws:
AlreadyExistsException-poolEnablerIdalready applied topoolIdNotFoundException-poolEnablerIdorpoolIdnot foundNullArgumentException-poolEnablerIdorpoolIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignPoolEnablerFromPool
void unassignPoolEnablerFromPool(Id poolEnablerId, Id poolId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingPoolEnablerfrom aPool.- Parameters:
poolEnablerId- theIdof thePoolEnablerpoolId- theIdof thePool- Throws:
NotFoundException-poolEnablerIdorpoolIdnot found orpoolEnablerIdalready applied topoolIdNullArgumentException-poolEnablerIdorpoolIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequencePoolEnablers
boolean canSequencePoolEnablers()Tests if this user can orderPoolEnablers. 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:
falseifPoolEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
movePoolEnablerAhead
void movePoolEnablerAhead(Id poolEnablerId, Id poolId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool enablers for a pool by moving the specified pool enabler in front of a reference pool enabler.- Parameters:
poolEnablerId- theIdof thePoolEnablerpoolId- theIdof thePoolreferenceId- the reference pool enablerId- Throws:
NotFoundException-poolEnablerId, poolId, orreferenceIdnot found or,poolEnablerIdorreferenceIdnot related topoolIdNullArgumentException-poolEnablerId, poolId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
movePoolEnablerBehind
void movePoolEnablerBehind(Id poolEnablerId, Id poolId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool enablers for a pool by moving the specified pool enabler behind a reference pool enabler.- Parameters:
poolEnablerId- theIdof thePoolEnablerpoolId- theIdof thePoolreferenceId- the reference pool enablerId- Throws:
NotFoundException-poolEnablerId, poolId, orreferenceIdnot found or,poolEnablerIdorreferenceIdnot related topoolIdNullArgumentException-poolEnablerId, poolId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderPoolEnablers
void orderPoolEnablers(Id[] poolEnablerIds, Id poolId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of pool enablers for a pool.- Parameters:
poolEnablerIds- theIdsfor a set ofPoolEnablerspoolId- theIdof thePool- Throws:
NotFoundException-poolEnablerId, poolId, orreferenceIdnot found or,poolEnablerIdorreferenceIdnot related topoolIdNullArgumentException-poolEnablerIds, poolId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-