public class AuthorizationCommandChecker extends Object implements CommandChecker
CommandChecker
that uses the AuthorizationManager
to perform
authorization checks.Constructor and Description |
---|
AuthorizationCommandChecker() |
Modifier and Type | Method and Description |
---|---|
void |
checkActivateBatch(BatchEntity batch)
Check if it is allowed to activate a batch
|
void |
checkCreateBatch(Permission permission)
Check if it is allowed to create a batch
|
void |
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 task
|
void |
checkCreateTask(TaskEntity entity)
Check if it is allowed to create a task
|
void |
checkDeleteBatch(BatchEntity batch)
Check if it is allowed to delete a batch
|
void |
checkDeleteDeployment(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 batch
|
void |
checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
Checks if it is allowed to delete the given historic case instance.
|
void |
checkDeleteHistoricDecisionInstance(HistoricDecisionInstance decisionInstance)
Checks if it is allowed to delete the given historic decision instance.
|
void |
checkDeleteHistoricDecisionInstance(String decisionDefinitionKey)
Checks if it is allowed to delete the historic decision instance of the given
decision definition key.
|
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(String processDefinitionId)
Checks if it is allowed to delete a process definition, which corresponds to the given id.
|
void |
checkDeleteProcessDefinitionByKey(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 task
|
void |
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(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 batch
|
void |
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 |
checkReadHistoryAnyTaskInstance()
Check if it is allowed to read the history for any task instance
|
void |
checkReadHistoryProcessDefinition(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(ExecutionEntity execution)
Checks if it is allowed to read a process instance of the given execution.
|
void |
checkReadProcessInstance(String processInstanceId) |
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 batch
|
void |
checkTaskAssign(TaskEntity task)
Check if it is allowed to assign a task
|
protected void |
checkTaskPermission(TaskEntity task,
Permission processDefinitionPermission,
Permission taskPermission) |
void |
checkTaskWork(TaskEntity task)
Check if it is allowed to work on a task
|
void |
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(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(String processDefinitionId)
Checks if it is allowed to update a process definition of the given process definition id.
|
void |
checkUpdateProcessDefinitionByKey(String processDefinitionKey)
Checks if it is allowed to update a process definition of the given process definition key.
|
void |
checkUpdateProcessDefinitionSuspensionStateById(String processDefinitionId)
Checks if it is allowed to update the suspension state of a process definition.
|
void |
checkUpdateProcessDefinitionSuspensionStateByKey(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(String processInstanceId)
Checks if it is allowed to update a process instance of the given process instance id.
|
void |
checkUpdateProcessInstanceByProcessDefinitionId(String processDefinitionId)
Checks if it is allowed to update a process instance of the given process definition id.
|
void |
checkUpdateProcessInstanceByProcessDefinitionKey(String processDefinitionKey)
Checks if it is allowed to update a process instance of the given process definition key.
|
void |
checkUpdateProcessInstanceSuspensionState(ExecutionEntity execution) |
void |
checkUpdateProcessInstanceSuspensionStateById(String processInstanceId)
Checks if it is allowed to update a process instance's suspension state.
|
void |
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId(String processDefinitionId)
Checks if it is allowed to update a process instance's suspension state of the given process definition.
|
void |
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey(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(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 variable
|
void |
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(String processInstanceId) |
protected DecisionDefinitionEntity |
findLatestDecisionDefinitionById(String decisionDefinitionId) |
protected ProcessDefinitionEntity |
findLatestProcessDefinitionById(String processDefinitionId) |
protected AuthorizationManager |
getAuthorizationManager() |
public void checkEvaluateDecision(DecisionDefinition decisionDefinition)
CommandChecker
checkEvaluateDecision
in interface CommandChecker
public void checkCreateProcessInstance(ProcessDefinition processDefinition)
CommandChecker
checkCreateProcessInstance
in interface CommandChecker
public void checkReadProcessDefinition(ProcessDefinition processDefinition)
CommandChecker
checkReadProcessDefinition
in interface CommandChecker
public void checkCreateCaseInstance(CaseDefinition caseDefinition)
CommandChecker
checkCreateCaseInstance
in interface CommandChecker
public void checkUpdateProcessDefinitionById(String processDefinitionId)
CommandChecker
checkUpdateProcessDefinitionById
in interface CommandChecker
public void checkUpdateProcessDefinitionSuspensionStateById(String processDefinitionId)
CommandChecker
checkUpdateProcessDefinitionSuspensionStateById
in interface CommandChecker
public void checkUpdateDecisionDefinitionById(String decisionDefinitionId)
CommandChecker
checkUpdateDecisionDefinitionById
in interface CommandChecker
public void checkUpdateProcessDefinitionByKey(String processDefinitionKey)
CommandChecker
checkUpdateProcessDefinitionByKey
in interface CommandChecker
public void checkUpdateProcessDefinitionSuspensionStateByKey(String processDefinitionKey)
CommandChecker
checkUpdateProcessDefinitionSuspensionStateByKey
in interface CommandChecker
public void checkDeleteProcessDefinitionById(String processDefinitionId)
CommandChecker
checkDeleteProcessDefinitionById
in interface CommandChecker
processDefinitionId
- the id which corresponds to the process definitionpublic void checkDeleteProcessDefinitionByKey(String processDefinitionKey)
CommandChecker
checkDeleteProcessDefinitionByKey
in interface CommandChecker
processDefinitionKey
- the key which corresponds to the process definitionpublic void checkUpdateProcessInstanceByProcessDefinitionId(String processDefinitionId)
CommandChecker
checkUpdateProcessInstanceByProcessDefinitionId
in interface CommandChecker
public void checkUpdateRetriesProcessInstanceByProcessDefinitionId(String processDefinitionId)
CommandChecker
checkUpdateRetriesProcessInstanceByProcessDefinitionId
in interface CommandChecker
public void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId(String processDefinitionId)
CommandChecker
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId
in interface CommandChecker
public void checkUpdateProcessInstanceByProcessDefinitionKey(String processDefinitionKey)
CommandChecker
checkUpdateProcessInstanceByProcessDefinitionKey
in interface CommandChecker
public void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey(String processDefinitionKey)
CommandChecker
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey
in interface CommandChecker
public void checkReadProcessInstance(String processInstanceId)
checkReadProcessInstance
in interface CommandChecker
public void checkDeleteProcessInstance(ExecutionEntity execution)
CommandChecker
checkDeleteProcessInstance
in interface CommandChecker
public void checkUpdateProcessInstanceById(String processInstanceId)
CommandChecker
checkUpdateProcessInstanceById
in interface CommandChecker
public void checkUpdateProcessInstance(ExecutionEntity execution)
CommandChecker
checkUpdateProcessInstance
in interface CommandChecker
public void checkUpdateProcessInstanceVariables(ExecutionEntity execution)
CommandChecker
checkUpdateProcessInstanceVariables
in interface CommandChecker
public void checkUpdateProcessInstanceSuspensionStateById(String processInstanceId)
CommandChecker
checkUpdateProcessInstanceSuspensionStateById
in interface CommandChecker
public void checkUpdateProcessInstanceSuspensionState(ExecutionEntity execution)
public void checkUpdateJob(JobEntity job)
CommandChecker
checkUpdateJob
in interface CommandChecker
public void checkUpdateRetriesJob(JobEntity job)
CommandChecker
checkUpdateRetriesJob
in interface CommandChecker
public void checkCreateMigrationPlan(ProcessDefinition sourceProcessDefinition, ProcessDefinition targetProcessDefinition)
checkCreateMigrationPlan
in interface CommandChecker
public void checkMigrateProcessInstance(ExecutionEntity processInstance, ProcessDefinition targetProcessDefinition)
checkMigrateProcessInstance
in interface CommandChecker
public void checkReadProcessInstance(ExecutionEntity execution)
CommandChecker
checkReadProcessInstance
in interface CommandChecker
public void checkReadProcessInstanceVariable(ExecutionEntity execution)
CommandChecker
checkReadProcessInstanceVariable
in interface CommandChecker
public void checkReadJob(JobEntity job)
CommandChecker
checkReadJob
in interface CommandChecker
public void checkReadTask(TaskEntity task)
CommandChecker
checkReadTask
in interface CommandChecker
public void checkReadTaskVariable(TaskEntity task)
CommandChecker
checkReadTaskVariable
in interface CommandChecker
protected void checkTaskPermission(TaskEntity task, Permission processDefinitionPermission, Permission taskPermission)
public void checkUpdateTaskVariable(TaskEntity task)
CommandChecker
checkUpdateTaskVariable
in interface CommandChecker
public void checkCreateBatch(Permission permission)
CommandChecker
checkCreateBatch
in interface CommandChecker
public void checkDeleteBatch(BatchEntity batch)
CommandChecker
checkDeleteBatch
in interface CommandChecker
public void checkDeleteHistoricBatch(HistoricBatchEntity batch)
CommandChecker
checkDeleteHistoricBatch
in interface CommandChecker
public void checkSuspendBatch(BatchEntity batch)
CommandChecker
checkSuspendBatch
in interface CommandChecker
public void checkActivateBatch(BatchEntity batch)
CommandChecker
checkActivateBatch
in interface CommandChecker
public void checkReadHistoricBatch()
CommandChecker
checkReadHistoricBatch
in interface CommandChecker
public void checkCreateDeployment()
CommandChecker
checkCreateDeployment
in interface CommandChecker
public void checkReadDeployment(String deploymentId)
CommandChecker
checkReadDeployment
in interface CommandChecker
public void checkDeleteDeployment(String deploymentId)
CommandChecker
checkDeleteDeployment
in interface CommandChecker
public void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
CommandChecker
checkReadDecisionDefinition
in interface CommandChecker
public void checkUpdateDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition)
CommandChecker
checkReadDecisionRequirementsDefinition
in interface CommandChecker
public void checkReadCaseDefinition(CaseDefinition caseDefinition)
CommandChecker
checkReadCaseDefinition
in interface CommandChecker
public void checkUpdateCaseDefinition(CaseDefinition caseDefinition)
CommandChecker
checkUpdateCaseDefinition
in interface CommandChecker
public void checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task)
CommandChecker
checkDeleteHistoricTaskInstance
in interface CommandChecker
public void checkDeleteHistoricProcessInstance(HistoricProcessInstance instance)
CommandChecker
checkDeleteHistoricProcessInstance
in interface CommandChecker
public void checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
CommandChecker
checkDeleteHistoricCaseInstance
in interface CommandChecker
public void checkDeleteHistoricDecisionInstance(String decisionDefinitionKey)
CommandChecker
checkDeleteHistoricDecisionInstance
in interface CommandChecker
public void checkDeleteHistoricDecisionInstance(HistoricDecisionInstance decisionInstance)
CommandChecker
checkDeleteHistoricDecisionInstance
in interface CommandChecker
public void checkReadHistoricJobLog(HistoricJobLogEventEntity historicJobLog)
CommandChecker
checkReadHistoricJobLog
in interface CommandChecker
public void checkReadHistoryAnyProcessDefinition()
CommandChecker
checkReadHistoryAnyProcessDefinition
in interface CommandChecker
public void checkReadHistoryProcessDefinition(String processDefinitionKey)
CommandChecker
checkReadHistoryProcessDefinition
in interface CommandChecker
public void checkReadHistoryAnyTaskInstance()
CommandChecker
checkReadHistoryAnyTaskInstance
in interface CommandChecker
public void checkUpdateCaseInstance(CaseExecution caseExecution)
CommandChecker
checkUpdateCaseInstance
in interface CommandChecker
public void checkReadCaseInstance(CaseExecution caseExecution)
CommandChecker
checkReadCaseInstance
in interface CommandChecker
protected AuthorizationManager getAuthorizationManager()
protected ProcessDefinitionEntity findLatestProcessDefinitionById(String processDefinitionId)
protected DecisionDefinitionEntity findLatestDecisionDefinitionById(String decisionDefinitionId)
protected ExecutionEntity findExecutionById(String processInstanceId)
public void checkTaskAssign(TaskEntity task)
CommandChecker
checkTaskAssign
in interface CommandChecker
public void checkCreateTask(TaskEntity entity)
CommandChecker
checkCreateTask
in interface CommandChecker
public void checkCreateTask()
CommandChecker
checkCreateTask
in interface CommandChecker
public void checkTaskWork(TaskEntity task)
CommandChecker
checkTaskWork
in interface CommandChecker
public void checkDeleteTask(TaskEntity task)
CommandChecker
checkDeleteTask
in interface CommandChecker
public void checkUserOperationLog(UserOperationLogEntry entry, ProcessDefinitionPermissions processDefinitionPermission, UserOperationLogCategoryPermissions operationLogCategoryPermission)
public void checkDeleteUserOperationLog(UserOperationLogEntry entry)
CommandChecker
checkDeleteUserOperationLog
in interface CommandChecker
public void checkUpdateUserOperationLog(UserOperationLogEntry entry)
CommandChecker
checkUpdateUserOperationLog
in interface CommandChecker
public void checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog)
CommandChecker
checkReadHistoricExternalTaskLog
in interface CommandChecker
public void checkDeleteHistoricVariableInstance(HistoricVariableInstanceEntity variable)
CommandChecker
checkDeleteHistoricVariableInstance
in interface CommandChecker
public void checkDeleteHistoricVariableInstancesByProcessInstance(HistoricProcessInstanceEntity instance)
CommandChecker
checkDeleteHistoricVariableInstancesByProcessInstance
in interface CommandChecker
Copyright © 2019. All rights reserved.