Class AuthorizationCommandChecker
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cfg.auth.AuthorizationCommandChecker
-
- All Implemented Interfaces:
CommandChecker
public class AuthorizationCommandChecker extends java.lang.Object implements CommandChecker
CommandChecker
that uses theAuthorizationManager
to perform authorization checks.
-
-
Constructor Summary
Constructors Constructor Description AuthorizationCommandChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkActivateBatch(BatchEntity batch)
Check if it is allowed to activate a batchvoid
checkCreateBatch(Permission permission)
Check if it is allowed to create a batchvoid
checkCreateCaseInstance(CaseDefinition caseDefinition)
Checks if it is allowed to create an instance of the given case definition.void
checkCreateDeployment()
Checks if it is allowed to create a deployment.void
checkCreateMigrationPlan(ProcessDefinition sourceProcessDefinition, ProcessDefinition targetProcessDefinition)
void
checkCreateProcessInstance(ProcessDefinition processDefinition)
Checks if it is allowed to create an instance of the given process definition.void
checkCreateTask()
Check if it is allowed to create a taskvoid
checkCreateTask(TaskEntity entity)
Check if it is allowed to create a taskvoid
checkDeleteBatch(BatchEntity batch)
Check if it is allowed to delete a batchvoid
checkDeleteDeployment(java.lang.String deploymentId)
Checks if it is allowed to delete a deployment of the given deployment id.void
checkDeleteHistoricBatch(HistoricBatchEntity batch)
Check if it is allowed to delete a historic batchvoid
checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
Checks if it is allowed to delete the given historic case instance.void
checkDeleteHistoricDecisionInstance(java.lang.String decisionDefinitionKey)
Checks if it is allowed to delete the historic decision instance of the given decision definition key.void
checkDeleteHistoricDecisionInstance(HistoricDecisionInstance decisionInstance)
Checks if it is allowed to delete the given historic decision instance.void
checkDeleteHistoricProcessInstance(HistoricProcessInstance instance)
Checks if it is allowed to delete the given historic process instance.void
checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task)
Checks if it is allowed to delete the given historic task instance.void
checkDeleteHistoricVariableInstance(HistoricVariableInstanceEntity variable)
Checks if it is allowed to delete the given historic variable instance.void
checkDeleteHistoricVariableInstancesByProcessInstance(HistoricProcessInstanceEntity instance)
Checks if it is allowed to delete the historic variable instances of the given process instance.void
checkDeleteProcessDefinitionById(java.lang.String processDefinitionId)
Checks if it is allowed to delete a process definition, which corresponds to the given id.void
checkDeleteProcessDefinitionByKey(java.lang.String processDefinitionKey)
Checks if it is allowed to delete a process definition, which corresponds to the given key.void
checkDeleteProcessInstance(ExecutionEntity execution)
Check if it is allowed to delete a process instance of the given execution.void
checkDeleteTask(TaskEntity task)
Check if it is allowed to delete a taskvoid
checkDeleteUserOperationLog(UserOperationLogEntry entry)
Check if it is allowed to delete the user operation log of the given user operation log entry.void
checkEvaluateDecision(DecisionDefinition decisionDefinition)
Checks if it is allowed to evaluate the given decision.void
checkMigrateProcessInstance(ExecutionEntity processInstance, ProcessDefinition targetProcessDefinition)
void
checkReadCaseDefinition(CaseDefinition caseDefinition)
Checks if it is allowed to read the given case definition.void
checkReadCaseInstance(CaseExecution caseExecution)
Check if it is allowed to read a case instance of the given case execution.void
checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
Checks if it is allowed to read the given decision definition.void
checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition)
Checks if it is allowed to read the given decision requirements definition.void
checkReadDeployment(java.lang.String deploymentId)
Checks if it is allowed to read a deployment of the given deployment id.void
checkReadHistoricBatch()
Check if it is allowed to read historic batchvoid
checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog)
Checks if it is allowed to read the given historic external task log.void
checkReadHistoricJobLog(HistoricJobLogEventEntity historicJobLog)
Checks if it is allowed to read the given historic job log.void
checkReadHistoryAnyProcessDefinition()
Check if it is allowed to read the history for any process definition.void
checkReadHistoryProcessDefinition(java.lang.String processDefinitionKey)
Check if it is allowed to read the history of the given process definition.void
checkReadJob(JobEntity job)
Checks if it is allowed to read the given job.void
checkReadProcessDefinition(ProcessDefinition processDefinition)
Checks if it is allowed to read the given process definition.void
checkReadProcessInstance(java.lang.String processInstanceId)
void
checkReadProcessInstance(ExecutionEntity execution)
Checks if it is allowed to read a process instance of the given execution.void
checkReadProcessInstanceVariable(ExecutionEntity execution)
Checks if it is allowed to read a process instance's variables of the given execution.void
checkReadTask(TaskEntity task)
Check if it is allowed to read a task.void
checkReadTaskVariable(TaskEntity task)
Check if it is allowed to read a task's variable.void
checkSuspendBatch(BatchEntity batch)
Check if it is allowed to suspend a batchvoid
checkTaskAssign(TaskEntity task)
Check if it is allowed to assign a taskprotected void
checkTaskPermission(TaskEntity task, Permission processDefinitionPermission, Permission taskPermission)
void
checkTaskWork(TaskEntity task)
Check if it is allowed to work on a taskvoid
checkUpdateCaseDefinition(CaseDefinition caseDefinition)
Checks if it is allowed to update the given case definition.void
checkUpdateCaseInstance(CaseExecution caseExecution)
Check if it is allowed to update a case instance of the given case execution.void
checkUpdateDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
void
checkUpdateDecisionDefinitionById(java.lang.String decisionDefinitionId)
Checks if it is allowed to update a decision definition with given id.void
checkUpdateJob(JobEntity job)
Checks if it is allowed to update the given job.void
checkUpdateProcessDefinitionById(java.lang.String processDefinitionId)
Checks if it is allowed to update a process definition of the given process definition id.void
checkUpdateProcessDefinitionByKey(java.lang.String processDefinitionKey)
Checks if it is allowed to update a process definition of the given process definition key.void
checkUpdateProcessDefinitionSuspensionStateById(java.lang.String processDefinitionId)
Checks if it is allowed to update the suspension state of a process definition.void
checkUpdateProcessDefinitionSuspensionStateByKey(java.lang.String processDefinitionKey)
Checks if it is allowed to update the suspension state of a process definition.void
checkUpdateProcessInstance(ExecutionEntity execution)
Checks if it is allowed to update a process instance of the given execution.void
checkUpdateProcessInstanceById(java.lang.String processInstanceId)
Checks if it is allowed to update a process instance of the given process instance id.void
checkUpdateProcessInstanceByProcessDefinitionId(java.lang.String processDefinitionId)
Checks if it is allowed to update a process instance of the given process definition id.void
checkUpdateProcessInstanceByProcessDefinitionKey(java.lang.String processDefinitionKey)
Checks if it is allowed to update a process instance of the given process definition key.void
checkUpdateProcessInstanceSuspensionState(ExecutionEntity execution)
void
checkUpdateProcessInstanceSuspensionStateById(java.lang.String processInstanceId)
Checks if it is allowed to update a process instance's suspension state.void
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId(java.lang.String processDefinitionId)
Checks if it is allowed to update a process instance's suspension state of the given process definition.void
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey(java.lang.String processDefinitionKey)
Checks if it is allowed to update a process instance's suspension state of the given process definition.void
checkUpdateProcessInstanceVariables(ExecutionEntity execution)
Checks if it is allowed to update a process instance's variables of the given execution.void
checkUpdateRetriesJob(JobEntity job)
Checks if it is allowed to update a job retries.void
checkUpdateRetriesProcessInstanceByProcessDefinitionId(java.lang.String processDefinitionId)
Checks if it is allowed to update a process instance's retries of the given process definition.void
checkUpdateTaskVariable(TaskEntity task)
Check if it is allowed to update a task's variablevoid
checkUpdateUserOperationLog(UserOperationLogEntry entry)
Check if it is allowed to update the user operation log of the given user operation log entry.void
checkUserOperationLog(UserOperationLogEntry entry, ProcessDefinitionPermissions processDefinitionPermission, UserOperationLogCategoryPermissions operationLogCategoryPermission)
protected ExecutionEntity
findExecutionById(java.lang.String processInstanceId)
protected DecisionDefinitionEntity
findLatestDecisionDefinitionById(java.lang.String decisionDefinitionId)
protected ProcessDefinitionEntity
findLatestProcessDefinitionById(java.lang.String processDefinitionId)
protected AuthorizationManager
getAuthorizationManager()
-
-
-
Method Detail
-
checkEvaluateDecision
public void checkEvaluateDecision(DecisionDefinition decisionDefinition)
Description copied from interface:CommandChecker
Checks if it is allowed to evaluate the given decision.- Specified by:
checkEvaluateDecision
in interfaceCommandChecker
-
checkCreateProcessInstance
public void checkCreateProcessInstance(ProcessDefinition processDefinition)
Description copied from interface:CommandChecker
Checks if it is allowed to create an instance of the given process definition.- Specified by:
checkCreateProcessInstance
in interfaceCommandChecker
-
checkReadProcessDefinition
public void checkReadProcessDefinition(ProcessDefinition processDefinition)
Description copied from interface:CommandChecker
Checks if it is allowed to read the given process definition.- Specified by:
checkReadProcessDefinition
in interfaceCommandChecker
-
checkCreateCaseInstance
public void checkCreateCaseInstance(CaseDefinition caseDefinition)
Description copied from interface:CommandChecker
Checks if it is allowed to create an instance of the given case definition.- Specified by:
checkCreateCaseInstance
in interfaceCommandChecker
-
checkUpdateProcessDefinitionById
public void checkUpdateProcessDefinitionById(java.lang.String processDefinitionId)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process definition of the given process definition id.- Specified by:
checkUpdateProcessDefinitionById
in interfaceCommandChecker
-
checkUpdateProcessDefinitionSuspensionStateById
public void checkUpdateProcessDefinitionSuspensionStateById(java.lang.String processDefinitionId)
Description copied from interface:CommandChecker
Checks if it is allowed to update the suspension state of a process definition.- Specified by:
checkUpdateProcessDefinitionSuspensionStateById
in interfaceCommandChecker
-
checkUpdateDecisionDefinitionById
public void checkUpdateDecisionDefinitionById(java.lang.String decisionDefinitionId)
Description copied from interface:CommandChecker
Checks if it is allowed to update a decision definition with given id.- Specified by:
checkUpdateDecisionDefinitionById
in interfaceCommandChecker
-
checkUpdateProcessDefinitionByKey
public void checkUpdateProcessDefinitionByKey(java.lang.String processDefinitionKey)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process definition of the given process definition key.- Specified by:
checkUpdateProcessDefinitionByKey
in interfaceCommandChecker
-
checkUpdateProcessDefinitionSuspensionStateByKey
public void checkUpdateProcessDefinitionSuspensionStateByKey(java.lang.String processDefinitionKey)
Description copied from interface:CommandChecker
Checks if it is allowed to update the suspension state of a process definition.- Specified by:
checkUpdateProcessDefinitionSuspensionStateByKey
in interfaceCommandChecker
-
checkDeleteProcessDefinitionById
public void checkDeleteProcessDefinitionById(java.lang.String processDefinitionId)
Description copied from interface:CommandChecker
Checks if it is allowed to delete a process definition, which corresponds to the given id.- Specified by:
checkDeleteProcessDefinitionById
in interfaceCommandChecker
- Parameters:
processDefinitionId
- the id which corresponds to the process definition
-
checkDeleteProcessDefinitionByKey
public void checkDeleteProcessDefinitionByKey(java.lang.String processDefinitionKey)
Description copied from interface:CommandChecker
Checks if it is allowed to delete a process definition, which corresponds to the given key.- Specified by:
checkDeleteProcessDefinitionByKey
in interfaceCommandChecker
- Parameters:
processDefinitionKey
- the key which corresponds to the process definition
-
checkUpdateProcessInstanceByProcessDefinitionId
public void checkUpdateProcessInstanceByProcessDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance of the given process definition id.- Specified by:
checkUpdateProcessInstanceByProcessDefinitionId
in interfaceCommandChecker
-
checkUpdateRetriesProcessInstanceByProcessDefinitionId
public void checkUpdateRetriesProcessInstanceByProcessDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance's retries of the given process definition.- Specified by:
checkUpdateRetriesProcessInstanceByProcessDefinitionId
in interfaceCommandChecker
-
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId
public void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance's suspension state of the given process definition.- Specified by:
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId
in interfaceCommandChecker
-
checkUpdateProcessInstanceByProcessDefinitionKey
public void checkUpdateProcessInstanceByProcessDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance of the given process definition key.- Specified by:
checkUpdateProcessInstanceByProcessDefinitionKey
in interfaceCommandChecker
-
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey
public void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance's suspension state of the given process definition.- Specified by:
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey
in interfaceCommandChecker
-
checkReadProcessInstance
public void checkReadProcessInstance(java.lang.String processInstanceId)
- Specified by:
checkReadProcessInstance
in interfaceCommandChecker
-
checkDeleteProcessInstance
public void checkDeleteProcessInstance(ExecutionEntity execution)
Description copied from interface:CommandChecker
Check if it is allowed to delete a process instance of the given execution.- Specified by:
checkDeleteProcessInstance
in interfaceCommandChecker
-
checkUpdateProcessInstanceById
public void checkUpdateProcessInstanceById(java.lang.String processInstanceId)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance of the given process instance id.- Specified by:
checkUpdateProcessInstanceById
in interfaceCommandChecker
-
checkUpdateProcessInstance
public void checkUpdateProcessInstance(ExecutionEntity execution)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance of the given execution.- Specified by:
checkUpdateProcessInstance
in interfaceCommandChecker
-
checkUpdateProcessInstanceVariables
public void checkUpdateProcessInstanceVariables(ExecutionEntity execution)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance's variables of the given execution.- Specified by:
checkUpdateProcessInstanceVariables
in interfaceCommandChecker
-
checkUpdateProcessInstanceSuspensionStateById
public void checkUpdateProcessInstanceSuspensionStateById(java.lang.String processInstanceId)
Description copied from interface:CommandChecker
Checks if it is allowed to update a process instance's suspension state.- Specified by:
checkUpdateProcessInstanceSuspensionStateById
in interfaceCommandChecker
-
checkUpdateProcessInstanceSuspensionState
public void checkUpdateProcessInstanceSuspensionState(ExecutionEntity execution)
-
checkUpdateJob
public void checkUpdateJob(JobEntity job)
Description copied from interface:CommandChecker
Checks if it is allowed to update the given job.- Specified by:
checkUpdateJob
in interfaceCommandChecker
-
checkUpdateRetriesJob
public void checkUpdateRetriesJob(JobEntity job)
Description copied from interface:CommandChecker
Checks if it is allowed to update a job retries.- Specified by:
checkUpdateRetriesJob
in interfaceCommandChecker
-
checkCreateMigrationPlan
public void checkCreateMigrationPlan(ProcessDefinition sourceProcessDefinition, ProcessDefinition targetProcessDefinition)
- Specified by:
checkCreateMigrationPlan
in interfaceCommandChecker
-
checkMigrateProcessInstance
public void checkMigrateProcessInstance(ExecutionEntity processInstance, ProcessDefinition targetProcessDefinition)
- Specified by:
checkMigrateProcessInstance
in interfaceCommandChecker
-
checkReadProcessInstance
public void checkReadProcessInstance(ExecutionEntity execution)
Description copied from interface:CommandChecker
Checks if it is allowed to read a process instance of the given execution.- Specified by:
checkReadProcessInstance
in interfaceCommandChecker
-
checkReadProcessInstanceVariable
public void checkReadProcessInstanceVariable(ExecutionEntity execution)
Description copied from interface:CommandChecker
Checks if it is allowed to read a process instance's variables of the given execution.- Specified by:
checkReadProcessInstanceVariable
in interfaceCommandChecker
-
checkReadJob
public void checkReadJob(JobEntity job)
Description copied from interface:CommandChecker
Checks if it is allowed to read the given job.- Specified by:
checkReadJob
in interfaceCommandChecker
-
checkReadTask
public void checkReadTask(TaskEntity task)
Description copied from interface:CommandChecker
Check if it is allowed to read a task.- Specified by:
checkReadTask
in interfaceCommandChecker
-
checkReadTaskVariable
public void checkReadTaskVariable(TaskEntity task)
Description copied from interface:CommandChecker
Check if it is allowed to read a task's variable.- Specified by:
checkReadTaskVariable
in interfaceCommandChecker
-
checkTaskPermission
protected void checkTaskPermission(TaskEntity task, Permission processDefinitionPermission, Permission taskPermission)
-
checkUpdateTaskVariable
public void checkUpdateTaskVariable(TaskEntity task)
Description copied from interface:CommandChecker
Check if it is allowed to update a task's variable- Specified by:
checkUpdateTaskVariable
in interfaceCommandChecker
-
checkCreateBatch
public void checkCreateBatch(Permission permission)
Description copied from interface:CommandChecker
Check if it is allowed to create a batch- Specified by:
checkCreateBatch
in interfaceCommandChecker
-
checkDeleteBatch
public void checkDeleteBatch(BatchEntity batch)
Description copied from interface:CommandChecker
Check if it is allowed to delete a batch- Specified by:
checkDeleteBatch
in interfaceCommandChecker
-
checkDeleteHistoricBatch
public void checkDeleteHistoricBatch(HistoricBatchEntity batch)
Description copied from interface:CommandChecker
Check if it is allowed to delete a historic batch- Specified by:
checkDeleteHistoricBatch
in interfaceCommandChecker
-
checkSuspendBatch
public void checkSuspendBatch(BatchEntity batch)
Description copied from interface:CommandChecker
Check if it is allowed to suspend a batch- Specified by:
checkSuspendBatch
in interfaceCommandChecker
-
checkActivateBatch
public void checkActivateBatch(BatchEntity batch)
Description copied from interface:CommandChecker
Check if it is allowed to activate a batch- Specified by:
checkActivateBatch
in interfaceCommandChecker
-
checkReadHistoricBatch
public void checkReadHistoricBatch()
Description copied from interface:CommandChecker
Check if it is allowed to read historic batch- Specified by:
checkReadHistoricBatch
in interfaceCommandChecker
-
checkCreateDeployment
public void checkCreateDeployment()
Description copied from interface:CommandChecker
Checks if it is allowed to create a deployment.- Specified by:
checkCreateDeployment
in interfaceCommandChecker
-
checkReadDeployment
public void checkReadDeployment(java.lang.String deploymentId)
Description copied from interface:CommandChecker
Checks if it is allowed to read a deployment of the given deployment id.- Specified by:
checkReadDeployment
in interfaceCommandChecker
-
checkDeleteDeployment
public void checkDeleteDeployment(java.lang.String deploymentId)
Description copied from interface:CommandChecker
Checks if it is allowed to delete a deployment of the given deployment id.- Specified by:
checkDeleteDeployment
in interfaceCommandChecker
-
checkReadDecisionDefinition
public void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
Description copied from interface:CommandChecker
Checks if it is allowed to read the given decision definition.- Specified by:
checkReadDecisionDefinition
in interfaceCommandChecker
-
checkUpdateDecisionDefinition
public void checkUpdateDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
-
checkReadDecisionRequirementsDefinition
public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition)
Description copied from interface:CommandChecker
Checks if it is allowed to read the given decision requirements definition.- Specified by:
checkReadDecisionRequirementsDefinition
in interfaceCommandChecker
-
checkReadCaseDefinition
public void checkReadCaseDefinition(CaseDefinition caseDefinition)
Description copied from interface:CommandChecker
Checks if it is allowed to read the given case definition.- Specified by:
checkReadCaseDefinition
in interfaceCommandChecker
-
checkUpdateCaseDefinition
public void checkUpdateCaseDefinition(CaseDefinition caseDefinition)
Description copied from interface:CommandChecker
Checks if it is allowed to update the given case definition.- Specified by:
checkUpdateCaseDefinition
in interfaceCommandChecker
-
checkDeleteHistoricTaskInstance
public void checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task)
Description copied from interface:CommandChecker
Checks if it is allowed to delete the given historic task instance.- Specified by:
checkDeleteHistoricTaskInstance
in interfaceCommandChecker
-
checkDeleteHistoricProcessInstance
public void checkDeleteHistoricProcessInstance(HistoricProcessInstance instance)
Description copied from interface:CommandChecker
Checks if it is allowed to delete the given historic process instance.- Specified by:
checkDeleteHistoricProcessInstance
in interfaceCommandChecker
-
checkDeleteHistoricCaseInstance
public void checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
Description copied from interface:CommandChecker
Checks if it is allowed to delete the given historic case instance.- Specified by:
checkDeleteHistoricCaseInstance
in interfaceCommandChecker
-
checkDeleteHistoricDecisionInstance
public void checkDeleteHistoricDecisionInstance(java.lang.String decisionDefinitionKey)
Description copied from interface:CommandChecker
Checks if it is allowed to delete the historic decision instance of the given decision definition key.- Specified by:
checkDeleteHistoricDecisionInstance
in interfaceCommandChecker
-
checkDeleteHistoricDecisionInstance
public void checkDeleteHistoricDecisionInstance(HistoricDecisionInstance decisionInstance)
Description copied from interface:CommandChecker
Checks if it is allowed to delete the given historic decision instance.- Specified by:
checkDeleteHistoricDecisionInstance
in interfaceCommandChecker
-
checkReadHistoricJobLog
public void checkReadHistoricJobLog(HistoricJobLogEventEntity historicJobLog)
Description copied from interface:CommandChecker
Checks if it is allowed to read the given historic job log.- Specified by:
checkReadHistoricJobLog
in interfaceCommandChecker
-
checkReadHistoryAnyProcessDefinition
public void checkReadHistoryAnyProcessDefinition()
Description copied from interface:CommandChecker
Check if it is allowed to read the history for any process definition.- Specified by:
checkReadHistoryAnyProcessDefinition
in interfaceCommandChecker
-
checkReadHistoryProcessDefinition
public void checkReadHistoryProcessDefinition(java.lang.String processDefinitionKey)
Description copied from interface:CommandChecker
Check if it is allowed to read the history of the given process definition.- Specified by:
checkReadHistoryProcessDefinition
in interfaceCommandChecker
-
checkUpdateCaseInstance
public void checkUpdateCaseInstance(CaseExecution caseExecution)
Description copied from interface:CommandChecker
Check if it is allowed to update a case instance of the given case execution.- Specified by:
checkUpdateCaseInstance
in interfaceCommandChecker
-
checkReadCaseInstance
public void checkReadCaseInstance(CaseExecution caseExecution)
Description copied from interface:CommandChecker
Check if it is allowed to read a case instance of the given case execution.- Specified by:
checkReadCaseInstance
in interfaceCommandChecker
-
getAuthorizationManager
protected AuthorizationManager getAuthorizationManager()
-
findLatestProcessDefinitionById
protected ProcessDefinitionEntity findLatestProcessDefinitionById(java.lang.String processDefinitionId)
-
findLatestDecisionDefinitionById
protected DecisionDefinitionEntity findLatestDecisionDefinitionById(java.lang.String decisionDefinitionId)
-
findExecutionById
protected ExecutionEntity findExecutionById(java.lang.String processInstanceId)
-
checkTaskAssign
public void checkTaskAssign(TaskEntity task)
Description copied from interface:CommandChecker
Check if it is allowed to assign a task- Specified by:
checkTaskAssign
in interfaceCommandChecker
-
checkCreateTask
public void checkCreateTask(TaskEntity entity)
Description copied from interface:CommandChecker
Check if it is allowed to create a task- Specified by:
checkCreateTask
in interfaceCommandChecker
-
checkCreateTask
public void checkCreateTask()
Description copied from interface:CommandChecker
Check if it is allowed to create a task- Specified by:
checkCreateTask
in interfaceCommandChecker
-
checkTaskWork
public void checkTaskWork(TaskEntity task)
Description copied from interface:CommandChecker
Check if it is allowed to work on a task- Specified by:
checkTaskWork
in interfaceCommandChecker
-
checkDeleteTask
public void checkDeleteTask(TaskEntity task)
Description copied from interface:CommandChecker
Check if it is allowed to delete a task- Specified by:
checkDeleteTask
in interfaceCommandChecker
-
checkUserOperationLog
public void checkUserOperationLog(UserOperationLogEntry entry, ProcessDefinitionPermissions processDefinitionPermission, UserOperationLogCategoryPermissions operationLogCategoryPermission)
-
checkDeleteUserOperationLog
public void checkDeleteUserOperationLog(UserOperationLogEntry entry)
Description copied from interface:CommandChecker
Check if it is allowed to delete the user operation log of the given user operation log entry.- Specified by:
checkDeleteUserOperationLog
in interfaceCommandChecker
-
checkUpdateUserOperationLog
public void checkUpdateUserOperationLog(UserOperationLogEntry entry)
Description copied from interface:CommandChecker
Check if it is allowed to update the user operation log of the given user operation log entry.- Specified by:
checkUpdateUserOperationLog
in interfaceCommandChecker
-
checkReadHistoricExternalTaskLog
public void checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog)
Description copied from interface:CommandChecker
Checks if it is allowed to read the given historic external task log.- Specified by:
checkReadHistoricExternalTaskLog
in interfaceCommandChecker
-
checkDeleteHistoricVariableInstance
public void checkDeleteHistoricVariableInstance(HistoricVariableInstanceEntity variable)
Description copied from interface:CommandChecker
Checks if it is allowed to delete the given historic variable instance.- Specified by:
checkDeleteHistoricVariableInstance
in interfaceCommandChecker
-
checkDeleteHistoricVariableInstancesByProcessInstance
public void checkDeleteHistoricVariableInstancesByProcessInstance(HistoricProcessInstanceEntity instance)
Description copied from interface:CommandChecker
Checks if it is allowed to delete the historic variable instances of the given process instance.- Specified by:
checkDeleteHistoricVariableInstancesByProcessInstance
in interfaceCommandChecker
-
-