@Override public void checkUpdateJob(JobEntity job) { if (job != null && !getTenantManager().isAuthenticatedTenant(job.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the job '"+ job.getId() + "'"); } }
public void checkReadJob(JobEntity job) { if (job != null && !getTenantManager().isAuthenticatedTenant(job.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the job '"+ job.getId() + "'"); } }
@Override public void checkUpdateJob(JobEntity job) { if (job != null && !getTenantManager().isAuthenticatedTenant(job.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the job '"+ job.getId() + "'"); } }
public void checkReadJob(JobEntity job) { if (job != null && !getTenantManager().isAuthenticatedTenant(job.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the job '"+ job.getId() + "'"); } }
String tenantId = job.getTenantId(); if (tenantId != null) { identityService.setAuthentication(null, null, Collections.singletonList(tenantId));
String tenantId = job.getTenantId(); if (tenantId != null) { identityService.setAuthentication(null, null, Collections.singletonList(tenantId));
public void checkReadJob(JobEntity job) { if (job != null && !getTenantManager().isAuthenticatedTenant(job.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the job '"+ job.getId() + "'"); } }
@Override public void checkUpdateJob(JobEntity job) { if (job != null && !getTenantManager().isAuthenticatedTenant(job.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the job '"+ job.getId() + "'"); } }
evt.setProcessDefinitionKey(jobEntity.getProcessDefinitionKey()); evt.setDeploymentId(jobEntity.getDeploymentId()); evt.setTenantId(jobEntity.getTenantId());
evt.setProcessDefinitionKey(jobEntity.getProcessDefinitionKey()); evt.setDeploymentId(jobEntity.getDeploymentId()); evt.setTenantId(jobEntity.getTenantId());
String tenantId = job.getTenantId(); if (tenantId != null) { identityService.setAuthentication(null, null, Collections.singletonList(tenantId));
evt.setProcessDefinitionKey(jobEntity.getProcessDefinitionKey()); evt.setDeploymentId(jobEntity.getDeploymentId()); evt.setTenantId(jobEntity.getTenantId());