public class TenantServiceRestClient extends AbstractProfileRestClientBase implements TenantService
TenantService.| Modifier and Type | Field and Description |
|---|---|
static org.springframework.core.ParameterizedTypeReference<List<Tenant>> |
tenantListTypeRef |
accessTokenIdResolver| Constructor and Description |
|---|
TenantServiceRestClient() |
| Modifier and Type | Method and Description |
|---|---|
Tenant |
addAttributeDefinitions(String tenantName,
Collection<AttributeDefinition> attributeDefinitions) |
Tenant |
addRoles(String tenantName,
Collection<String> roles) |
Tenant |
createTenant(Tenant tenant) |
void |
deleteTenant(String name) |
List<Tenant> |
getAllTenants() |
Tenant |
getTenant(String name) |
long |
getTenantCount() |
Tenant |
removeAttributeDefinitions(String tenantName,
Collection<String> attributeNames) |
Tenant |
removeRoles(String tenantName,
Collection<String> roles) |
Tenant |
updateAttributeDefinitions(String tenantName,
Collection<AttributeDefinition> attributeDefinitions) |
Tenant |
updateTenant(Tenant tenant) |
Tenant |
verifyNewProfiles(String tenantName,
boolean verify) |
createBaseParams, doGetForObject, doGetForObject, doGetForObject, doGetForObject, doPostForLocation, doPostForObject, getAbsoluteUrlWithAccessTokenIdParam, handleException, handleRestServiceException, setAccessTokenIdResolverpublic Tenant createTenant(Tenant tenant) throws ProfileException
createTenant in interface TenantServiceProfileExceptionpublic Tenant getTenant(String name) throws ProfileException
getTenant in interface TenantServiceProfileExceptionpublic Tenant updateTenant(Tenant tenant) throws ProfileException
updateTenant in interface TenantServiceProfileExceptionpublic void deleteTenant(String name) throws ProfileException
deleteTenant in interface TenantServiceProfileExceptionpublic long getTenantCount()
throws ProfileException
getTenantCount in interface TenantServiceProfileExceptionpublic List<Tenant> getAllTenants() throws ProfileException
getAllTenants in interface TenantServiceProfileExceptionpublic Tenant verifyNewProfiles(String tenantName, boolean verify) throws ProfileException
verifyNewProfiles in interface TenantServiceProfileExceptionpublic Tenant addRoles(String tenantName, Collection<String> roles) throws ProfileException
addRoles in interface TenantServiceProfileExceptionpublic Tenant removeRoles(String tenantName, Collection<String> roles) throws ProfileException
removeRoles in interface TenantServiceProfileExceptionpublic Tenant addAttributeDefinitions(String tenantName, Collection<AttributeDefinition> attributeDefinitions) throws ProfileException
addAttributeDefinitions in interface TenantServiceProfileExceptionpublic Tenant updateAttributeDefinitions(String tenantName, Collection<AttributeDefinition> attributeDefinitions) throws ProfileException
updateAttributeDefinitions in interface TenantServiceProfileExceptionpublic Tenant removeAttributeDefinitions(String tenantName, Collection<String> attributeNames) throws ProfileException
removeAttributeDefinitions in interface TenantServiceProfileExceptionCopyright © 2015 CrafterCMS. All Rights Reserved.