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.
-
Field Summary
Modifier and TypeFieldDescriptionClass corresponding totargetTypeQName
. -
Constructor Summary
ModifierConstructorDescriptionprotected
Evaluation
(VariablesMap variables, PlusMinusZero valueDestination, boolean useNew, ExpressionEvaluationContext context, String contextDescription, Task task, OperationResult result) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectQuery
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.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, ExpressionEvaluationContext context) Provides additional filtering e.g.protected boolean
-
Field Details
-
targetTypeClass
Class corresponding totargetTypeQName
.
-
-
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 -
createRawQuery
protected ObjectQuery createRawQuery(ExpressionEvaluationContext params) throws ConfigurationException, SchemaException, ExpressionEvaluationException -
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
protected boolean isAcceptable(@NotNull @NotNull PrismObject<O> object, ExpressionEvaluationContext context) throws ExpressionEvaluationException Provides additional filtering e.g. rejecting dead shadows as association targets.- Throws:
ExpressionEvaluationException
-
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()
-