Package de.xima.fc.tenant.ms.impl.mgmt
Class MsTenantManagementService
- java.lang.Object
-
- de.xima.fc.tenant.ms.impl.mgmt.MsTenantManagementService
-
- All Implemented Interfaces:
de.root1.simon.SimonRemoteType,RpcHandler,RpcTenantManagementService,Serializable
@ApplicationScoped public class MsTenantManagementService extends Object implements RpcTenantManagementService
Master-server implementation of theRpcTenantManagementService. Instances are handed to the frontend server as SIMON remote references, so every call from the frontend executes here on the master.Bridges the tenant API to the legacy
Mandant/IMandantDaomechanism: it authorizes the acting user against the target tenant before reading, then maps the legacy entity to aTenantDTO(never exposing the entity).Every method is a unit of work, so a caller that already runs in a transaction reads through that transaction and sees its uncommitted work. A call that arrives over RPC from the frontend server runs in a transaction of its own.
- Since:
- 8.5.6
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MsTenantManagementService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TenantDTOfindByUuid(UUID uuid, User user)Reads the tenant with the given UUID, or returnsnullif none exists.
-
-
-
Method Detail
-
findByUuid
public TenantDTO findByUuid(UUID uuid, User user) throws FcTenantManagementException
Description copied from interface:RpcTenantManagementServiceReads the tenant with the given UUID, or returnsnullif none exists.- Specified by:
findByUuidin interfaceRpcTenantManagementService- Throws:
FcTenantManagementException- See Also:
TenantManagementService.findByUuid(java.util.UUID, User)
-
-