public interface TenantService
| Modifier and Type | Method and Description |
|---|---|
Tenant |
addAttributeDefinitions(String tenantName,
Collection<AttributeDefinition> attributeDefinitions)
Adds the given attribute definitions to the specified tenant.
|
Tenant |
addRoles(String tenantName,
Collection<String> roles)
Adds the given roles to the specified tenant.
|
Tenant |
createTenant(Tenant tenant)
Creates the given tenant, failing if it already has been created.
|
void |
deleteTenant(String name)
Deletes a tenant.
|
List<Tenant> |
getAllTenants()
Returns a list with all the tenants.
|
Tenant |
getTenant(String name)
Returns a tenant.
|
long |
getTenantCount()
Returns the total number of tenants.
|
Tenant |
removeAttributeDefinitions(String tenantName,
Collection<String> attributeNames)
Removes the given attribute definitions from the specified tenant.
|
Tenant |
removeRoles(String tenantName,
Collection<String> roles)
Removes the given roles from the specified tenant.
|
Tenant |
updateAttributeDefinitions(String tenantName,
Collection<AttributeDefinition> attributeDefinitions)
Updates the given attribute definitions of the specified tenant.
|
Tenant |
updateTenant(Tenant tenant)
Updates the given tenant.
|
Tenant |
verifyNewProfiles(String tenantName,
boolean verify)
Sets if new profiles for the specified tenant should be verified or not.
|
Tenant createTenant(Tenant tenant) throws ProfileException
tenant - the tenant to createProfileExceptionTenant getTenant(String name) throws ProfileException
name - the tenant's nameProfileExceptionTenant updateTenant(Tenant tenant) throws ProfileException
tenant - the tenant to updateProfileExceptionvoid deleteTenant(String name) throws ProfileException
name - the tenant's nameProfileExceptionlong getTenantCount()
throws ProfileException
ProfileExceptionList<Tenant> getAllTenants() throws ProfileException
ProfileExceptionTenant verifyNewProfiles(String tenantName, boolean verify) throws ProfileException
tenantName - the tenant's nameverify - true to verify new profiles through email, false otherwiseProfileExceptionTenant addRoles(String tenantName, Collection<String> roles) throws ProfileException
tenantName - the tenant's nameroles - the roles to addProfileExceptionTenant removeRoles(String tenantName, Collection<String> roles) throws ProfileException
tenantName - the tenant's nameroles - the roles to removeProfileExceptionTenant addAttributeDefinitions(String tenantName, Collection<AttributeDefinition> attributeDefinitions) throws ProfileException
tenantName - the tenant's nameattributeDefinitions - the definitions to addProfileExceptionTenant updateAttributeDefinitions(String tenantName, Collection<AttributeDefinition> attributeDefinitions) throws ProfileException
tenantName - the tenant's nameattributeDefinitions - the definitions to update (should have the same name as definitions that the
tenant already has)ProfileExceptionTenant removeAttributeDefinitions(String tenantName, Collection<String> attributeNames) throws ProfileException
tenantName - the tenant's nameattributeNames - the name of the attributes whose definitions should be removedProfileExceptionCopyright © 2015 CrafterCMS. All Rights Reserved.