Search in sources :

Example 1 with TenantDto

use of org.camunda.bpm.engine.rest.dto.identity.TenantDto in project camunda-bpm-platform by camunda.

the class TenantResourceImpl method getTenant.

public TenantDto getTenant(UriInfo context) {
    Tenant tenant = findTenantObject();
    if (tenant == null) {
        throw new InvalidRequestException(Status.NOT_FOUND, "Tenant with id " + resourceId + " does not exist");
    }
    TenantDto dto = TenantDto.fromTenant(tenant);
    return dto;
}
Also used : Tenant(org.camunda.bpm.engine.identity.Tenant) TenantDto(org.camunda.bpm.engine.rest.dto.identity.TenantDto) InvalidRequestException(org.camunda.bpm.engine.rest.exception.InvalidRequestException)

Aggregations

Tenant (org.camunda.bpm.engine.identity.Tenant)1 TenantDto (org.camunda.bpm.engine.rest.dto.identity.TenantDto)1 InvalidRequestException (org.camunda.bpm.engine.rest.exception.InvalidRequestException)1