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.InitializingBean
Exception
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void startTenants()
startTenants
in interface TenantAdminService
public void stopTenants()
stopTenants
in interface TenantAdminService
public void createTenant(String tenantDomain, char[] tenantAdminRawPassword)
createTenant
in interface TenantAdminService
public void createTenant(String tenantDomain, char[] tenantAdminRawPassword, String contentRoot)
createTenant
in interface TenantAdminService
public void createTenant(String tenantDomainIn, char[] tenantAdminRawPassword, String contentRootPath, String dbUrl)
createTenant
in interface TenantAdminService
public void exportTenant(String tenantDomainIn, File directoryDestination)
exportTenant
in interface TenantAdminService
public void importTenant(String tenantDomainIn, File directorySource, String contentRoot)
importTenant
in interface TenantAdminService
public boolean existsTenant(String tenantDomain)
existsTenant
in interface TenantAdminService
public void enableTenant(String tenantDomain)
enableTenant
in interface TenantAdminService
protected void notifyAfterEnableTenant(String tenantDomain)
TenantDeployers
as the system tenant.public void disableTenant(String tenantDomain)
disableTenant
in interface TenantAdminService
public boolean isEnabledTenant(String tenantDomain)
isEnabledTenant
in interface TenantAdminService
public org.alfresco.repo.tenant.Tenant getTenant(String tenantDomain)
getTenant
in interface TenantAdminService
public 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)
TenantAdminService
getTenants
in interface TenantAdminService
enabledOnly
- true to retrieve only active tenantspublic void deployTenants(org.alfresco.repo.tenant.TenantDeployer deployer, org.apache.commons.logging.Log logger)
deployTenants
in interface TenantAdminService
public void undeployTenants(org.alfresco.repo.tenant.TenantDeployer deployer, org.apache.commons.logging.Log logger)
undeployTenants
in interface TenantAdminService
public void register(org.alfresco.repo.tenant.TenantDeployer deployer)
register
in interface TenantAdminService
public void unregister(org.alfresco.repo.tenant.TenantDeployer deployer)
unregister
in interface TenantAdminService
public void register(WorkflowDeployer workflowDeployer)
register
in interface TenantAdminService
protected 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_LABEL
public boolean isEnabled()
isEnabled
in interface org.alfresco.repo.tenant.TenantUserService
public String getCurrentUserDomain()
getCurrentUserDomain
in interface org.alfresco.repo.tenant.TenantUserService
public String getUserDomain(String username)
getUserDomain
in interface org.alfresco.repo.tenant.TenantUserService
public String getBaseNameUser(String username)
getBaseNameUser
in interface org.alfresco.repo.tenant.TenantUserService
public String getDomainUser(String baseUsername, String tenantDomain)
getDomainUser
in interface org.alfresco.repo.tenant.TenantUserService
Copyright © 2005–2017 Alfresco Software. All rights reserved.