Package org.bonitasoft.web.client.api
Interface TenantApi
-
- All Superinterfaces:
ApiClient.Api
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public interface TenantApi extends ApiClient.Api
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTenantApi.SearchTenantsQueryParamsA convenience class for generating query parameters for thesearchTenantsmethod in a fluent style.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TenantcreateTenant(TenantCreateRequest body)Create the Tenant  Create the TenantApiResponse<Tenant>createTenantWithHttpInfo(TenantCreateRequest body)Create the Tenant Similar tocreateTenantbut it also returns the http response headers .voiddeleteTenantById(String id)Delete the Tenant by ID  Delete the single Tenant for the given IDApiResponse<Void>deleteTenantByIdWithHttpInfo(String id)Delete the Tenant by ID Similar todeleteTenantByIdbut it also returns the http response headers .TenantgetTenantById(String id)Finds the Tenant by ID  Returns the single Tenant for the given IDApiResponse<Tenant>getTenantByIdWithHttpInfo(String id)Finds the Tenant by ID Similar togetTenantByIdbut it also returns the http response headers .List<Tenant>searchTenants(Integer p, Integer c, List<String> f, String o, String s)Finds Tenants  Finds Tenants with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName`List<Tenant>searchTenants(Map<String,Object> queryParams)Finds Tenants  Finds Tenants with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchTenantsmethod, but with the query parameters collected into a single Map parameter.ApiResponse<List<Tenant>>searchTenantsWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s)Finds Tenants Similar tosearchTenantsbut it also returns the http response headers .ApiResponse<List<Tenant>>searchTenantsWithHttpInfo(Map<String,Object> queryParams)Finds Tenants  Finds Tenants with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchTenantsthat receives the query parameters as a map, but this one also exposes the Http response headersvoidupdateTenantById(String id, TenantUpdateRequest tenantUpdateRequest)Update the Tenant by ID  Update the Tenant for the given IDApiResponse<Void>updateTenantByIdWithHttpInfo(String id, TenantUpdateRequest tenantUpdateRequest)Update the Tenant by ID Similar toupdateTenantByIdbut it also returns the http response headers .
-
-
-
Method Detail
-
createTenant
Tenant createTenant(TenantCreateRequest body)
Create the Tenant  Create the Tenant- Parameters:
body- Partial Tenant description (required)- Returns:
- Tenant
-
createTenantWithHttpInfo
ApiResponse<Tenant> createTenantWithHttpInfo(TenantCreateRequest body)
Create the Tenant Similar tocreateTenantbut it also returns the http response headers .  Create the Tenant- Parameters:
body- Partial Tenant description (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
deleteTenantById
void deleteTenantById(String id)
Delete the Tenant by ID  Delete the single Tenant for the given ID- Parameters:
id- ID of the Tenant to delete (required)
-
deleteTenantByIdWithHttpInfo
ApiResponse<Void> deleteTenantByIdWithHttpInfo(String id)
Delete the Tenant by ID Similar todeleteTenantByIdbut it also returns the http response headers .  Delete the single Tenant for the given ID- Parameters:
id- ID of the Tenant to delete (required)
-
getTenantById
Tenant getTenantById(String id)
Finds the Tenant by ID  Returns the single Tenant for the given ID- Parameters:
id- ID of the Tenant to return (required)- Returns:
- Tenant
-
getTenantByIdWithHttpInfo
ApiResponse<Tenant> getTenantByIdWithHttpInfo(String id)
Finds the Tenant by ID Similar togetTenantByIdbut it also returns the http response headers .  Returns the single Tenant for the given ID- Parameters:
id- ID of the Tenant to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchTenants
List<Tenant> searchTenants(Integer p, Integer c, List<String> f, String o, String s)
Finds Tenants  Finds Tenants with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)s- can search on attributes (optional)- Returns:
- List<Tenant>
-
searchTenantsWithHttpInfo
ApiResponse<List<Tenant>> searchTenantsWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s)
Finds Tenants Similar tosearchTenantsbut it also returns the http response headers .  Finds Tenants with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)s- can search on attributes (optional)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchTenants
List<Tenant> searchTenants(Map<String,Object> queryParams)
Finds Tenants  Finds Tenants with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchTenantsmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theTenantApi.SearchTenantsQueryParamsclass that allows for building up this map in a fluent style.- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- s - can search on attributes (optional)
- Returns:
- List<Tenant>
-
searchTenantsWithHttpInfo
ApiResponse<List<Tenant>> searchTenantsWithHttpInfo(Map<String,Object> queryParams)
Finds Tenants  Finds Tenants with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchTenantsthat receives the query parameters as a map, but this one also exposes the Http response headers- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- s - can search on attributes (optional)
- Returns:
- List<Tenant>
-
updateTenantById
void updateTenantById(String id, TenantUpdateRequest tenantUpdateRequest)
Update the Tenant by ID  Update the Tenant for the given ID- Parameters:
id- ID of the Tenant to return (required)tenantUpdateRequest- Partial Tenant description (required)
-
updateTenantByIdWithHttpInfo
ApiResponse<Void> updateTenantByIdWithHttpInfo(String id, TenantUpdateRequest tenantUpdateRequest)
Update the Tenant by ID Similar toupdateTenantByIdbut it also returns the http response headers .  Update the Tenant for the given ID- Parameters:
id- ID of the Tenant to return (required)tenantUpdateRequest- Partial Tenant description (required)
-
-