Package co.novu.api.tenants
Class TenantsHandler
- java.lang.Object
-
- co.novu.api.tenants.TenantsHandler
-
public class TenantsHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description TenantsHandler(RestHandler restHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TenantResponsecreateTenant(TenantRequest request)DeleteTenantResponsedeleteTenant(String tenantId)TenantResponsegetTenant(String tenantId)BulkTenantResponsegetTenants(GetTenantRequest request)TenantResponseupdateTenant(TenantRequest request, String tenantId)
-
-
-
Constructor Detail
-
TenantsHandler
public TenantsHandler(RestHandler restHandler)
-
-
Method Detail
-
getTenants
public BulkTenantResponse getTenants(GetTenantRequest request) throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
createTenant
public TenantResponse createTenant(TenantRequest request) throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
getTenant
public TenantResponse getTenant(String tenantId) throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
updateTenant
public TenantResponse updateTenant(TenantRequest request, String tenantId) throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
deleteTenant
public DeleteTenantResponse deleteTenant(String tenantId) throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
-