Package io.apicurio.multitenant.storage
Class RegistryTenantStorageImpl
- java.lang.Object
-
- io.apicurio.multitenant.storage.RegistryTenantStorageImpl
-
- All Implemented Interfaces:
RegistryTenantStorage
@ApplicationScoped public class RegistryTenantStorageImpl extends Object implements RegistryTenantStorage
- Author:
- Fabian Martinez
-
-
Constructor Summary
Constructors Constructor Description RegistryTenantStorageImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
count(String query, io.quarkus.panache.common.Parameters parameters)
void
delete(String tenantId)
Optional<RegistryTenantDto>
findByTenantId(String tenantId)
Map<String,Long>
getTenantsCountByStatus()
List<RegistryTenantDto>
queryTenants(String query, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters parameters, Integer offset, Integer returnLimit)
void
save(RegistryTenantDto dto)
-
-
-
Method Detail
-
save
public void save(RegistryTenantDto dto)
- Specified by:
save
in interfaceRegistryTenantStorage
-
findByTenantId
public Optional<RegistryTenantDto> findByTenantId(String tenantId)
- Specified by:
findByTenantId
in interfaceRegistryTenantStorage
-
delete
public void delete(String tenantId)
- Specified by:
delete
in interfaceRegistryTenantStorage
-
queryTenants
public List<RegistryTenantDto> queryTenants(String query, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters parameters, Integer offset, Integer returnLimit)
- Specified by:
queryTenants
in interfaceRegistryTenantStorage
-
count
public long count(String query, io.quarkus.panache.common.Parameters parameters)
- Specified by:
count
in interfaceRegistryTenantStorage
-
getTenantsCountByStatus
public Map<String,Long> getTenantsCountByStatus()
- Specified by:
getTenantsCountByStatus
in interfaceRegistryTenantStorage
- See Also:
RegistryTenantStorage.getTenantsCountByStatus()
-
-