Class ExpressionHelper
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.scripting.helpers.ExpressionHelper
-
@Component public class ExpressionHelper extends Object
- Author:
- mederly
-
-
Constructor Summary
Constructors Constructor Description ExpressionHelper()
-
Method Summary
-
-
-
Method Detail
-
getArgument
public ActionParameterValueType getArgument(List<ActionParameterValueType> arguments, String parameterName, boolean required, boolean requiredNonNull, String context) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
getArgumentAsString
public String getArgumentAsString(List<ActionParameterValueType> arguments, String argumentName, PipelineData input, ExecutionContext context, String defaultValue, String contextName, OperationResult parentResult) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
getArgumentAsBoolean
public Boolean getArgumentAsBoolean(List<ActionParameterValueType> arguments, String argumentName, PipelineData input, ExecutionContext context, Boolean defaultValue, String contextName, OperationResult parentResult) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
evaluateParameter
public PipelineData evaluateParameter(ActionParameterValueType parameter, @Nullable Class<?> expectedClass, PipelineData input, ExecutionContext context, OperationResult result) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
getSingleArgumentValue
public <T> T getSingleArgumentValue(List<ActionParameterValueType> arguments, String parameterName, boolean required, boolean requiredNonNull, String context, PipelineData input, ExecutionContext executionContext, Class<T> clazz, OperationResult result) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
getArgumentValues
@NotNull public <T> Collection<T> getArgumentValues(List<ActionParameterValueType> arguments, String parameterName, boolean required, boolean requiredNonNull, String context, PipelineData input, ExecutionContext executionContext, Class<T> clazz, OperationResult result) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
-