Class VelocityScriptEvaluator
- java.lang.Object
-
- com.evolveum.midpoint.model.common.expression.script.AbstractScriptEvaluator
-
- com.evolveum.midpoint.model.common.expression.script.velocity.VelocityScriptEvaluator
-
- All Implemented Interfaces:
ScriptEvaluator
public class VelocityScriptEvaluator extends AbstractScriptEvaluator
Expression evaluator that is using Apache Velocity engine.
-
-
Field Summary
Fields Modifier and Type Field Description static String
LANGUAGE_NAME
static String
LANGUAGE_URL
-
Constructor Summary
Constructors Constructor Description VelocityScriptEvaluator(PrismContext prismContext, Protector protector, LocalizationService localizationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,V extends PrismValue>
@NotNull List<V>evaluate(ScriptExpressionEvaluationContext context)
String
getLanguageName()
Returns human readable name of the language that this evaluator supportsString
getLanguageUrl()
Returns URL of the language that this evaluator can handle-
Methods inherited from class com.evolveum.midpoint.model.common.expression.script.AbstractScriptEvaluator
checkRestrictions, getLocalizationService, getPrismContext, getProtector, prepareScriptVariablesValueMap
-
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
isInitialized
-
-
-
-
Field Detail
-
LANGUAGE_NAME
public static final String LANGUAGE_NAME
- See Also:
- Constant Field Values
-
LANGUAGE_URL
public static final String LANGUAGE_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VelocityScriptEvaluator
public VelocityScriptEvaluator(PrismContext prismContext, Protector protector, LocalizationService localizationService)
-
-
Method Detail
-
evaluate
@NotNull public <T,V extends PrismValue> @NotNull List<V> evaluate(ScriptExpressionEvaluationContext context) throws ExpressionEvaluationException, ObjectNotFoundException, ExpressionSyntaxException, CommunicationException, ConfigurationException, SecurityViolationException
-
getLanguageName
public String getLanguageName()
Description copied from interface:ScriptEvaluator
Returns human readable name of the language that this evaluator supports
-
getLanguageUrl
public String getLanguageUrl()
Description copied from interface:ScriptEvaluator
Returns URL of the language that this evaluator can handle
-
-