Package de.trustable.ca3s.core.service
Interface TenantService
-
- All Known Implementing Classes:
TenantServiceImpl
public interface TenantServiceService Interface for managingTenant.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
save
Tenant save(Tenant tenant)
Save a tenant.- Parameters:
tenant- the entity to save.- Returns:
- the persisted entity.
-
update
Tenant update(Tenant tenant)
Updates a tenant.- Parameters:
tenant- the entity to update.- Returns:
- the persisted entity.
-
partialUpdate
Optional<Tenant> partialUpdate(Tenant tenant)
Partially updates a tenant.- Parameters:
tenant- the entity to update partially.- Returns:
- the persisted entity.
-
findOne
Optional<Tenant> findOne(Long id)
Get the "id" tenant.- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
void delete(Long id)
Delete the "id" tenant.- Parameters:
id- the id of the entity.
-
-