Class AbstractSearchExpressionEvaluator.Evaluation
java.lang.Object
com.evolveum.midpoint.model.common.expression.evaluator.AbstractSearchExpressionEvaluator.Evaluation
- Enclosing class:
- AbstractSearchExpressionEvaluator<V extends PrismValue,
O extends ObjectType, D extends ItemDefinition<?>, E extends SearchObjectExpressionEvaluatorType>
The actual evaluation process. It's a separate class to avoid moving all the parameters along.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Evaluation
(@NotNull ValueTransformationContext vtCtx, @NotNull OperationResult result) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull List<ObjectQuery>
protected ObjectQuery
createRawQuery
(SearchFilterType filter) protected abstract V
createResultValue
(String oid, @NotNull QName typeName, PrismObject<O> object, List<ItemDelta<V, D>> newValueDeltas) Converts the object found into a value to be returned (from the expression) - i.e.execute()
protected void
extendOptions
(GetOperationOptionsBuilder builder, boolean searchOnResource) protected ObjectQuery
extendQuery
(ObjectQuery query) protected QName
protected boolean
isAcceptable
(@NotNull PrismObject<O> object) Provides additional filtering e.g.
-
Constructor Details
-
Evaluation
protected Evaluation(@NotNull @NotNull ValueTransformationContext vtCtx, @NotNull @NotNull OperationResult result) throws SchemaException - Throws:
SchemaException
-
-
Method Details
-
getDefaultTargetType
-
execute
@NotNull protected @NotNull List<V> execute() throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException -
createQueries
@NotNull protected @NotNull List<ObjectQuery> createQueries() throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException -
createRawQuery
protected ObjectQuery createRawQuery(SearchFilterType filter) throws SchemaException, ExpressionEvaluationException -
extendQuery
- Throws:
ExpressionEvaluationException
-
isAcceptable
Provides additional filtering e.g. rejecting dead shadows as association targets. -
extendOptions
-
createResultValue
@NotNull protected abstract V createResultValue(String oid, @NotNull @NotNull QName typeName, PrismObject<O> object, List<ItemDelta<V, D>> newValueDeltas) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundExceptionConverts the object found into a value to be returned (from the expression) - i.e. assignment, association, etc. If `object` is present, then `oid` = `object.oid` and `typeName` = object type name.
-