public interface ITenantManager
Modifier and Type | Field and Description |
---|---|
static String |
TENANT_ENABLED |
static String |
TENANT_ROOT |
Modifier and Type | Method and Description |
---|---|
ITenant |
createTenant(ITenant parentTenant,
String tenantName,
String tenantAdminRoleName,
String authenticatedRoleName,
String anonymousRoleName) |
RepositoryFile |
createUserHomeFolder(ITenant tenant,
String username)
Creates users home folder.
|
void |
deleteTenant(ITenant tenant)
Deletes the tenant
|
void |
deleteTenants(List<ITenant> tenantPaths)
Deletes a list of tenants
|
void |
enableTenant(ITenant tenant,
boolean enable)
Enables/disables the tenant with the paths of tenantPath
|
void |
enableTenants(List<ITenant> tenantPaths,
boolean enable)
Enables/disables the tenants with paths in the tenantPaths list
|
List<ITenant> |
getChildTenants(ITenant parentTenant)
Gets children tenants of the "parent" tenant.
|
List<ITenant> |
getChildTenants(ITenant parentTenant,
boolean includeDisabledTenants)
Gets children tenants of the "parent" tenant.
|
ITenant |
getTenant(String tenantId) |
ITenant |
getTenantByRootFolderPath(String tenantRootFolderPath) |
RepositoryFile |
getTenantRootFolder(ITenant tenant) |
RepositoryFile |
getUserHomeFolder(ITenant tenant,
String username)
Retrieves users home folder.
|
boolean |
isSubTenant(ITenant parentTenant,
ITenant descendantTenant) |
void |
updateTentant(String tenantPath,
Map<String,Serializable> tenantInfo)
Updates tenant with the items in tenant info.
|
static final String TENANT_ROOT
static final String TENANT_ENABLED
ITenant createTenant(ITenant parentTenant, String tenantName, String tenantAdminRoleName, String authenticatedRoleName, String anonymousRoleName)
parentPath
- tenantName
- List<ITenant> getChildTenants(ITenant parentTenant)
parentTenant
- -List<ITenant> getChildTenants(ITenant parentTenant, boolean includeDisabledTenants)
parentTenant
- -includeDisabledTenants
- void updateTentant(String tenantPath, Map<String,Serializable> tenantInfo)
tenantPath
- tenantInfo
- void deleteTenant(ITenant tenant)
tenant
- void deleteTenants(List<ITenant> tenantPaths)
tenantPaths
- void enableTenant(ITenant tenant, boolean enable)
tenant
- enable
- void enableTenants(List<ITenant> tenantPaths, boolean enable)
tenantPaths
- enable
- boolean isSubTenant(ITenant parentTenant, ITenant descendantTenant)
parentTenant
- descendantTenant
- RepositoryFile getTenantRootFolder(ITenant tenant)
RepositoryFile createUserHomeFolder(ITenant tenant, String username)
tenantPath
- username
- RepositoryFile getUserHomeFolder(ITenant tenant, String username)
tenantPath
- username
-