Interface ValueEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ValueEnablers to
Values . A Value with multiple ValueEnablers means any
positive rule evaluation across the enablers result in a visible
Value .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignValueEnablerToValue(Id valueEnablerId, Id valueId) Adds an existingValueEnablerto aValue.booleanTests if this user can alter value enabler/value mappings.booleanTests if this user can orderValueEnablers.Gets theConfigurationassociated with this session.Gets theConfigurationIdassociated with this session.voidmoveValueEnablerAhead(Id valueEnablerId, Id valueId, Id referenceId) Reorders value enablers for a value by moving the specified value enabler in front of a reference value enabler.voidmoveValueEnablerBehind(Id valueEnablerId, Id valueId, Id referenceId) Reorders value enablers for a value by moving the specified value enabler behind a reference value enabler.voidorderValueEnablers(Id[] valueEnablerIds, Id valueId) Reorders a set of value enablers for a value.voidunassignValueEnablerFromValue(Id valueEnablerId, Id valueId) Removes aValueEnablerfrom aValue.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
-
getConfigurationId
Id getConfigurationId()Gets theConfigurationIdassociated with this session.- Returns:
- the
Configuration Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getConfiguration
Gets theConfigurationassociated with this session.- Returns:
- the configuration
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignValueEnablers
boolean canAssignValueEnablers()Tests if this user can alter value enabler/value 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.
-
assignValueEnablerToValue
void assignValueEnablerToValue(Id valueEnablerId, Id valueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingValueEnablerto aValue.- Parameters:
valueEnablerId- theIdof theValueEnablervalueId- theIdof theValue- Throws:
AlreadyExistsException-valueEnablerIdis already applied tovalueIdNotFoundException-valueEnablerIdorvalueIdnot foundNullArgumentException-valueEnablerIdorvalueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignValueEnablerFromValue
void unassignValueEnablerFromValue(Id valueEnablerId, Id valueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aValueEnablerfrom aValue.- Parameters:
valueEnablerId- theIdof theValueEnablervalueId- theIdof theValue- Throws:
NotFoundException-valueEnablerIdorvalueIdnot found orvalueEnablerIdis not applied tovalueIdNullArgumentException-valueEnablerIdorvalueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceValueEnablers
boolean canSequenceValueEnablers()Tests if this user can orderValueEnablers. 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:
falseifValueEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveValueEnablerAhead
void moveValueEnablerAhead(Id valueEnablerId, Id valueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders value enablers for a value by moving the specified value enabler in front of a reference value enabler.- Parameters:
valueEnablerId- theIdof aValueEnablervalueId- theIdof aValuereferenceId- the reference value enablerId- Throws:
NotFoundException-valueEnabelrId, valueId, orreferenceIdnot found or,valueEnablerId, orreferenceIdnot related tovalueIdNullArgumentException-valueEnablerId, valueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveValueEnablerBehind
void moveValueEnablerBehind(Id valueEnablerId, Id valueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders value enablers for a value by moving the specified value enabler behind a reference value enabler.- Parameters:
valueEnablerId- theIdof aValueEnablervalueId- theIdof aValuereferenceId- the reference value enablerId- Throws:
NotFoundException-valueEnabelrId, valueId, orreferenceIdnot found or,valueEnablerId, orreferenceIdnot related tovalueIdNullArgumentException-valueEnablerId, valueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderValueEnablers
void orderValueEnablers(Id[] valueEnablerIds, Id valueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of value enablers for a value.- Parameters:
valueEnablerIds- theIdsfor a set ofValueEnablersvalueId- theIdof aValue- Throws:
NotFoundException-valueIdnot found or, avalueEnablerIdnot related tovalueIdNullArgumentException-valueEnablerIdsorvalueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-