public class MultiTAdminServiceImpl extends Object implements TenantAdminService, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
MultiTAdminServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
createTenant(String tenantDomain,
char[] tenantAdminRawPassword) |
void |
createTenant(String tenantDomain,
char[] tenantAdminRawPassword,
String contentRoot) |
void |
createTenant(String tenantDomainIn,
char[] tenantAdminRawPassword,
String contentRootPath,
String dbUrl) |
void |
deleteTenant(String tenantDomain) |
void |
deployTenants(org.alfresco.repo.tenant.TenantDeployer deployer,
org.apache.commons.logging.Log logger) |
void |
disableTenant(String tenantDomain) |
void |
enableTenant(String tenantDomain) |
boolean |
existsTenant(String tenantDomain) |
void |
exportTenant(String tenantDomainIn,
File directoryDestination)
Export tenant - equivalent to the tenant admin running a 'complete repo' export from the Web Client Admin
|
List<org.alfresco.repo.tenant.Tenant> |
getAllTenants()
Deprecated.
|
String |
getBaseNameUser(String username) |
String |
getCurrentUserDomain() |
String |
getDomainUser(String baseUsername,
String tenantDomain) |
org.alfresco.repo.tenant.Tenant |
getTenant(String tenantDomain) |
protected String |
getTenantDomain(String tenantDomain)
Do a null check and convert tenant domain to lowercase
|
List<org.alfresco.repo.tenant.Tenant> |
getTenants(boolean enabledOnly)
Deprecated.
|
String |
getUserDomain(String username) |
void |
importTenant(String tenantDomainIn,
File directorySource,
String contentRoot)
Create tenant by restoring from a complete repository export.
|
boolean |
isEnabled() |
boolean |
isEnabledTenant(String tenantDomain) |
protected boolean |
isTenantDeployer(org.alfresco.repo.content.ContentStore contentStore) |
protected boolean |
isTenantRoutingContentStore(org.alfresco.repo.content.ContentStore contentStore) |
protected void |
notifyAfterEnableTenant(String tenantDomain)
Call all
TenantDeployers as the system tenant. |
void |
register(org.alfresco.repo.tenant.TenantDeployer deployer) |
void |
register(WorkflowDeployer workflowDeployer) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setAuthenticationContext(AuthenticationContext authenticationContext) |
void |
setBaseAdminUsername(String baseAdminUsername) |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setContentRootContainerPath(String contentRootContainerPath) |
void |
setDictionaryComponent(org.alfresco.repo.dictionary.DictionaryComponent dictionaryComponent) |
void |
setModuleService(ModuleService moduleService) |
void |
setNodeService(DbNodeServiceImpl dbNodeService) |
void |
setPasswordEncoder(net.sf.acegisecurity.providers.encoding.PasswordEncoder passwordEncoder) |
void |
setRepoAdminService(RepoAdminService repoAdminService) |
void |
setRepositoryExporterService(RepositoryExporterService repositoryExporterService) |
void |
setTenantAdminDAO(TenantAdminDAO tenantAdminDAO) |
void |
setTenantFileContentStore(org.alfresco.repo.content.ContentStore tenantFileContentStore) |
void |
setTenantRoutingDataSource(TenantRoutingDataSource trds) |
void |
setTenantService(MultiTServiceImpl tenantService) |
void |
setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry) |
void |
setTransactionService(TransactionService transactionService) |
void |
setWorkflowDeployer(WorkflowDeployer workflowDeployer)
Deprecated.
see setWorkflowDeployers
|
void |
setWorkflowService(WorkflowService workflowService) |
void |
startTenants() |
void |
stopTenants() |
protected org.alfresco.repo.tenant.TenantDeployer |
tenantDeployer(org.alfresco.repo.content.ContentStore contentStore) |
protected TenantRoutingContentStore |
tenantRoutingContentStore(org.alfresco.repo.content.ContentStore contentStore) |
void |
undeployTenants(org.alfresco.repo.tenant.TenantDeployer deployer,
org.apache.commons.logging.Log logger) |
void |
unregister(org.alfresco.repo.tenant.TenantDeployer deployer) |
protected void |
validateTenantName(String tenantDomain) |
protected org.springframework.context.ApplicationContext ctx
protected TransactionService transactionService
protected org.alfresco.repo.dictionary.DictionaryComponent dictionaryComponent
protected TenantAdminDAO tenantAdminDAO
protected net.sf.acegisecurity.providers.encoding.PasswordEncoder passwordEncoder
protected org.alfresco.repo.content.ContentStore tenantFileContentStore
protected static final String REGEX_VALID_DNS_LABEL
protected static final String REGEX_CONTAINS_ALPHA
protected static final int MAX_LEN
public static final String PROTOCOL_STORE_USER
public static final String PROTOCOL_STORE_WORKSPACE
public static final String PROTOCOL_STORE_SYSTEM
public static final String PROTOCOL_STORE_ARCHIVE
public static final String STORE_BASE_ID_USER
public static final String STORE_BASE_ID_SYSTEM
public static final String STORE_BASE_ID_VERSION1
public static final String STORE_BASE_ID_VERSION2
public static final String STORE_BASE_ID_SPACES
public static final String TENANTS_ATTRIBUTE_PATH
public static final String TENANT_ATTRIBUTE_ENABLED
public static final String TENANT_ATTRIBUTE_ROOT_CONTENT_STORE_DIR
public static final String TENANT_ATTRIBUTE_DB_URL
public void setNodeService(DbNodeServiceImpl dbNodeService)
public void setDictionaryComponent(org.alfresco.repo.dictionary.DictionaryComponent dictionaryComponent)
public void setRepoAdminService(RepoAdminService repoAdminService)
public void setAuthenticationContext(AuthenticationContext authenticationContext)
public void setTransactionService(TransactionService transactionService)
public void setTenantService(MultiTServiceImpl tenantService)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setTenantAdminDAO(TenantAdminDAO tenantAdminDAO)
public void setPasswordEncoder(net.sf.acegisecurity.providers.encoding.PasswordEncoder passwordEncoder)
public void setTenantFileContentStore(org.alfresco.repo.content.ContentStore tenantFileContentStore)
public void setWorkflowService(WorkflowService workflowService)
public void setRepositoryExporterService(RepositoryExporterService repositoryExporterService)
public void setWorkflowDeployer(WorkflowDeployer workflowDeployer)
public void setModuleService(ModuleService moduleService)
public void setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)
public void setBaseAdminUsername(String baseAdminUsername)
public void setTenantRoutingDataSource(TenantRoutingDataSource trds)
public void setContentRootContainerPath(String contentRootContainerPath)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void startTenants()
startTenants in interface TenantAdminServicepublic void stopTenants()
stopTenants in interface TenantAdminServicepublic void createTenant(String tenantDomain, char[] tenantAdminRawPassword)
createTenant in interface TenantAdminServicepublic void createTenant(String tenantDomain, char[] tenantAdminRawPassword, String contentRoot)
createTenant in interface TenantAdminServicepublic void createTenant(String tenantDomainIn, char[] tenantAdminRawPassword, String contentRootPath, String dbUrl)
createTenant in interface TenantAdminServicepublic void exportTenant(String tenantDomainIn, File directoryDestination)
exportTenant in interface TenantAdminServicepublic void importTenant(String tenantDomainIn, File directorySource, String contentRoot)
importTenant in interface TenantAdminServicepublic boolean existsTenant(String tenantDomain)
existsTenant in interface TenantAdminServicepublic void enableTenant(String tenantDomain)
enableTenant in interface TenantAdminServiceprotected void notifyAfterEnableTenant(String tenantDomain)
TenantDeployers as the system tenant.public void disableTenant(String tenantDomain)
disableTenant in interface TenantAdminServicepublic boolean isEnabledTenant(String tenantDomain)
isEnabledTenant in interface TenantAdminServicepublic org.alfresco.repo.tenant.Tenant getTenant(String tenantDomain)
getTenant in interface TenantAdminServicepublic void deleteTenant(String tenantDomain)
deleteTenant in interface TenantAdminService@Deprecated public List<org.alfresco.repo.tenant.Tenant> getAllTenants()
getAllTenants in interface TenantAdminService@Deprecated public List<org.alfresco.repo.tenant.Tenant> getTenants(boolean enabledOnly)
TenantAdminServicegetTenants in interface TenantAdminServiceenabledOnly - true to retrieve only active tenantspublic void deployTenants(org.alfresco.repo.tenant.TenantDeployer deployer,
org.apache.commons.logging.Log logger)
deployTenants in interface TenantAdminServicepublic void undeployTenants(org.alfresco.repo.tenant.TenantDeployer deployer,
org.apache.commons.logging.Log logger)
undeployTenants in interface TenantAdminServicepublic void register(org.alfresco.repo.tenant.TenantDeployer deployer)
register in interface TenantAdminServicepublic void unregister(org.alfresco.repo.tenant.TenantDeployer deployer)
unregister in interface TenantAdminServicepublic void register(WorkflowDeployer workflowDeployer)
register in interface TenantAdminServiceprotected TenantRoutingContentStore tenantRoutingContentStore(org.alfresco.repo.content.ContentStore contentStore)
protected boolean isTenantRoutingContentStore(org.alfresco.repo.content.ContentStore contentStore)
protected org.alfresco.repo.tenant.TenantDeployer tenantDeployer(org.alfresco.repo.content.ContentStore contentStore)
protected boolean isTenantDeployer(org.alfresco.repo.content.ContentStore contentStore)
protected void validateTenantName(String tenantDomain)
MAX_LEN,
REGEX_CONTAINS_ALPHA,
REGEX_VALID_DNS_LABELpublic boolean isEnabled()
isEnabled in interface org.alfresco.repo.tenant.TenantUserServicepublic String getCurrentUserDomain()
getCurrentUserDomain in interface org.alfresco.repo.tenant.TenantUserServicepublic String getUserDomain(String username)
getUserDomain in interface org.alfresco.repo.tenant.TenantUserServicepublic String getBaseNameUser(String username)
getBaseNameUser in interface org.alfresco.repo.tenant.TenantUserServicepublic String getDomainUser(String baseUsername, String tenantDomain)
getDomainUser in interface org.alfresco.repo.tenant.TenantUserServiceCopyright © 2005–2018 Alfresco Software. All rights reserved.