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)
ExpressionProfile
getExpressionProfile()
Collection<FunctionLibrary>
getFunctions()
ObjectResolver
getObjectResolver()
ItemDefinition<?>
getOutputDefinition()
PrismContext
getPrismContext()
void
setExpressionProfile(ExpressionProfile expressionProfile)
void
setFunctions(Collection<FunctionLibrary> functions)
void
setObjectResolver(ObjectResolver objectResolver)
void
setOutputDefinition(ItemDefinition<?> outputDefinition)
void
setPrismContext(PrismContext prismContext)
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)
-
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
-
-