|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.cfg.auth.AuthorizationCommandChecker
public class AuthorizationCommandChecker
CommandChecker that uses the AuthorizationManager to perform
authorization checks.
| Constructor Summary | |
|---|---|
AuthorizationCommandChecker()
|
|
| Method Summary | |
|---|---|
void |
checkActivateBatch(BatchEntity batch)
Check if it is allowed to activate 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(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 |
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 |
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 |
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 |
checkReadTask(TaskEntity task)
Check if it is allowed to read a task. |
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 |
void |
checkTaskWork(TaskEntity task)
Check if it is allowed to work on a task |
void |
checkUpdateCaseInstance(CaseExecution caseExecution)
Check if it is allowed to update a case instance of the given case execution. |
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 |
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 |
checkUpdateTask(TaskEntity task)
Check if it is allowed to update a task |
protected ExecutionEntity |
findExecutionById(String processInstanceId)
|
protected ProcessDefinitionEntity |
findLatestProcessDefinitionById(String processDefinitionId)
|
protected AuthorizationManager |
getAuthorizationManager()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationCommandChecker()
| Method Detail |
|---|
public void checkEvaluateDecision(DecisionDefinition decisionDefinition)
CommandChecker
checkEvaluateDecision in interface CommandCheckerpublic void checkCreateProcessInstance(ProcessDefinition processDefinition)
CommandChecker
checkCreateProcessInstance in interface CommandCheckerpublic void checkReadProcessDefinition(ProcessDefinition processDefinition)
CommandChecker
checkReadProcessDefinition in interface CommandCheckerpublic void checkCreateCaseInstance(CaseDefinition caseDefinition)
CommandChecker
checkCreateCaseInstance in interface CommandCheckerpublic void checkUpdateProcessDefinitionById(String processDefinitionId)
CommandChecker
checkUpdateProcessDefinitionById in interface CommandCheckerpublic void checkUpdateProcessDefinitionByKey(String processDefinitionKey)
CommandChecker
checkUpdateProcessDefinitionByKey in interface CommandCheckerpublic void checkDeleteProcessDefinitionById(String processDefinitionId)
CommandChecker
checkDeleteProcessDefinitionById in interface CommandCheckerprocessDefinitionId - the id which corresponds to the process definitionpublic void checkDeleteProcessDefinitionByKey(String processDefinitionKey)
CommandChecker
checkDeleteProcessDefinitionByKey in interface CommandCheckerprocessDefinitionKey - the key which corresponds to the process definitionpublic void checkUpdateProcessInstanceByProcessDefinitionId(String processDefinitionId)
CommandChecker
checkUpdateProcessInstanceByProcessDefinitionId in interface CommandCheckerpublic void checkUpdateProcessInstanceByProcessDefinitionKey(String processDefinitionKey)
CommandChecker
checkUpdateProcessInstanceByProcessDefinitionKey in interface CommandCheckerpublic void checkReadProcessInstance(String processInstanceId)
checkReadProcessInstance in interface CommandCheckerpublic void checkDeleteProcessInstance(ExecutionEntity execution)
CommandChecker
checkDeleteProcessInstance in interface CommandCheckerpublic void checkUpdateProcessInstanceById(String processInstanceId)
CommandChecker
checkUpdateProcessInstanceById in interface CommandCheckerpublic void checkUpdateProcessInstance(ExecutionEntity execution)
CommandChecker
checkUpdateProcessInstance in interface CommandCheckerpublic void checkUpdateJob(JobEntity job)
CommandChecker
checkUpdateJob in interface CommandChecker
public void checkCreateMigrationPlan(ProcessDefinition sourceProcessDefinition,
ProcessDefinition targetProcessDefinition)
checkCreateMigrationPlan in interface CommandChecker
public void checkMigrateProcessInstance(ExecutionEntity processInstance,
ProcessDefinition targetProcessDefinition)
checkMigrateProcessInstance in interface CommandCheckerpublic void checkReadProcessInstance(ExecutionEntity execution)
CommandChecker
checkReadProcessInstance in interface CommandCheckerpublic void checkReadJob(JobEntity job)
CommandChecker
checkReadJob in interface CommandCheckerpublic void checkReadTask(TaskEntity task)
CommandChecker
checkReadTask in interface CommandCheckerpublic void checkUpdateTask(TaskEntity task)
CommandChecker
checkUpdateTask in interface CommandCheckerpublic void checkDeleteBatch(BatchEntity batch)
CommandChecker
checkDeleteBatch in interface CommandCheckerpublic void checkDeleteHistoricBatch(HistoricBatchEntity batch)
CommandChecker
checkDeleteHistoricBatch in interface CommandCheckerpublic void checkSuspendBatch(BatchEntity batch)
CommandChecker
checkSuspendBatch in interface CommandCheckerpublic void checkActivateBatch(BatchEntity batch)
CommandChecker
checkActivateBatch in interface CommandCheckerpublic void checkCreateDeployment()
CommandChecker
checkCreateDeployment in interface CommandCheckerpublic void checkReadDeployment(String deploymentId)
CommandChecker
checkReadDeployment in interface CommandCheckerpublic void checkDeleteDeployment(String deploymentId)
CommandChecker
checkDeleteDeployment in interface CommandCheckerpublic void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition)
CommandChecker
checkReadDecisionDefinition in interface CommandCheckerpublic void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition)
CommandChecker
checkReadDecisionRequirementsDefinition in interface CommandCheckerpublic void checkReadCaseDefinition(CaseDefinition caseDefinition)
CommandChecker
checkReadCaseDefinition in interface CommandCheckerpublic void checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task)
CommandChecker
checkDeleteHistoricTaskInstance in interface CommandCheckerpublic void checkDeleteHistoricProcessInstance(HistoricProcessInstance instance)
CommandChecker
checkDeleteHistoricProcessInstance in interface CommandCheckerpublic void checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
CommandChecker
checkDeleteHistoricCaseInstance in interface CommandCheckerpublic void checkDeleteHistoricDecisionInstance(String decisionDefinitionKey)
CommandChecker
checkDeleteHistoricDecisionInstance in interface CommandCheckerpublic void checkReadHistoricJobLog(HistoricJobLogEventEntity historicJobLog)
CommandChecker
checkReadHistoricJobLog in interface CommandCheckerpublic void checkReadHistoryAnyProcessDefinition()
CommandChecker
checkReadHistoryAnyProcessDefinition in interface CommandCheckerpublic void checkReadHistoryAnyTaskInstance()
CommandChecker
checkReadHistoryAnyTaskInstance in interface CommandCheckerpublic void checkUpdateCaseInstance(CaseExecution caseExecution)
CommandChecker
checkUpdateCaseInstance in interface CommandCheckerpublic void checkReadCaseInstance(CaseExecution caseExecution)
CommandChecker
checkReadCaseInstance in interface CommandCheckerprotected AuthorizationManager getAuthorizationManager()
protected ProcessDefinitionEntity findLatestProcessDefinitionById(String processDefinitionId)
protected ExecutionEntity findExecutionById(String processInstanceId)
public void checkTaskAssign(TaskEntity task)
CommandChecker
checkTaskAssign in interface CommandCheckerpublic void checkCreateTask(TaskEntity entity)
CommandChecker
checkCreateTask in interface CommandCheckerpublic void checkCreateTask()
CommandChecker
checkCreateTask in interface CommandCheckerpublic void checkTaskWork(TaskEntity task)
CommandChecker
checkTaskWork in interface CommandCheckerpublic void checkDeleteTask(TaskEntity task)
CommandChecker
checkDeleteTask in interface CommandCheckerpublic void checkDeleteUserOperationLog(UserOperationLogEntry entry)
CommandChecker
checkDeleteUserOperationLog in interface CommandChecker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||