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
(VariablesMap variables, PlusMinusZero valueDestination, boolean useNew, ExpressionEvaluationContext context, String contextDescription, Task task, OperationResult result) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract V
createResultValue
(String oid, 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
(Collection<SelectorOptions<GetOperationOptions>> options, boolean searchOnResource) protected ObjectQuery
extendQuery
(ObjectQuery query, ExpressionEvaluationContext params) protected AbstractSearchExpressionEvaluator<V,
O, D, E>.com.evolveum.midpoint.model.common.expression.evaluator.AbstractSearchExpressionEvaluator.CacheInfo protected QName
protected boolean
isAcceptable
(@NotNull PrismObject<O> object) Provides additional filtering e.g.protected boolean
-
Constructor Details
-
Evaluation
protected Evaluation(VariablesMap variables, PlusMinusZero valueDestination, boolean useNew, ExpressionEvaluationContext context, String contextDescription, Task task, OperationResult result) throws SchemaException - Throws:
SchemaException
-
-
Method Details
-
getDefaultTargetType
-
execute
@NotNull protected @NotNull List<V> execute() throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException -
extendQuery
protected ObjectQuery extendQuery(ObjectQuery query, ExpressionEvaluationContext params) throws ExpressionEvaluationException - Throws:
ExpressionEvaluationException
-
getCacheInfo
protected AbstractSearchExpressionEvaluator<V,O, getCacheInfo()D, E>.com.evolveum.midpoint.model.common.expression.evaluator.AbstractSearchExpressionEvaluator.CacheInfo -
isAcceptable
Provides additional filtering e.g. rejecting dead shadows as association targets. -
extendOptions
protected void extendOptions(Collection<SelectorOptions<GetOperationOptions>> options, boolean searchOnResource) -
createResultValue
protected abstract V createResultValue(String oid, PrismObject<O> object, List<ItemDelta<V, D>> newValueDeltas) throws SchemaExceptionConverts the object found into a value to be returned (from the expression) - i.e. assignment, association, etc.- Throws:
SchemaException
-
isCreateOnDemandSafe
protected boolean isCreateOnDemandSafe()
-