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 createProfileException
Tenant getTenant(String name) throws ProfileException
name
- the tenant's nameProfileException
Tenant updateTenant(Tenant tenant) throws ProfileException
tenant
- the tenant to updateProfileException
void deleteTenant(String name) throws ProfileException
name
- the tenant's nameProfileException
long getTenantCount() throws ProfileException
ProfileException
List<Tenant> getAllTenants() throws ProfileException
ProfileException
Tenant verifyNewProfiles(String tenantName, boolean verify) throws ProfileException
tenantName
- the tenant's nameverify
- true to verify new profiles through email, false otherwiseProfileException
Tenant addRoles(String tenantName, Collection<String> roles) throws ProfileException
tenantName
- the tenant's nameroles
- the roles to addProfileException
Tenant removeRoles(String tenantName, Collection<String> roles) throws ProfileException
tenantName
- the tenant's nameroles
- the roles to removeProfileException
Tenant addAttributeDefinitions(String tenantName, Collection<AttributeDefinition> attributeDefinitions) throws ProfileException
tenantName
- the tenant's nameattributeDefinitions
- the definitions to addProfileException
Tenant 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)ProfileException
Tenant removeAttributeDefinitions(String tenantName, Collection<String> attributeNames) throws ProfileException
tenantName
- the tenant's nameattributeNames
- the name of the attributes whose definitions should be removedProfileException
Copyright © 2020 CrafterCMS. All rights reserved.