Class AbstractExpressionEvaluator<V extends PrismValue,D extends ItemDefinition,E>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.expression.evaluator.AbstractExpressionEvaluator<V,D,E>
-
- Type Parameters:
E
- evaluator prism type
- All Implemented Interfaces:
ExpressionEvaluator<V,D>
- Direct Known Subclasses:
AbstractValueTransformationExpressionEvaluator
,AsIsExpressionEvaluator
,AssociationFromLinkExpressionEvaluator
,ConstExpressionEvaluator
,FunctionExpressionEvaluator
,GenerateExpressionEvaluator
,SequentialValueExpressionEvaluator
public abstract class AbstractExpressionEvaluator<V extends PrismValue,D extends ItemDefinition,E> extends Object implements ExpressionEvaluator<V,D>
- Author:
- Radovan Semancik
-
-
Field Summary
Fields Modifier and Type Field Description protected D
outputDefinition
protected PrismContext
prismContext
protected Protector
protector
-
Constructor Summary
Constructors Constructor Description AbstractExpressionEvaluator(QName elementName, E expressionEvaluatorType, D outputDefinition, Protector protector, PrismContext prismContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkEvaluatorProfile(ExpressionEvaluationContext context)
Check expression profile.QName
getElementName()
protected E
getExpressionEvaluatorType()
protected D
getOutputDefinition()
protected PrismContext
getPrismContext()
protected Protector
getProtector()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.repo.common.expression.ExpressionEvaluator
evaluate, shortDebugDump
-
-
-
-
Field Detail
-
prismContext
protected final PrismContext prismContext
-
outputDefinition
protected final D extends ItemDefinition outputDefinition
-
protector
protected final Protector protector
-
-
Constructor Detail
-
AbstractExpressionEvaluator
public AbstractExpressionEvaluator(QName elementName, E expressionEvaluatorType, D outputDefinition, Protector protector, PrismContext prismContext)
-
-
Method Detail
-
getElementName
public QName getElementName()
- Specified by:
getElementName
in interfaceExpressionEvaluator<V extends PrismValue,D extends ItemDefinition>
-
getExpressionEvaluatorType
protected E getExpressionEvaluatorType()
-
getPrismContext
protected PrismContext getPrismContext()
-
getOutputDefinition
protected D getOutputDefinition()
-
getProtector
protected Protector getProtector()
-
checkEvaluatorProfile
protected void checkEvaluatorProfile(ExpressionEvaluationContext context) throws SecurityViolationException
Check expression profile. Throws security exception if the execution is not allowed by the profile. This implementation works only for simple evaluators that do not have any profile settings. Complex evaluators should override this method.- Throws:
SecurityViolationException
- expression execution is not allowed by the profile.
-
-