Class ScriptExpression
- java.lang.Object
-
- com.evolveum.midpoint.model.common.expression.script.ScriptExpression
-
public class ScriptExpression extends Object
The expressions should be created by ExpressionFactory. They expect correct setting of expression evaluator and proper conversion form the XML ExpressionType. Factory does this.- Author:
- Radovan Semancik
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V extends PrismValue>
@NotNull List<V>evaluate(ScriptExpressionEvaluationContext context)
Function<Object,Object>
getAdditionalConvertor()
ExpressionProfile
getExpressionProfile()
Collection<FunctionLibrary>
getFunctions()
ObjectResolver
getObjectResolver()
ItemDefinition<?>
getOutputDefinition()
PrismContext
getPrismContext()
ScriptExpressionProfile
getScriptExpressionProfile()
void
setAdditionalConvertor(Function<Object,Object> additionalConvertor)
void
setExpressionProfile(ExpressionProfile expressionProfile)
void
setFunctions(Collection<FunctionLibrary> functions)
void
setObjectResolver(ObjectResolver objectResolver)
void
setOutputDefinition(ItemDefinition<?> outputDefinition)
void
setPrismContext(PrismContext prismContext)
void
setScriptExpressionProfile(ScriptExpressionProfile scriptExpressionProfile)
String
toString()
-
-
-
Method Detail
-
getOutputDefinition
public ItemDefinition<?> getOutputDefinition()
-
setOutputDefinition
public void setOutputDefinition(ItemDefinition<?> outputDefinition)
-
getObjectResolver
public ObjectResolver getObjectResolver()
-
setObjectResolver
public void setObjectResolver(ObjectResolver objectResolver)
-
getFunctions
public Collection<FunctionLibrary> getFunctions()
-
setFunctions
public void setFunctions(Collection<FunctionLibrary> functions)
-
getExpressionProfile
public ExpressionProfile getExpressionProfile()
-
setExpressionProfile
public void setExpressionProfile(ExpressionProfile expressionProfile)
-
getScriptExpressionProfile
public ScriptExpressionProfile getScriptExpressionProfile()
-
setScriptExpressionProfile
public void setScriptExpressionProfile(ScriptExpressionProfile scriptExpressionProfile)
-
setAdditionalConvertor
public void setAdditionalConvertor(Function<Object,Object> additionalConvertor)
-
getPrismContext
public PrismContext getPrismContext()
-
setPrismContext
public void setPrismContext(PrismContext prismContext)
-
evaluate
@NotNull public <V extends PrismValue> @NotNull List<V> evaluate(ScriptExpressionEvaluationContext context) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException
-
-