Package org.ehrbase.service
Class TenantServiceImp
- java.lang.Object
-
- org.ehrbase.service.BaseServiceImp
-
- org.ehrbase.service.TenantServiceImp
-
- All Implemented Interfaces:
BaseService,TenantService
@Service @Transactional public class TenantServiceImp extends BaseServiceImp implements TenantService
TenantServiceimplementation.
-
-
Field Summary
-
Fields inherited from class org.ehrbase.service.BaseServiceImp
DEMOGRAPHIC, PARTY
-
-
Constructor Summary
Constructors Constructor Description TenantServiceImp(KnowledgeCacheService knowledgeCacheService, org.jooq.DSLContext context, ServerConfig serverConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDcreate(Tenant tenant)Optional<Tenant>findBy(String tenantId)List<Tenant>getAll()StringgetCurrentTenantIdentifier()Tenantupdate(Tenant tenant)-
Methods inherited from class org.ehrbase.service.BaseServiceImp
createInternalUser, getCurrentUserId, getDataAccess, getServerConfig, getSystemUuid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ehrbase.api.service.BaseService
getServerConfig, getSystemUuid
-
-
-
-
Constructor Detail
-
TenantServiceImp
public TenantServiceImp(@Lazy KnowledgeCacheService knowledgeCacheService, org.jooq.DSLContext context, ServerConfig serverConfig)
-
-
Method Detail
-
getCurrentTenantIdentifier
public String getCurrentTenantIdentifier()
- Specified by:
getCurrentTenantIdentifierin interfaceTenantService
-
create
public UUID create(Tenant tenant)
- Specified by:
createin interfaceTenantService
-
getAll
public List<Tenant> getAll()
- Specified by:
getAllin interfaceTenantService
-
findBy
public Optional<Tenant> findBy(String tenantId)
- Specified by:
findByin interfaceTenantService
-
update
public Tenant update(Tenant tenant)
- Specified by:
updatein interfaceTenantService
-
-