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 |
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)
CommandCheckercheckEvaluateDecision in interface CommandCheckerpublic void checkCreateProcessInstance(ProcessDefinition processDefinition)
CommandCheckercheckCreateProcessInstance in interface CommandCheckerpublic void checkReadProcessDefinition(ProcessDefinition processDefinition)
CommandCheckercheckReadProcessDefinition in interface CommandCheckerpublic void checkCreateCaseInstance(CaseDefinition caseDefinition)
CommandCheckercheckCreateCaseInstance in interface CommandCheckerpublic void checkUpdateProcessDefinitionById(String processDefinitionId)
CommandCheckercheckUpdateProcessDefinitionById in interface CommandCheckerpublic void checkUpdateProcessDefinitionSuspensionStateById(String processDefinitionId)
CommandCheckercheckUpdateProcessDefinitionSuspensionStateById in interface CommandCheckerpublic void checkUpdateDecisionDefinitionById(String decisionDefinitionId)
CommandCheckercheckUpdateDecisionDefinitionById in interface CommandCheckerpublic void checkUpdateProcessDefinitionByKey(String processDefinitionKey)
CommandCheckercheckUpdateProcessDefinitionByKey in interface CommandCheckerpublic void checkUpdateProcessDefinitionSuspensionStateByKey(String processDefinitionKey)
CommandCheckercheckUpdateProcessDefinitionSuspensionStateByKey in interface CommandCheckerpublic void checkDeleteProcessDefinitionById(String processDefinitionId)
CommandCheckercheckDeleteProcessDefinitionById in interface CommandCheckerprocessDefinitionId - the id which corresponds to the process definitionpublic void checkDeleteProcessDefinitionByKey(String processDefinitionKey)
CommandCheckercheckDeleteProcessDefinitionByKey in interface CommandCheckerprocessDefinitionKey - the key which corresponds to the process definitionpublic void checkUpdateProcessInstanceByProcessDefinitionId(String processDefinitionId)
CommandCheckercheckUpdateProcessInstanceByProcessDefinitionId in interface CommandCheckerpublic void checkUpdateRetriesProcessInstanceByProcessDefinitionId(String processDefinitionId)
CommandCheckercheckUpdateRetriesProcessInstanceByProcessDefinitionId in interface CommandCheckerpublic void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId(String processDefinitionId)
CommandCheckercheckUpdateProcessInstanceSuspensionStateByProcessDefinitionId in interface CommandCheckerpublic void checkUpdateProcessInstanceByProcessDefinitionKey(String processDefinitionKey)
CommandCheckercheckUpdateProcessInstanceByProcessDefinitionKey in interface CommandCheckerpublic void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey(String processDefinitionKey)
CommandCheckercheckUpdateProcessInstanceSuspensionStateByProcessDefinitionKey in interface CommandCheckerpublic void checkReadProcessInstance(String processInstanceId)
checkReadProcessInstance in interface CommandCheckerpublic void checkDeleteProcessInstance(ExecutionEntity execution)
CommandCheckercheckDeleteProcessInstance in interface CommandCheckerpublic void checkUpdateProcessInstanceById(String processInstanceId)
CommandCheckercheckUpdateProcessInstanceById in interface CommandCheckerpublic void checkUpdateProcessInstance(ExecutionEntity execution)
CommandCheckercheckUpdateProcessInstance in interface CommandCheckerpublic void checkUpdateProcessInstanceVariables(ExecutionEntity execution)
CommandCheckercheckUpdateProcessInstanceVariables in interface CommandCheckerpublic void checkUpdateProcessInstanceSuspensionStateById(String processInstanceId)
CommandCheckercheckUpdateProcessInstanceSuspensionStateById in interface CommandCheckerpublic void checkUpdateProcessInstanceSuspensionState(ExecutionEntity execution)
public void checkUpdateJob(JobEntity job)
CommandCheckercheckUpdateJob in interface CommandCheckerpublic void checkUpdateRetriesJob(JobEntity job)
CommandCheckercheckUpdateRetriesJob in interface CommandCheckerpublic void checkCreateMigrationPlan(ProcessDefinition sourceProcessDefinition, ProcessDefinition targetProcessDefinition)
checkCreateMigrationPlan in interface CommandCheckerpublic void checkMigrateProcessInstance(ExecutionEntity processInstance, ProcessDefinition targetProcessDefinition)
checkMigrateProcessInstance in interface CommandCheckerpublic void checkReadProcessInstance(ExecutionEntity execution)
CommandCheckercheckReadProcessInstance in interface CommandCheckerpublic void checkReadProcessInstanceVariable(ExecutionEntity execution)
CommandCheckercheckReadProcessInstanceVariable in interface CommandCheckerpublic void checkReadJob(JobEntity job)
CommandCheckercheckReadJob in interface CommandCheckerpublic void checkReadTask(TaskEntity task)
CommandCheckercheckReadTask in interface CommandCheckerpublic void checkReadTaskVariable(TaskEntity task)
CommandCheckercheckReadTaskVariable in interface CommandCheckerprotected void checkTaskPermission(TaskEntity task, Permission processDefinitionPermission, Permission taskPermission)
public void checkUpdateTaskVariable(TaskEntity task)
CommandCheckercheckUpdateTaskVariable in interface CommandCheckerpublic void checkCreateBatch(Permission permission)
CommandCheckercheckCreateBatch in interface CommandCheckerpublic void checkDeleteBatch(BatchEntity batch)
CommandCheckercheckDeleteBatch in interface CommandCheckerpublic void checkDeleteHistoricBatch(HistoricBatchEntity batch)
CommandCheckercheckDeleteHistoricBatch in interface CommandCheckerpublic void checkSuspendBatch(BatchEntity batch)
CommandCheckercheckSuspendBatch in interface CommandCheckerpublic void checkActivateBatch(BatchEntity batch)
CommandCheckercheckActivateBatch in interface CommandCheckerpublic void checkReadHistoricBatch()
CommandCheckercheckReadHistoricBatch in interface CommandCheckerpublic void checkCreateDeployment()
CommandCheckercheckCreateDeployment in interface CommandCheckerpublic void checkReadDeployment(String deploymentId)
CommandCheckercheckReadDeployment in interface CommandCheckerpublic void checkDeleteDeployment(String deploymentId)
CommandCheckercheckDeleteDeployment in interface CommandCheckerpublic void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
CommandCheckercheckReadDecisionDefinition in interface CommandCheckerpublic void checkUpdateDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition)
CommandCheckercheckReadDecisionRequirementsDefinition in interface CommandCheckerpublic void checkReadCaseDefinition(CaseDefinition caseDefinition)
CommandCheckercheckReadCaseDefinition in interface CommandCheckerpublic void checkUpdateCaseDefinition(CaseDefinition caseDefinition)
CommandCheckercheckUpdateCaseDefinition in interface CommandCheckerpublic void checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task)
CommandCheckercheckDeleteHistoricTaskInstance in interface CommandCheckerpublic void checkDeleteHistoricProcessInstance(HistoricProcessInstance instance)
CommandCheckercheckDeleteHistoricProcessInstance in interface CommandCheckerpublic void checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
CommandCheckercheckDeleteHistoricCaseInstance in interface CommandCheckerpublic void checkDeleteHistoricDecisionInstance(String decisionDefinitionKey)
CommandCheckercheckDeleteHistoricDecisionInstance in interface CommandCheckerpublic void checkDeleteHistoricDecisionInstance(HistoricDecisionInstance decisionInstance)
CommandCheckercheckDeleteHistoricDecisionInstance in interface CommandCheckerpublic void checkReadHistoricJobLog(HistoricJobLogEventEntity historicJobLog)
CommandCheckercheckReadHistoricJobLog in interface CommandCheckerpublic void checkReadHistoryAnyProcessDefinition()
CommandCheckercheckReadHistoryAnyProcessDefinition in interface CommandCheckerpublic void checkReadHistoryProcessDefinition(String processDefinitionKey)
CommandCheckercheckReadHistoryProcessDefinition in interface CommandCheckerpublic void checkUpdateCaseInstance(CaseExecution caseExecution)
CommandCheckercheckUpdateCaseInstance in interface CommandCheckerpublic void checkReadCaseInstance(CaseExecution caseExecution)
CommandCheckercheckReadCaseInstance in interface CommandCheckerprotected AuthorizationManager getAuthorizationManager()
protected ProcessDefinitionEntity findLatestProcessDefinitionById(String processDefinitionId)
protected DecisionDefinitionEntity findLatestDecisionDefinitionById(String decisionDefinitionId)
protected ExecutionEntity findExecutionById(String processInstanceId)
public void checkTaskAssign(TaskEntity task)
CommandCheckercheckTaskAssign in interface CommandCheckerpublic void checkCreateTask(TaskEntity entity)
CommandCheckercheckCreateTask in interface CommandCheckerpublic void checkCreateTask()
CommandCheckercheckCreateTask in interface CommandCheckerpublic void checkTaskWork(TaskEntity task)
CommandCheckercheckTaskWork in interface CommandCheckerpublic void checkDeleteTask(TaskEntity task)
CommandCheckercheckDeleteTask in interface CommandCheckerpublic void checkUserOperationLog(UserOperationLogEntry entry, ProcessDefinitionPermissions processDefinitionPermission, UserOperationLogCategoryPermissions operationLogCategoryPermission)
public void checkDeleteUserOperationLog(UserOperationLogEntry entry)
CommandCheckercheckDeleteUserOperationLog in interface CommandCheckerpublic void checkUpdateUserOperationLog(UserOperationLogEntry entry)
CommandCheckercheckUpdateUserOperationLog in interface CommandCheckerpublic void checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog)
CommandCheckercheckReadHistoricExternalTaskLog in interface CommandCheckerpublic void checkDeleteHistoricVariableInstance(HistoricVariableInstanceEntity variable)
CommandCheckercheckDeleteHistoricVariableInstance in interface CommandCheckerpublic void checkDeleteHistoricVariableInstancesByProcessInstance(HistoricProcessInstanceEntity instance)
CommandCheckercheckDeleteHistoricVariableInstancesByProcessInstance in interface CommandCheckerCopyright © 2022. All rights reserved.