org.camunda.bpm.engine.impl.cfg.multitenancy
Class TenantCommandChecker

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cfg.multitenancy.TenantCommandChecker
All Implemented Interfaces:
CommandChecker

public class TenantCommandChecker
extends Object
implements CommandChecker

CommandChecker to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.


Field Summary
protected static CommandLogger LOG
           
 
Constructor Summary
TenantCommandChecker()
           
 
Method Summary
 void checkCreateCaseInstance(CaseDefinition caseDefinition)
          Checks if it is allowed to create an instance of the given case definition.
 void checkCreateProcessInstance(ProcessDefinition processDefinition)
          Checks if it is allowed to create an instance of the given process definition.
 void checkEvaluateDecision(DecisionDefinition decisionDefinition)
          Checks if it is allowed to evaluate the given decision.
 void checkReadProcessDefinition(ProcessDefinition processDefinition)
          Checks if it is allowed to read the given process definition.
 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 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.
protected  ExecutionEntity findExecutionById(String processInstanceId)
           
protected  ProcessDefinitionEntity findLatestProcessDefinitionById(String processDefinitionId)
           
protected  ProcessDefinitionEntity findLatestProcessDefinitionByKey(String processDefinitionKey)
           
protected  TenantManager getTenantManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final CommandLogger LOG
Constructor Detail

TenantCommandChecker

public TenantCommandChecker()
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 interface CommandChecker

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 interface CommandChecker

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 interface CommandChecker

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 interface CommandChecker

checkUpdateProcessDefinitionById

public void checkUpdateProcessDefinitionById(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 interface CommandChecker

checkUpdateProcessDefinitionByKey

public void checkUpdateProcessDefinitionByKey(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 interface CommandChecker

checkUpdateProcessInstanceByProcessDefinitionId

public void checkUpdateProcessInstanceByProcessDefinitionId(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 interface CommandChecker

checkUpdateProcessInstanceByProcessDefinitionKey

public void checkUpdateProcessInstanceByProcessDefinitionKey(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 interface CommandChecker

checkUpdateProcessInstanceById

public void checkUpdateProcessInstanceById(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 interface CommandChecker

getTenantManager

protected TenantManager getTenantManager()

findLatestProcessDefinitionById

protected ProcessDefinitionEntity findLatestProcessDefinitionById(String processDefinitionId)

findLatestProcessDefinitionByKey

protected ProcessDefinitionEntity findLatestProcessDefinitionByKey(String processDefinitionKey)

findExecutionById

protected ExecutionEntity findExecutionById(String processInstanceId)


Copyright © 2016 camunda services GmbH. All rights reserved.