@Override public String getTenantId() { return executionEntity.getTenantId(); } }
@Override public String getTenantId() { return executionEntity.getTenantId(); } }
protected void propagateExecutionTenantId(ExecutionEntity execution) { if(execution != null) { setTenantId(execution.getTenantId()); } }
protected void propagateExecutionTenantId(ExecutionEntity execution) { if(execution != null) { setTenantId(execution.getTenantId()); } }
public void setExecution(ExecutionEntity execution) { this.execution = execution; if (execution == null) { this.executionId = null; this.processInstanceId = null; this.tenantId = null; } else { setExecutionId(execution.getId()); this.processInstanceId = execution.getProcessInstanceId(); this.tenantId = execution.getTenantId(); } }
public void setExecution(ExecutionEntity execution) { this.execution = execution; if (execution == null) { this.executionId = null; this.processInstanceId = null; this.tenantId = null; } else { setExecutionId(execution.getId()); this.processInstanceId = execution.getProcessInstanceId(); this.tenantId = execution.getTenantId(); } }
@Override public void checkReadProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the process instance '"+ execution.getId() + "'"); } }
@Override public void checkUpdateProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the process instance '"+ execution.getId() + "'"); } }
public EventSubscriptionEntity(ExecutionEntity executionEntity, EventType eventType) { this(eventType); setExecution(executionEntity); setActivity(execution.getActivity()); this.processInstanceId = executionEntity.getProcessInstanceId(); this.tenantId = executionEntity.getTenantId(); }
public EventSubscriptionEntity(ExecutionEntity executionEntity, EventType eventType) { this(eventType); setExecution(executionEntity); setActivity(execution.getActivity()); this.processInstanceId = executionEntity.getProcessInstanceId(); this.tenantId = executionEntity.getTenantId(); }
public void checkDeleteProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete the process instance '"+ execution.getId() + "'"); } }
public void checkDeleteProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete the process instance '"+ execution.getId() + "'"); } }
@Override public void checkUpdateProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the process instance '"+ execution.getId() + "'"); } }
@Override public void checkReadProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the process instance '"+ execution.getId() + "'"); } }
public static EventSubscriptionEntity createAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity, String configuration) { EventSubscriptionEntity eventSubscription = new EventSubscriptionEntity(executionEntity, eventType); eventSubscription.setActivity(activity); eventSubscription.setTenantId(executionEntity.getTenantId()); eventSubscription.setConfiguration(configuration); eventSubscription.insert(); return eventSubscription; }
public static EventSubscriptionEntity createAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity, String configuration) { EventSubscriptionEntity eventSubscription = new EventSubscriptionEntity(executionEntity, eventType); eventSubscription.setActivity(activity); eventSubscription.setTenantId(executionEntity.getTenantId()); eventSubscription.setConfiguration(configuration); eventSubscription.insert(); return eventSubscription; }
@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 + "'"); } } }
public void checkReadProcessInstance(String processInstanceId) { if (getTenantManager().isTenantCheckEnabled()) { ExecutionEntity execution = findExecutionById(processInstanceId); if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the process instance '"+ processInstanceId + "'"); } } }
public void checkReadProcessInstance(String processInstanceId) { if (getTenantManager().isTenantCheckEnabled()) { ExecutionEntity execution = findExecutionById(processInstanceId); if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the process instance '"+ processInstanceId + "'"); } } }
@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 + "'"); } } }