Class MappingEvaluator
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.mappings.MappingEvaluator
-
@Component public class MappingEvaluator extends Object
EvaluatesMapping
objects. Currently, it is largely a _wrapper_ aroundAbstractMappingImpl.evaluate(Task, OperationResult)
method. Responsibilities besides calling that method: 1. Checking if mapping is enabled. 2. Creating and pushingExpressionEnvironment
toModelExpressionThreadLocalHolder
(and popping it afterwards). 3. Informing the watchers: - recording mapping evaluation inStatisticsCollector
, - invokingClockworkInspector
. This class _no longer_ parses mappings i.e. no longer translatesAbstractMappingType
objects intoMapping
objects. SeeProjectionMappingSetEvaluator
for this.- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description MappingEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V extends PrismValue,D extends ItemDefinition<?>,F extends ObjectType>
voidevaluateMapping(@NotNull MappingImpl<V,D> mapping, @Nullable LensContext<F> lensContext, @NotNull Task task, @NotNull OperationResult result)
<V extends PrismValue,D extends ItemDefinition<?>,F extends ObjectType>
voidevaluateMapping(@NotNull MappingImpl<V,D> mapping, @Nullable LensContext<F> lensContext, @Nullable LensProjectionContext projContext, @NotNull Task task, @NotNull OperationResult result)
Evaluates parsed mapping in given lens and projection context (if available - they may be null).PrismContext
getPrismContext()
-
-
-
Method Detail
-
getPrismContext
public PrismContext getPrismContext()
-
evaluateMapping
public <V extends PrismValue,D extends ItemDefinition<?>,F extends ObjectType> void evaluateMapping(@NotNull @NotNull MappingImpl<V,D> mapping, @Nullable @Nullable LensContext<F> lensContext, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException
-
evaluateMapping
public <V extends PrismValue,D extends ItemDefinition<?>,F extends ObjectType> void evaluateMapping(@NotNull @NotNull MappingImpl<V,D> mapping, @Nullable @Nullable LensContext<F> lensContext, @Nullable @Nullable LensProjectionContext projContext, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException
Evaluates parsed mapping in given lens and projection context (if available - they may be null).
-
-