Class AbstractScriptEvaluator
- java.lang.Object
-
- com.evolveum.midpoint.model.common.expression.script.AbstractScriptEvaluator
-
- All Implemented Interfaces:
ScriptEvaluator
- Direct Known Subclasses:
AbstractCachingScriptEvaluator
,VelocityScriptEvaluator
public abstract class AbstractScriptEvaluator extends Object implements ScriptEvaluator
Expression evaluator that is using javax.script (JSR-223) engine.
-
-
Constructor Summary
Constructors Constructor Description AbstractScriptEvaluator(PrismContext prismContext, Protector protector, LocalizationService localizationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkRestrictions(ScriptExpressionEvaluationContext context)
LocalizationService
getLocalizationService()
PrismContext
getPrismContext()
Protector
getProtector()
protected Map<String,Object>
prepareScriptVariablesValueMap(ScriptExpressionEvaluationContext context)
Returns simple variable map: name -> value.-
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.model.common.expression.script.ScriptEvaluator
evaluate, getLanguageName, getLanguageUrl
-
-
-
-
Constructor Detail
-
AbstractScriptEvaluator
public AbstractScriptEvaluator(PrismContext prismContext, Protector protector, LocalizationService localizationService)
-
-
Method Detail
-
getPrismContext
public PrismContext getPrismContext()
-
getProtector
public Protector getProtector()
-
getLocalizationService
public LocalizationService getLocalizationService()
-
checkRestrictions
protected void checkRestrictions(ScriptExpressionEvaluationContext context) throws SecurityViolationException
- Throws:
SecurityViolationException
-
prepareScriptVariablesValueMap
protected Map<String,Object> prepareScriptVariablesValueMap(ScriptExpressionEvaluationContext context) throws ExpressionSyntaxException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
Returns simple variable map: name -> value.
-
-