Class ExpressionHelper
java.lang.Object
com.evolveum.midpoint.model.impl.scripting.helpers.ExpressionHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluateParameter
(ActionParameterValueType parameter, @Nullable Class<?> expectedClass, PipelineData input, ExecutionContext context, OperationResult result) <T> T
getActionArgument
(Class<T> clazz, ActionExpressionType action, ItemName staticName, String dynamicName, PipelineData input, ExecutionContext context, T defaultValue, String contextName, OperationResult parentResult) getArgument
(List<ActionParameterValueType> arguments, String parameterName, boolean required, boolean requiredNonNull, String context) getArgumentAsBoolean
(List<ActionParameterValueType> arguments, String argumentName, PipelineData input, ExecutionContext context, Boolean defaultValue, String contextName, OperationResult result) <T> @NotNull Collection<T>
getArgumentValues
(List<ActionParameterValueType> arguments, String parameterName, boolean required, boolean requiredNonNull, String context, PipelineData input, ExecutionContext executionContext, Class<T> clazz, OperationResult result) <T> T
getSingleArgumentValue
(List<ActionParameterValueType> arguments, String parameterName, boolean required, boolean requiredNonNull, String context, PipelineData input, ExecutionContext executionContext, Class<T> clazz, OperationResult result)
-
Constructor Details
-
ExpressionHelper
public ExpressionHelper()
-
-
Method Details
-
getArgument
public ActionParameterValueType getArgument(List<ActionParameterValueType> arguments, String parameterName, boolean required, boolean requiredNonNull, String context) throws ConfigurationException - Throws:
ConfigurationException
-
getActionArgument
public <T> T getActionArgument(Class<T> clazz, ActionExpressionType action, ItemName staticName, String dynamicName, PipelineData input, ExecutionContext context, T defaultValue, String contextName, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException, SecurityViolationException, ExpressionEvaluationException, PolicyViolationException, ObjectAlreadyExistsException -
getArgumentAsBoolean
public Boolean getArgumentAsBoolean(List<ActionParameterValueType> arguments, String argumentName, PipelineData input, ExecutionContext context, Boolean defaultValue, String contextName, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException, PolicyViolationException, ObjectAlreadyExistsException -
evaluateParameter
public PipelineData evaluateParameter(ActionParameterValueType parameter, @Nullable @Nullable Class<?> expectedClass, PipelineData input, ExecutionContext context, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException, SecurityViolationException, ExpressionEvaluationException, PolicyViolationException, ObjectAlreadyExistsException -
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 SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException, PolicyViolationException, ObjectAlreadyExistsException -
getArgumentValues
@NotNull public <T> @NotNull Collection<T> getArgumentValues(List<ActionParameterValueType> arguments, String parameterName, boolean required, boolean requiredNonNull, String context, PipelineData input, ExecutionContext executionContext, Class<T> clazz, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException, PolicyViolationException, ObjectAlreadyExistsException
-