Package org.camunda.bpm.engine.impl.cfg
Interface CommandChecker
-
- All Known Implementing Classes:
AuthorizationCommandChecker
,TenantCommandChecker
public interface CommandChecker
Is invoked while executing a command to check if the current operation is allowed on the entity. If it is not allowed, the checker throws aProcessEngineException
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
checkActivateBatch(BatchEntity batch)
Check if it is allowed to activate a batchvoid
checkConfigureTelemetry()
Checks if it is allowed to toggle telemetry collection.void
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 task)
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 instance)
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
checkDeleteLicenseKey()
void
checkDeleteMetrics()
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
checkDeleteProperty()
void
checkDeleteTask(TaskEntity task)
Check if it is allowed to delete a taskvoid
checkDeleteTaskMetrics()
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(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
checkReadHistoryLevel()
void
checkReadHistoryProcessDefinition(java.lang.String processDefinitionId)
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
checkReadLicenseKey()
void
checkReadProcessApplicationForDeployment()
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
checkReadProperties()
void
checkReadRegisteredDeployments()
void
checkReadSchemaLog()
void
checkReadTableCount()
void
checkReadTableMetaData()
void
checkReadTableName()
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
checkReadTelemetryCollectionStatusData()
Checks if it is allowed to read the status (ON/OFF) of the telemetry collection.void
checkReadTelemetryData()
Checks if it is allowed to read collected telemetry data.void
checkRegisterDeployment()
void
checkRegisterProcessApplication()
void
checkSetLicenseKey()
void
checkSetProperty()
void
checkSuspendBatch(BatchEntity batch)
Check if it is allowed to suspend a batchvoid
checkTaskAssign(TaskEntity task)
Check if it is allowed to assign a taskvoid
checkTaskWork(TaskEntity task)
Check if it is allowed to work on a taskvoid
checkUnregisterDeployment()
void
checkUnregisterProcessApplication()
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
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
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.
-
-
-
Method Detail
-
checkEvaluateDecision
void checkEvaluateDecision(DecisionDefinition decisionDefinition)
Checks if it is allowed to evaluate the given decision.
-
checkCreateProcessInstance
void checkCreateProcessInstance(ProcessDefinition processDefinition)
Checks if it is allowed to create an instance of the given process definition.
-
checkReadProcessDefinition
void checkReadProcessDefinition(ProcessDefinition processDefinition)
Checks if it is allowed to read the given process definition.
-
checkCreateCaseInstance
void checkCreateCaseInstance(CaseDefinition caseDefinition)
Checks if it is allowed to create an instance of the given case definition.
-
checkUpdateProcessDefinitionById
void checkUpdateProcessDefinitionById(java.lang.String processDefinitionId)
Checks if it is allowed to update a process definition of the given process definition id.
-
checkUpdateProcessDefinitionSuspensionStateById
void checkUpdateProcessDefinitionSuspensionStateById(java.lang.String processDefinitionId)
Checks if it is allowed to update the suspension state of a process definition.
-
checkUpdateProcessInstanceByProcessDefinitionId
void checkUpdateProcessInstanceByProcessDefinitionId(java.lang.String processDefinitionId)
Checks if it is allowed to update a process instance of the given process definition id.
-
checkUpdateRetriesProcessInstanceByProcessDefinitionId
void checkUpdateRetriesProcessInstanceByProcessDefinitionId(java.lang.String processDefinitionId)
Checks if it is allowed to update a process instance's retries of the given process definition.
-
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId
void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId(java.lang.String processDefinitionId)
Checks if it is allowed to update a process instance's suspension state of the given process definition.
-
checkUpdateDecisionDefinitionById
void checkUpdateDecisionDefinitionById(java.lang.String decisionDefinitionId)
Checks if it is allowed to update a decision definition with given id.
-
checkUpdateProcessDefinitionByKey
void checkUpdateProcessDefinitionByKey(java.lang.String processDefinitionKey)
Checks if it is allowed to update a process definition of the given process definition key.
-
checkUpdateProcessDefinitionSuspensionStateByKey
void checkUpdateProcessDefinitionSuspensionStateByKey(java.lang.String processDefinitionKey)
Checks if it is allowed to update the suspension state of a process definition.
-
checkDeleteProcessDefinitionById
void checkDeleteProcessDefinitionById(java.lang.String processDefinitionId)
Checks if it is allowed to delete a process definition, which corresponds to the given id.- Parameters:
processDefinitionId
- the id which corresponds to the process definition
-
checkDeleteProcessDefinitionByKey
void checkDeleteProcessDefinitionByKey(java.lang.String processDefinitionKey)
Checks if it is allowed to delete a process definition, which corresponds to the given key.- Parameters:
processDefinitionKey
- the key which corresponds to the process definition
-
checkUpdateProcessInstanceByProcessDefinitionKey
void checkUpdateProcessInstanceByProcessDefinitionKey(java.lang.String processDefinitionKey)
Checks if it is allowed to update a process instance of the given process definition key.
-
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey
void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey(java.lang.String processDefinitionKey)
Checks if it is allowed to update a process instance's suspension state of the given process definition.
-
checkUpdateProcessInstanceById
void checkUpdateProcessInstanceById(java.lang.String processInstanceId)
Checks if it is allowed to update a process instance of the given process instance id.
-
checkUpdateProcessInstanceSuspensionStateById
void checkUpdateProcessInstanceSuspensionStateById(java.lang.String processInstanceId)
Checks if it is allowed to update a process instance's suspension state.
-
checkUpdateProcessInstance
void checkUpdateProcessInstance(ExecutionEntity execution)
Checks if it is allowed to update a process instance of the given execution.
-
checkUpdateProcessInstanceVariables
void checkUpdateProcessInstanceVariables(ExecutionEntity execution)
Checks if it is allowed to update a process instance's variables of the given execution.
-
checkCreateMigrationPlan
void checkCreateMigrationPlan(ProcessDefinition sourceProcessDefinition, ProcessDefinition targetProcessDefinition)
-
checkMigrateProcessInstance
void checkMigrateProcessInstance(ExecutionEntity processInstance, ProcessDefinition targetProcessDefinition)
-
checkReadProcessInstance
void checkReadProcessInstance(java.lang.String processInstanceId)
-
checkReadJob
void checkReadJob(JobEntity job)
Checks if it is allowed to read the given job.
-
checkUpdateJob
void checkUpdateJob(JobEntity job)
Checks if it is allowed to update the given job.
-
checkUpdateRetriesJob
void checkUpdateRetriesJob(JobEntity job)
Checks if it is allowed to update a job retries.
-
checkReadProcessInstance
void checkReadProcessInstance(ExecutionEntity execution)
Checks if it is allowed to read a process instance of the given execution.
-
checkReadProcessInstanceVariable
void checkReadProcessInstanceVariable(ExecutionEntity execution)
Checks if it is allowed to read a process instance's variables of the given execution.
-
checkDeleteProcessInstance
void checkDeleteProcessInstance(ExecutionEntity execution)
Check if it is allowed to delete a process instance of the given execution.
-
checkReadTask
void checkReadTask(TaskEntity task)
Check if it is allowed to read a task.
-
checkReadTaskVariable
void checkReadTaskVariable(TaskEntity task)
Check if it is allowed to read a task's variable.
-
checkUpdateTaskVariable
void checkUpdateTaskVariable(TaskEntity task)
Check if it is allowed to update a task's variable
-
checkCreateBatch
void checkCreateBatch(Permission permission)
Check if it is allowed to create a batch
-
checkDeleteBatch
void checkDeleteBatch(BatchEntity batch)
Check if it is allowed to delete a batch
-
checkDeleteHistoricBatch
void checkDeleteHistoricBatch(HistoricBatchEntity batch)
Check if it is allowed to delete a historic batch
-
checkSuspendBatch
void checkSuspendBatch(BatchEntity batch)
Check if it is allowed to suspend a batch
-
checkActivateBatch
void checkActivateBatch(BatchEntity batch)
Check if it is allowed to activate a batch
-
checkReadHistoricBatch
void checkReadHistoricBatch()
Check if it is allowed to read historic batch
-
checkCreateDeployment
void checkCreateDeployment()
Checks if it is allowed to create a deployment.
-
checkReadDeployment
void checkReadDeployment(java.lang.String deploymentId)
Checks if it is allowed to read a deployment of the given deployment id.
-
checkDeleteDeployment
void checkDeleteDeployment(java.lang.String deploymentId)
Checks if it is allowed to delete a deployment of the given deployment id.
-
checkTaskAssign
void checkTaskAssign(TaskEntity task)
Check if it is allowed to assign a task
-
checkCreateTask
void checkCreateTask(TaskEntity task)
Check if it is allowed to create a task
-
checkCreateTask
void checkCreateTask()
Check if it is allowed to create a task
-
checkTaskWork
void checkTaskWork(TaskEntity task)
Check if it is allowed to work on a task
-
checkDeleteTask
void checkDeleteTask(TaskEntity task)
Check if it is allowed to delete a task
-
checkReadDecisionDefinition
void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
Checks if it is allowed to read the given decision definition.
-
checkReadDecisionRequirementsDefinition
void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition)
Checks if it is allowed to read the given decision requirements definition.
-
checkReadCaseDefinition
void checkReadCaseDefinition(CaseDefinition caseDefinition)
Checks if it is allowed to read the given case definition.
-
checkUpdateCaseDefinition
void checkUpdateCaseDefinition(CaseDefinition caseDefinition)
Checks if it is allowed to update the given case definition.
-
checkDeleteHistoricTaskInstance
void checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task)
Checks if it is allowed to delete the given historic task instance.
-
checkDeleteHistoricProcessInstance
void checkDeleteHistoricProcessInstance(HistoricProcessInstance instance)
Checks if it is allowed to delete the given historic process instance.
-
checkDeleteHistoricCaseInstance
void checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
Checks if it is allowed to delete the given historic case instance.
-
checkDeleteHistoricDecisionInstance
void checkDeleteHistoricDecisionInstance(java.lang.String decisionDefinitionKey)
Checks if it is allowed to delete the historic decision instance of the given decision definition key.
-
checkDeleteHistoricDecisionInstance
void checkDeleteHistoricDecisionInstance(HistoricDecisionInstance instance)
Checks if it is allowed to delete the given historic decision instance.
-
checkReadHistoricJobLog
void checkReadHistoricJobLog(HistoricJobLogEventEntity historicJobLog)
Checks if it is allowed to read the given historic job log.
-
checkReadHistoryAnyProcessDefinition
void checkReadHistoryAnyProcessDefinition()
Check if it is allowed to read the history for any process definition.
-
checkReadHistoryProcessDefinition
void checkReadHistoryProcessDefinition(java.lang.String processDefinitionId)
Check if it is allowed to read the history of the given process definition.
-
checkUpdateCaseInstance
void checkUpdateCaseInstance(CaseExecution caseExecution)
Check if it is allowed to update a case instance of the given case execution.
-
checkDeleteUserOperationLog
void checkDeleteUserOperationLog(UserOperationLogEntry entry)
Check if it is allowed to delete the user operation log of the given user operation log entry.
-
checkUpdateUserOperationLog
void checkUpdateUserOperationLog(UserOperationLogEntry entry)
Check if it is allowed to update the user operation log of the given user operation log entry.
-
checkReadCaseInstance
void checkReadCaseInstance(CaseExecution caseExecution)
Check if it is allowed to read a case instance of the given case execution.
-
checkReadHistoricExternalTaskLog
void checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog)
Checks if it is allowed to read the given historic external task log.
-
checkDeleteHistoricVariableInstance
void checkDeleteHistoricVariableInstance(HistoricVariableInstanceEntity variable)
Checks if it is allowed to delete the given historic variable instance.
-
checkDeleteHistoricVariableInstancesByProcessInstance
void checkDeleteHistoricVariableInstancesByProcessInstance(HistoricProcessInstanceEntity instance)
Checks if it is allowed to delete the historic variable instances of the given process instance.
-
checkReadTelemetryData
void checkReadTelemetryData()
Checks if it is allowed to read collected telemetry data.
-
checkConfigureTelemetry
void checkConfigureTelemetry()
Checks if it is allowed to toggle telemetry collection.
-
checkReadTelemetryCollectionStatusData
void checkReadTelemetryCollectionStatusData()
Checks if it is allowed to read the status (ON/OFF) of the telemetry collection.
-
checkReadHistoryLevel
void checkReadHistoryLevel()
-
checkReadTableCount
void checkReadTableCount()
-
checkReadTableName
void checkReadTableName()
-
checkReadTableMetaData
void checkReadTableMetaData()
-
checkReadProperties
void checkReadProperties()
-
checkSetProperty
void checkSetProperty()
-
checkDeleteProperty
void checkDeleteProperty()
-
checkDeleteLicenseKey
void checkDeleteLicenseKey()
-
checkSetLicenseKey
void checkSetLicenseKey()
-
checkReadLicenseKey
void checkReadLicenseKey()
-
checkRegisterProcessApplication
void checkRegisterProcessApplication()
-
checkUnregisterProcessApplication
void checkUnregisterProcessApplication()
-
checkReadRegisteredDeployments
void checkReadRegisteredDeployments()
-
checkReadProcessApplicationForDeployment
void checkReadProcessApplicationForDeployment()
-
checkRegisterDeployment
void checkRegisterDeployment()
-
checkUnregisterDeployment
void checkUnregisterDeployment()
-
checkDeleteMetrics
void checkDeleteMetrics()
-
checkDeleteTaskMetrics
void checkDeleteTaskMetrics()
-
checkReadSchemaLog
void checkReadSchemaLog()
-
-