Class AbstractSearchExpressionEvaluator<V extends PrismValue,D extends ItemDefinition<?>,E extends SearchObjectExpressionEvaluatorType>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.expression.evaluator.AbstractExpressionEvaluator<V,D,E>
-
- com.evolveum.midpoint.model.common.expression.evaluator.transformation.AbstractValueTransformationExpressionEvaluator<V,D,E>
-
- com.evolveum.midpoint.model.common.expression.evaluator.AbstractSearchExpressionEvaluator<V,D,E>
-
- All Implemented Interfaces:
ExpressionEvaluator<V>
- Direct Known Subclasses:
AssignmentTargetSearchExpressionEvaluator,AssociationTargetSearchExpressionEvaluator,ReferenceSearchExpressionEvaluator
public abstract class AbstractSearchExpressionEvaluator<V extends PrismValue,D extends ItemDefinition<?>,E extends SearchObjectExpressionEvaluatorType> extends AbstractValueTransformationExpressionEvaluator<V,D,E>
- Author:
- Radovan Semancik
-
-
Field Summary
Fields Modifier and Type Field Description protected CacheConfigurationManagercacheConfigurationManager-
Fields inherited from class com.evolveum.midpoint.model.common.expression.evaluator.transformation.AbstractValueTransformationExpressionEvaluator
localizationService, securityContextManager
-
Fields inherited from class com.evolveum.midpoint.repo.common.expression.evaluator.AbstractExpressionEvaluator
expressionEvaluatorBean, outputDefinition, prismContext, protector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract VcreatePrismValue(String oid, QName targetTypeQName, List<ItemDelta<V,D>> additionalAttributeDeltas, ExpressionEvaluationContext params)protected voidextendOptions(Collection<SelectorOptions<GetOperationOptions>> options, boolean searchOnResource)protected ObjectQueryextendQuery(ObjectQuery query, ExpressionEvaluationContext params)protected AbstractSearchExpressionEvaluatorCachegetCache()protected Class<?>getCacheClass()protected CacheTypegetCacheType()protected QNamegetDefaultTargetType()protected ModelServicegetModelService()protected ObjectResolvergetObjectResolver()protected <O extends ObjectType>
booleanisAcceptable(@NotNull PrismObject<O> object)Provides additional filtering e.g.protected booleanisIncludeNullInputs()StringshortDebugDump()Short characterization of the evaluator.protected @NotNull List<V>transformSingleValue(VariablesMap variables, PlusMinusZero valueDestination, boolean useNew, ExpressionEvaluationContext context, String contextDescription, Task task, OperationResult result)Transforms single value tuple.-
Methods inherited from class com.evolveum.midpoint.model.common.expression.evaluator.transformation.AbstractValueTransformationExpressionEvaluator
evaluate, isRelative
-
Methods inherited from class com.evolveum.midpoint.repo.common.expression.evaluator.AbstractExpressionEvaluator
addInternalOrigin, applyValueMetadata, checkEvaluatorProfile, findInSourcesAndVariables, finishOutputTriple, getElementName, getOutputDefinition, getPrismContext, getProtector
-
-
-
-
Field Detail
-
cacheConfigurationManager
protected CacheConfigurationManager cacheConfigurationManager
-
-
Method Detail
-
getObjectResolver
protected ObjectResolver getObjectResolver()
-
getModelService
protected ModelService getModelService()
-
transformSingleValue
@NotNull protected @NotNull List<V> transformSingleValue(VariablesMap variables, PlusMinusZero valueDestination, boolean useNew, ExpressionEvaluationContext context, String contextDescription, Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException
Description copied from class:AbstractValueTransformationExpressionEvaluatorTransforms single value tuple.- Specified by:
transformSingleValuein classAbstractValueTransformationExpressionEvaluator<V extends PrismValue,D extends ItemDefinition<?>,E extends SearchObjectExpressionEvaluatorType>- Parameters:
variables- Variables to be applied. Must not be relativistic! All deltas must be sorted out by now.valueDestination- Where we are going to put output value(s). Actually it's only supplementary information for the transformer as the actual placement of output values is done in the caller.useNew- Are we using "new" state of sources/input variables? Again, this is only a supplementary information, because the variables should be already non-relativistic. Some scripts need to know the value of "useNew".context- Caller-specified context of the whole expression evaluation.- Throws:
ExpressionEvaluationExceptionObjectNotFoundExceptionSchemaExceptionCommunicationExceptionConfigurationExceptionSecurityViolationException
-
extendQuery
protected ObjectQuery extendQuery(ObjectQuery query, ExpressionEvaluationContext params) throws SchemaException, ExpressionEvaluationException
-
getDefaultTargetType
protected QName getDefaultTargetType()
-
getCache
protected AbstractSearchExpressionEvaluatorCache getCache()
-
getCacheClass
protected Class<?> getCacheClass()
-
getCacheType
protected CacheType getCacheType()
-
isAcceptable
protected <O extends ObjectType> 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)
-
createPrismValue
protected abstract V createPrismValue(String oid, QName targetTypeQName, List<ItemDelta<V,D>> additionalAttributeDeltas, ExpressionEvaluationContext params)
-
isIncludeNullInputs
protected boolean isIncludeNullInputs()
- Overrides:
isIncludeNullInputsin classAbstractValueTransformationExpressionEvaluator<V extends PrismValue,D extends ItemDefinition<?>,E extends SearchObjectExpressionEvaluatorType>
-
shortDebugDump
public String shortDebugDump()
Description copied from interface:ExpressionEvaluatorShort characterization of the evaluator. One line, often only a single word.
-
-