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>
protected abstract class AbstractSearchExpressionEvaluator.Evaluation extends Object
The actual evaluation process. It's a separate class to avoid moving all the parameters along.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Evaluation(VariablesMap variables, PlusMinusZero valueDestination, boolean useNew, ExpressionEvaluationContext context, String contextDescription, Task task, OperationResult result)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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.protected @NotNull List<V>
execute()
protected void
extendOptions(Collection<SelectorOptions<GetOperationOptions>> options, boolean searchOnResource)
protected ObjectQuery
extendQuery(ObjectQuery query, ExpressionEvaluationContext params)
protected com.evolveum.midpoint.model.common.expression.evaluator.AbstractSearchExpressionEvaluator.CacheInfo
getCacheInfo()
protected QName
getDefaultTargetType()
protected boolean
isAcceptable(@NotNull PrismObject<O> object)
Provides additional filtering e.g.protected boolean
isCreateOnDemandSafe()
-
-
-
Constructor Detail
-
Evaluation
protected Evaluation(VariablesMap variables, PlusMinusZero valueDestination, boolean useNew, ExpressionEvaluationContext context, String contextDescription, Task task, OperationResult result) throws SchemaException
- Throws:
SchemaException
-
-
Method Detail
-
getDefaultTargetType
protected QName 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 com.evolveum.midpoint.model.common.expression.evaluator.AbstractSearchExpressionEvaluator.CacheInfo getCacheInfo()
-
isAcceptable
protected boolean isAcceptable(@NotNull @NotNull PrismObject<O> object)
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 SchemaException
Converts the object found into a value to be returned (from the expression) - i.e. assignment, association, etc.- Throws:
SchemaException
-
isCreateOnDemandSafe
protected boolean isCreateOnDemandSafe()
-
-