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
ConstructorsConstructorDescriptionVelocityScriptEvaluator(PrismContext prismContext, Protector protector, LocalizationService localizationService) -
Method Summary
Modifier and TypeMethodDescription@NotNull ObjectevaluateInternal(@NotNull String codeString, @NotNull ScriptExpressionEvaluationContext context) Executes the evaluation.Returns human readable name of the language that this evaluator supports@NotNull StringReturns (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, needsServiceVariables, prepareFunctionLibraryMap, prepareScriptVariablesMap, prepareScriptVariablesTypedValueMap, prepareUnifiedScriptVariablesValueMap, supportsDeprecatedVariablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException Description copied from class:AbstractScriptEvaluatorExecutes the evaluation. Responsible for incrementing respectiveInternalCounters. -
getLanguageName
Description copied from interface:ScriptEvaluatorReturns human readable name of the language that this evaluator supports -
getLanguageUrl
Description copied from interface:ScriptEvaluatorReturns (canonical) URL of the language that this evaluator can handle
-