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
Expression evaluator that is using Apache Velocity engine.
-
Constructor Summary
ConstructorDescriptionVelocityScriptEvaluator
(PrismContext prismContext, Protector protector, LocalizationService localizationService) -
Method Summary
Modifier and TypeMethodDescription@NotNull Object
evaluateInternal
(@NotNull String codeString, @NotNull ScriptExpressionEvaluationContext context) Executes the evaluation.Returns human readable name of the language that this evaluator supports@NotNull String
Returns (canonical) URL of the language that this evaluator can handleMethods inherited from class com.evolveum.midpoint.model.common.expression.script.AbstractScriptEvaluator
doesSupportRestrictions, evaluate, 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
-
Constructor Details
-
VelocityScriptEvaluator
public VelocityScriptEvaluator(PrismContext prismContext, Protector protector, LocalizationService localizationService)
-
-
Method Details
-
evaluateInternal
@NotNull public @NotNull Object evaluateInternal(@NotNull @NotNull String codeString, @NotNull @NotNull ScriptExpressionEvaluationContext context) throws ExpressionEvaluationException, ObjectNotFoundException, ExpressionSyntaxException, CommunicationException, ConfigurationException, SecurityViolationException Description copied from class:AbstractScriptEvaluator
Executes the evaluation. Responsible for incrementing respectiveInternalCounters
. -
getLanguageName
Description copied from interface:ScriptEvaluator
Returns human readable name of the language that this evaluator supports -
getLanguageUrl
Description copied from interface:ScriptEvaluator
Returns (canonical) URL of the language that this evaluator can handle
-