public interface TenantService extends RestService
Modifier and Type | Method and Description |
---|---|
Tenant |
create(Tenant tenant)
Creates a new Tenant
|
ActionResponse |
delete(String tenantId)
Deletes the specified tenant by ID
|
Tenant |
get(String tenantId)
Gets detailed information about a specified tenant by ID
|
Tenant |
getByName(String tenantName)
Gets detailed information about a specified tenant by name
|
List<? extends Tenant> |
list()
Lists tenants to which the specified token has access.
|
List<? extends TenantUser> |
listUsers(String tenantId)
Returns a list of users associated by the
tenantId |
Tenant |
update(Tenant tenant)
Updates the tenant (ID must be set within the inbound tenant)
|
List<? extends Tenant> list()
Tenant get(String tenantId)
tenantId
- the tenant idTenant getByName(String tenantName)
tenantName
- the tenant nameTenant create(Tenant tenant)
tenant
- the tenant to createActionResponse delete(String tenantId)
tenantId
- the tenant idTenant update(Tenant tenant)
tenant
- the tenantList<? extends TenantUser> listUsers(String tenantId)
tenantId
tenantId
- the tenant id to query users forCopyright © 2017. All rights reserved.