@Override public void checkUpdateJob(JobEntity job) { if (job != null && !getTenantManager().isAuthenticatedTenant(job.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the job '"+ job.getId() + "'"); } }
@Override public void checkReadProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the process instance '"+ execution.getId() + "'"); } }
public void checkReadTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the task '"+ task.getId() + "'"); } }
@Override public void checkUpdateTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the task '"+ task.getId() + "'"); } }
public void checkReadCaseDefinition(CaseDefinition caseDefinition) { if (caseDefinition != null && !getTenantManager().isAuthenticatedTenant(caseDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("get the case definition '"+ caseDefinition.getId() + "'"); } }
@Override public void checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete the historic task instance '"+ task.getId() + "'"); } }
@Override public void checkDeleteBatch(BatchEntity batch) { if (batch != null && !getTenantManager().isAuthenticatedTenant(batch.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete batch '"+ batch.getId() + "'"); } }
public void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition) { if (decisionDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("get the decision definition '"+ decisionDefinition.getId() + "'"); } }
public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) { if (decisionRequirementsDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionRequirementsDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("get the decision requirements definition '"+ decisionRequirementsDefinition.getId() + "'"); } }
@Override public void checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete the historic task instance '"+ task.getId() + "'"); } }
@Override public void checkReadHistoricJobLog(HistoricJobLogEventEntity historicJobLog) { if (historicJobLog != null && !getTenantManager().isAuthenticatedTenant(historicJobLog.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("get the historic job log '"+ historicJobLog.getId() + "'"); } }
@Override public void checkUpdateCaseInstance(CaseExecution caseExecution) { if (caseExecution != null && !getTenantManager().isAuthenticatedTenant(caseExecution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the case execution '" + caseExecution.getId() + "'"); } }
@Override public void checkCreateCaseInstance(CaseDefinition caseDefinition) { if (!getTenantManager().isAuthenticatedTenant(caseDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("create an instance of the case definition '"+ caseDefinition.getId() + "'"); } }
public void checkDeleteProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete the process instance '"+ execution.getId() + "'"); } }
public void checkTaskWork(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("work on task '"+ task.getId() +"'"); } }
@Override public void checkUpdateProcessInstanceById(String processInstanceId) { if (getTenantManager().isTenantCheckEnabled()) { ExecutionEntity execution = findExecutionById(processInstanceId); if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the process instance '"+ processInstanceId + "'"); } } }
@Override public void checkUpdateProcessDefinitionById(String processDefinitionId) { if (getTenantManager().isTenantCheckEnabled()) { ProcessDefinitionEntity processDefinition = findLatestProcessDefinitionById(processDefinitionId); if (processDefinition != null && !getTenantManager().isAuthenticatedTenant(processDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the process definition '"+ processDefinitionId + "'"); } } }
@Override public void checkDeleteDeployment(String deploymentId) { if (getTenantManager().isTenantCheckEnabled()) { DeploymentEntity deployment = findDeploymentById(deploymentId); if (deployment != null && !getTenantManager().isAuthenticatedTenant(deployment.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete the deployment '"+ deploymentId + "'"); } } }
@Override public void checkUpdateDecisionDefinitionById(String decisionDefinitionId) { if (getTenantManager().isTenantCheckEnabled()) { DecisionDefinitionEntity decisionDefinition = findLatestDecisionDefinitionById(decisionDefinitionId); if (decisionDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the decision definition '"+ decisionDefinitionId + "'"); } } }
@Override public void checkUpdateProcessInstanceByProcessDefinitionId(String processDefinitionId) { if (getTenantManager().isTenantCheckEnabled()) { ProcessDefinitionEntity processDefinition = findLatestProcessDefinitionById(processDefinitionId); if (processDefinition != null && !getTenantManager().isAuthenticatedTenant(processDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the process definition '"+ processDefinitionId + "'"); } } }