Class MappingEvaluator
java.lang.Object
com.evolveum.midpoint.model.impl.lens.projector.mappings.MappingEvaluator
Evaluates
Mapping
objects.
Currently, it is largely a _wrapper_ around AbstractMappingImpl.evaluate(Task, OperationResult)
method.
Responsibilities besides calling that method:
1. Checking if mapping is enabled.
2. Creating and pushing ModelExpressionEnvironment
to ExpressionEnvironmentThreadLocalHolder
(and popping it afterwards).
3. Informing the watchers:
- recording mapping evaluation in StatisticsCollector
,
- invoking ClockworkInspector
.
This class _no longer_ parses mappings i.e. no longer translates AbstractMappingType
objects into
Mapping
objects. See ProjectionMappingSetEvaluator
for this.- Author:
- Radovan Semancik
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
MappingEvaluator.EvaluationContext<V extends PrismValue,
D extends ItemDefinition<?>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<V extends PrismValue,
D extends ItemDefinition<?>, F extends ObjectType>
voidevaluateMapping
(@NotNull MappingImpl<V, D> mapping, @NotNull MappingEvaluator.EvaluationContext<V, D> context, @NotNull Task task, @NotNull OperationResult result) Evaluates parsed mapping in given lens and projection context (if available - they may be null).
-
Constructor Details
-
MappingEvaluator
public MappingEvaluator()
-
-
Method Details
-
evaluateMapping
public <V extends PrismValue,D extends ItemDefinition<?>, void evaluateMappingF extends ObjectType> (@NotNull @NotNull MappingImpl<V, D> mapping, @NotNull @NotNull MappingEvaluator.EvaluationContext<V, throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationExceptionD> context, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Evaluates parsed mapping in given lens and projection context (if available - they may be null).
-