Class BaseActionExecutor
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.scripting.actions.BaseActionExecutor
-
- All Implemented Interfaces:
ActionExecutor
- Direct Known Subclasses:
AddExecutor
,ApplyDefinitionExecutor
,AssignmentOperationsExecutor
,DeleteExecutor
,DiscoverConnectorsExecutor
,EnableDisableExecutor
,GenerateValueExecutor
,LogExecutor
,ModifyExecutor
,NotifyExecutor
,PurgeSchemaExecutor
,RecomputeExecutor
,ReencryptExecutor
,ResolveExecutor
,ResumeExecutor
,ScriptExecutor
,TestResourceExecutor
,ValidateExecutor
public abstract class BaseActionExecutor extends Object implements ActionExecutor
- Author:
- mederly
-
-
Field Summary
Fields Modifier and Type Field Description protected RepositoryService
cacheRepositoryService
protected ExpressionHelper
expressionHelper
protected ModelService
modelService
protected OperationsHelper
operationsHelper
protected PrismContext
prismContext
protected ProvisioningService
provisioningService
protected ScriptingExpressionEvaluator
scriptingExpressionEvaluator
protected SecurityContextManager
securityContextManager
protected SecurityEnforcer
securityEnforcer
protected TaskService
taskService
-
Constructor Summary
Constructors Constructor Description BaseActionExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkRootAuthorization(ExecutionContext context, OperationResult globalResult, String actionName)
protected String
drySuffix(boolean dry)
protected String
exceptionSuffix(Throwable t)
protected ModelExecuteOptions
getOptions(ActionExpressionType expression, PipelineData input, ExecutionContext context, OperationResult result)
protected boolean
getParamDryRun(ActionExpressionType expression, PipelineData input, ExecutionContext context, OperationResult result)
protected String
optionsSuffix(ModelExecuteOptions options, boolean dry)
protected Throwable
processActionException(Throwable e, String actionName, PrismValue value, ExecutionContext context)
-
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
-
-
-
-
Field Detail
-
scriptingExpressionEvaluator
@Autowired protected ScriptingExpressionEvaluator scriptingExpressionEvaluator
-
prismContext
@Autowired protected PrismContext prismContext
-
operationsHelper
@Autowired protected OperationsHelper operationsHelper
-
expressionHelper
@Autowired protected ExpressionHelper expressionHelper
-
provisioningService
@Autowired protected ProvisioningService provisioningService
-
modelService
@Autowired protected ModelService modelService
-
securityEnforcer
@Autowired protected SecurityEnforcer securityEnforcer
-
securityContextManager
@Autowired protected SecurityContextManager securityContextManager
-
taskService
@Autowired protected TaskService taskService
-
cacheRepositoryService
@Autowired @Qualifier("cacheRepositoryService") protected RepositoryService cacheRepositoryService
-
-
Method Detail
-
getOptions
protected ModelExecuteOptions getOptions(ActionExpressionType expression, PipelineData input, ExecutionContext context, OperationResult result) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
getParamDryRun
protected boolean getParamDryRun(ActionExpressionType expression, PipelineData input, ExecutionContext context, OperationResult result) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
drySuffix
protected String drySuffix(boolean dry)
-
optionsSuffix
protected String optionsSuffix(ModelExecuteOptions options, boolean dry)
-
processActionException
protected Throwable processActionException(Throwable e, String actionName, PrismValue value, ExecutionContext context) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
checkRootAuthorization
protected void checkRootAuthorization(ExecutionContext context, OperationResult globalResult, String actionName) throws ScriptExecutionException
- Throws:
ScriptExecutionException
-
-