Class AbstractValueTransformationExpressionEvaluator<V extends PrismValue,D extends ItemDefinition<?>,E extends TransformExpressionEvaluatorType>
java.lang.Object
com.evolveum.midpoint.repo.common.expression.evaluator.AbstractExpressionEvaluator<V,D,E>
com.evolveum.midpoint.model.common.expression.evaluator.transformation.AbstractValueTransformationExpressionEvaluator<V,D,E>
- Type Parameters:
V- Type of output PrismValues.D- Definition of output values.E- Type of the configuration (evaluator) bean.
- All Implemented Interfaces:
ExpressionEvaluator<V>
- Direct Known Subclasses:
AbstractSearchExpressionEvaluator,ScriptExpressionEvaluator
public abstract class AbstractValueTransformationExpressionEvaluator<V extends PrismValue,D extends ItemDefinition<?>,E extends TransformExpressionEvaluatorType>
extends AbstractExpressionEvaluator<V,D,E>
Evaluates transformational expression: one that transforms input values to output values.
Actually, the hard work is delegated to RelativisticEvaluation and AbsoluteEvaluation classes.
- Author:
- Radovan Semancik
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LocalizationServiceprotected final SecurityContextManagerMay be `null` in some low-level tests whereModelCommonBeansare initialized manually.Fields inherited from class com.evolveum.midpoint.repo.common.expression.evaluator.AbstractExpressionEvaluator
expressionEvaluatorBean, outputDefinition, prismContext, protector -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractValueTransformationExpressionEvaluator(QName elementName, E expressionEvaluatorType, D outputDefinition, Protector protector, LocalizationService localizationService) -
Method Summary
Modifier and TypeMethodDescriptionevaluate(ExpressionEvaluationContext context, OperationResult parentResult) Executes the evaluation in a given context.protected booleanprotected booleantransformSingleValue(@NotNull ValueTransformationContext valueTransformationContext, @NotNull OperationResult result) Transforms single value or single values tuple.Methods inherited from class com.evolveum.midpoint.repo.common.expression.evaluator.AbstractExpressionEvaluator
addInternalOrigin, applyValueMetadata, checkEvaluatorProfile, findInSourcesAndVariables, finishOutputTriple, getElementName, getOutputDefinition, getPrismContext, getProtectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.repo.common.expression.ExpressionEvaluator
doesVetoTargetValueRemoval, shortDebugDump
-
Field Details
-
securityContextManager
May be `null` in some low-level tests whereModelCommonBeansare initialized manually. -
localizationService
-
-
Constructor Details
-
AbstractValueTransformationExpressionEvaluator
protected AbstractValueTransformationExpressionEvaluator(QName elementName, E expressionEvaluatorType, D outputDefinition, Protector protector, LocalizationService localizationService)
-
-
Method Details
-
evaluate
public PrismValueDeltaSetTriple<V> evaluate(ExpressionEvaluationContext context, OperationResult parentResult) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException Description copied from interface:ExpressionEvaluatorExecutes the evaluation in a given context. The context provides necessary data, evaluator provides definition of processing that should be carried out.- Returns:
- Result of the evaluation in the form of delta set triple (i.e. added, deleted, unchanged values).
- Throws:
SchemaExceptionExpressionEvaluationExceptionObjectNotFoundExceptionCommunicationExceptionConfigurationExceptionSecurityViolationException
-
isIncludeNullInputs
protected boolean isIncludeNullInputs() -
isRelative
protected boolean isRelative() -
transformSingleValue
@NotNull protected abstract @NotNull List<V> transformSingleValue(@NotNull @NotNull ValueTransformationContext valueTransformationContext, @NotNull @NotNull OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException Transforms single value or single values tuple.
-