Class UnassignExecutor
java.lang.Object
com.evolveum.midpoint.model.impl.scripting.actions.BaseActionExecutor
com.evolveum.midpoint.model.impl.scripting.actions.UnassignExecutor
- All Implemented Interfaces:
ActionExecutor
Executor for "unassign" actions.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.evolveum.midpoint.model.impl.scripting.actions.BaseActionExecutor
BaseActionExecutor.ItemProcessor
-
Field Summary
Fields inherited from class com.evolveum.midpoint.model.impl.scripting.actions.BaseActionExecutor
actionExecutorRegistry, bulkActionsExecutor, cacheRepositoryService, expressionFactory, expressionHelper, matchingRuleRegistry, midpointFunctions, modelService, operationsHelper, prismContext, provisioningService, relationRegistry, schemaService, securityContextManager, securityEnforcer, taskService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectDelta<? extends ObjectType>
createDelta
(AssignmentHolderType object, PipelineItem item, UnassignExecutor.UnassignParameters parameters, ExecutionContext context, OperationResult result) execute
(ActionExpressionType action, PipelineData input, ExecutionContext context, OperationResult globalResult) Executes given action command.@NotNull BulkAction
Returns the type of action supported by this executor.protected Class<AssignmentHolderType>
void
init()
Methods inherited from class com.evolveum.midpoint.model.impl.scripting.actions.BaseActionExecutor
checkExecutionAllowed, exceptionSuffix
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.model.impl.scripting.ActionExecutor
execute
-
Constructor Details
-
UnassignExecutor
public UnassignExecutor()
-
-
Method Details
-
init
@PostConstruct public void init() -
getActionType
Description copied from interface:ActionExecutor
Returns the type of action supported by this executor. -
createDelta
protected ObjectDelta<? extends ObjectType> createDelta(AssignmentHolderType object, PipelineItem item, UnassignExecutor.UnassignParameters parameters, ExecutionContext context, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException, SecurityViolationException, ExpressionEvaluationException -
execute
public PipelineData execute(ActionExpressionType action, PipelineData input, ExecutionContext context, OperationResult globalResult) throws SchemaException, ObjectNotFoundException, ObjectAlreadyExistsException, SecurityViolationException, PolicyViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException Description copied from interface:ActionExecutor
Executes given action command.- Parameters:
action
- Command to be executed. Its parameters can be defined statically (using "new" specific subclasses in the schema) or dynamically (using "old fashioned" dynamic name-value parameters) or in a mixed style, where dynamic definitions take precedence.input
- Input data (pipeline) that the action has to be executed on.context
- Overall execution context.globalResult
- Global operation result. This is the parent result that receives subresults related to actions executions. (But individual results are stored also into the pipeline, to indicate success/failure of individual pipeline items processing.)- Throws:
SchemaException
ObjectNotFoundException
ObjectAlreadyExistsException
SecurityViolationException
PolicyViolationException
CommunicationException
ConfigurationException
ExpressionEvaluationException
-
getObjectType
-