Package de.xima.fc.tenant.mgmt.internal
Class TenantManagementServiceImpl
- java.lang.Object
-
- de.xima.fc.tenant.mgmt.internal.TenantManagementServiceImpl
-
- All Implemented Interfaces:
TenantManagementService
@ApplicationScoped public class TenantManagementServiceImpl extends Object implements TenantManagementService
Default implementation of theTenantManagementService. Runs on both the master and the frontend server and delegates all operations to theRPC handler, which executes them on the master.- Since:
- 8.5.6
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<TenantDTO>findByUuid(UUID uuid, User user)Reads the tenant with the given UUID.
-
-
-
Method Detail
-
findByUuid
public Optional<TenantDTO> findByUuid(UUID uuid, User user) throws FcTenantManagementException
Description copied from interface:TenantManagementServiceReads the tenant with the given UUID. The result is authorized against the acting user, who must have backend access to that tenant.- Specified by:
findByUuidin interfaceTenantManagementService- 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.
-
-