Interface PoolConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply PoolConstrainerEnablers
to PoolConstrainers . Multiple PoolConstrainerEnablers
applied to an PoolConstrainer may be sequenced such that the first
positive evaluation results in the PoolConstrainerEnabler used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignPoolConstrainerEnablerToPoolConstrainer(Id poolConstrainerEnablerId, Id poolConstrainerId) Adds an existingPoolConstrainerEnablerto aPoolConstrainer.booleanTests if this user can alter pool constrainer enabler/pool constrainer mappings.booleanTests if this user can orderPoolConstrainerEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmovePoolConstrainerEnablerAhead(Id poolConstrainerEnablerId, Id poolConstrainerId, Id referenceId) Reorders pool constrainer enablers for a pool constrainer by moving the specified pool constrainer enabler in front of a reference pool constrainer enabler.voidmovePoolConstrainerEnablerBehind(Id poolConstrainerEnablerId, Id poolConstrainerId, Id referenceId) Reorders pool constrainer enablers for a pool constrainer by moving the specified pool constrainer enabler behind a reference pool constrainer enabler.voidorderPoolConstrainerEnablers(Id[] poolConstrainerEnablerIds, Id poolConstrainerId) Reorders a set of pool constrainer enablers for a pool constrainer.voidunassignPoolConstrainerEnablerFromPoolConstrainer(Id poolConstrainerEnablerId, Id poolConstrainerId) Removes an existingPoolConstrainerEnablerfrom aPoolConstrainer.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.
-
canAssignPoolConstrainerEnablers
boolean canAssignPoolConstrainerEnablers()Tests if this user can alter pool constrainer enabler/pool constrainer 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.
-
assignPoolConstrainerEnablerToPoolConstrainer
void assignPoolConstrainerEnablerToPoolConstrainer(Id poolConstrainerEnablerId, Id poolConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingPoolConstrainerEnablerto aPoolConstrainer.- Parameters:
poolConstrainerEnablerId- theIdof thePoolConstrainerEnablerpoolConstrainerId- theIdof thePoolConstrainer- Throws:
AlreadyExistsException-poolConstrainerEnablerIdalready applied topoolConstrainerIdNotFoundException-poolConstrainerEnablerIdorpoolConstrainerIdnot foundNullArgumentException-poolConstrainerEnablerIdorpoolConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignPoolConstrainerEnablerFromPoolConstrainer
void unassignPoolConstrainerEnablerFromPoolConstrainer(Id poolConstrainerEnablerId, Id poolConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingPoolConstrainerEnablerfrom aPoolConstrainer.- Parameters:
poolConstrainerEnablerId- theIdof thePoolConstrainerEnablerpoolConstrainerId- theIdof thePoolConstrainer- Throws:
NotFoundException-poolConstrainerEnablerIdorpoolConstrainerIdnot found orpoolConstrainerEnablerIdalready applied topoolConstrainerIdNullArgumentException-poolConstrainerEnablerIdorpoolConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequencePoolConstrainerEnablers
boolean canSequencePoolConstrainerEnablers()Tests if this user can orderPoolConstrainerEnablers. 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:
falseifPoolConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
movePoolConstrainerEnablerAhead
void movePoolConstrainerEnablerAhead(Id poolConstrainerEnablerId, Id poolConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool constrainer enablers for a pool constrainer by moving the specified pool constrainer enabler in front of a reference pool constrainer enabler.- Parameters:
poolConstrainerEnablerId- theIdof thePoolConstrainerEnablerpoolConstrainerId- theIdof thePoolConstrainerreferenceId- the reference pool constrainer enablerId- Throws:
NotFoundException-poolConstrainerEnablerId poolConstrainerId, orreferenceIdnot found or,poolConstrainerEnablerIdorreferenceIdnot related topoolConstrainerIdNullArgumentException-poolConstrainerEnablerId, poolConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
movePoolConstrainerEnablerBehind
void movePoolConstrainerEnablerBehind(Id poolConstrainerEnablerId, Id poolConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders pool constrainer enablers for a pool constrainer by moving the specified pool constrainer enabler behind a reference pool constrainer enabler.- Parameters:
poolConstrainerEnablerId- theIdof thePoolConstrainerEnablerpoolConstrainerId- theIdof thePoolConstrainerreferenceId- the reference pool constrainerId- Throws:
NotFoundException-poolConstrainerEnablerId poolConstrainerId, orreferenceIdnot found or,poolConstrainerEnablerIdorreferenceIdnot related topoolConstrainerIdNullArgumentException-poolConstrainerEnablerId, poolConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderPoolConstrainerEnablers
void orderPoolConstrainerEnablers(Id[] poolConstrainerEnablerIds, Id poolConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of pool constrainer enablers for a pool constrainer.- Parameters:
poolConstrainerEnablerIds- theIdsfor a set ofPoolConstrainerEnablerspoolConstrainerId- theIdof thePoolConstrainer- Throws:
NotFoundException-poolConstrainerIdnot found or, apoolConstrainerEnablerIdnot related topoolConstrainerIdNullArgumentException-poolConstrainerEnablerIdsorpoolConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-