Class TenantServiceImpl
- java.lang.Object
-
- de.trustable.ca3s.core.service.impl.TenantServiceImpl
-
- All Implemented Interfaces:
TenantService
@Service @Transactional public class TenantServiceImpl extends Object implements TenantService
Service Implementation for managingTenant.
-
-
Constructor Summary
Constructors Constructor Description TenantServiceImpl(TenantRepository tenantRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Long id)Delete the "id" tenant.List<Tenant>findAll()Get all the tenants.Optional<Tenant>findOne(Long id)Get the "id" tenant.Optional<Tenant>partialUpdate(Tenant tenant)Partially updates a tenant.Tenantsave(Tenant tenant)Save a tenant.Tenantupdate(Tenant tenant)Updates a tenant.
-
-
-
Constructor Detail
-
TenantServiceImpl
public TenantServiceImpl(TenantRepository tenantRepository)
-
-
Method Detail
-
save
public Tenant save(Tenant tenant)
Description copied from interface:TenantServiceSave a tenant.- Specified by:
savein interfaceTenantService- Parameters:
tenant- the entity to save.- Returns:
- the persisted entity.
-
update
public Tenant update(Tenant tenant)
Description copied from interface:TenantServiceUpdates a tenant.- Specified by:
updatein interfaceTenantService- Parameters:
tenant- the entity to update.- Returns:
- the persisted entity.
-
partialUpdate
public Optional<Tenant> partialUpdate(Tenant tenant)
Description copied from interface:TenantServicePartially updates a tenant.- Specified by:
partialUpdatein interfaceTenantService- Parameters:
tenant- the entity to update partially.- Returns:
- the persisted entity.
-
findAll
@Transactional(readOnly=true) public List<Tenant> findAll()
Description copied from interface:TenantServiceGet all the tenants.- Specified by:
findAllin interfaceTenantService- Returns:
- the list of entities.
-
findOne
@Transactional(readOnly=true) public Optional<Tenant> findOne(Long id)
Description copied from interface:TenantServiceGet the "id" tenant.- Specified by:
findOnein interfaceTenantService- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
public void delete(Long id)
Description copied from interface:TenantServiceDelete the "id" tenant.- Specified by:
deletein interfaceTenantService- Parameters:
id- the id of the entity.
-
-