Class BulkActionsExecutor
java.lang.Object
com.evolveum.midpoint.model.impl.scripting.BulkActionsExecutor
Main entry point for evaluating scripting expressions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authorizeBulkActionExecution
(@Nullable BulkAction action, @Nullable AuthorizationPhaseType phase, @NotNull Task task, @NotNull OperationResult result) evaluateConstantExpression
(@NotNull RawType constant, @Nullable Class<?> expectedClass, ExecutionContext context, String desc) evaluateConstantStringExpression
(RawType constant, ExecutionContext context) execute
(@NotNull ExecuteScriptConfigItem executeScript, @NotNull VariablesMap initialVariables, @NotNull BulkActionExecutionOptions options, @NotNull Task task, @NotNull OperationResult result) Executes given bulk action.execute
(ScriptingExpressionType value, PipelineData input, ExecutionContext context, OperationResult parentResult) execute
(jakarta.xml.bind.JAXBElement<? extends ScriptingExpressionType> expression, PipelineData input, ExecutionContext context, OperationResult parentResult)
-
Constructor Details
-
BulkActionsExecutor
public BulkActionsExecutor()
-
-
Method Details
-
execute
public ExecutionContext execute(@NotNull @NotNull ExecuteScriptConfigItem executeScript, @NotNull @NotNull VariablesMap initialVariables, @NotNull @NotNull BulkActionExecutionOptions options, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, PolicyViolationException, ObjectAlreadyExistsException Executes given bulk action. This is the main entry point. -
execute
public PipelineData execute(jakarta.xml.bind.JAXBElement<? extends ScriptingExpressionType> expression, PipelineData input, ExecutionContext context, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException, PolicyViolationException, ObjectAlreadyExistsException -
execute
public PipelineData execute(ScriptingExpressionType value, PipelineData input, ExecutionContext context, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, ObjectAlreadyExistsException, CommunicationException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException -
evaluateConstantExpression
public PipelineData evaluateConstantExpression(@NotNull @NotNull RawType constant, @Nullable @Nullable Class<?> expectedClass, ExecutionContext context, String desc) throws SchemaException - Throws:
SchemaException
-
evaluateConstantStringExpression
public PipelineData evaluateConstantStringExpression(RawType constant, ExecutionContext context) throws SchemaException - Throws:
SchemaException
-
authorizeBulkActionExecution
public void authorizeBulkActionExecution(@Nullable @Nullable BulkAction action, @Nullable @Nullable AuthorizationPhaseType phase, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ExpressionEvaluationException, SecurityViolationException, CommunicationException, ConfigurationException, ObjectNotFoundException
-