Package de.xima.fc.tenant.mgmt
Interface TenantManagementService
-
- All Known Implementing Classes:
TenantManagementServiceImpl
public interface TenantManagementServiceService for managing tenants. It will grow over time. All operations are authorized against the actingUser.- Since:
- 8.5.6
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<TenantDTO>findByUuid(UUID uuid, User user)Reads the tenant with the given UUID.static TenantManagementServicegetInstance()Retrieves the singleton instance of theTenantManagementService.
-
-
-
Method Detail
-
getInstance
static TenantManagementService getInstance()
Retrieves the singleton instance of theTenantManagementService. This method uses CDI to obtain the instance.- Returns:
- the singleton instance of the
TenantManagementService. - Since:
- 8.5.6
-
findByUuid
Optional<TenantDTO> findByUuid(UUID uuid, User user) throws FcTenantManagementException
Reads the tenant with the given UUID. The result is authorized against the acting user, who must have backend access to that tenant.- Parameters:
uuid- the unique UUID of the tenant.user- the acting user. Must have backend access to the requested tenant.- Returns:
- the tenant, or
Optional.empty()if none exists with that UUID. - Throws:
FcTenantManagementException- if the user is not permitted or persistence fails.- Since:
- 8.5.6
-
-