public class MultiTAdminServiceImpl extends Object implements TenantAdminService, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
ctx |
protected DictionaryComponent |
dictionaryComponent |
protected static int |
MAX_LEN |
protected net.sf.acegisecurity.providers.encoding.PasswordEncoder |
passwordEncoder |
static String |
PROTOCOL_STORE_ARCHIVE |
static String |
PROTOCOL_STORE_SYSTEM |
static String |
PROTOCOL_STORE_USER |
static String |
PROTOCOL_STORE_WORKSPACE |
protected static String |
REGEX_CONTAINS_ALPHA |
protected static String |
REGEX_VALID_DNS_LABEL |
static String |
STORE_BASE_ID_SPACES |
static String |
STORE_BASE_ID_SYSTEM |
static String |
STORE_BASE_ID_USER |
static String |
STORE_BASE_ID_VERSION1 |
static String |
STORE_BASE_ID_VERSION2 |
static String |
TENANT_ATTRIBUTE_DB_URL |
static String |
TENANT_ATTRIBUTE_ENABLED |
static String |
TENANT_ATTRIBUTE_ROOT_CONTENT_STORE_DIR |
protected TenantAdminDAO |
tenantAdminDAO |
protected ContentStore |
tenantFileContentStore |
static String |
TENANTS_ATTRIBUTE_PATH |
protected TransactionService |
transactionService |
| 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(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<Tenant> |
getAllTenants()
Deprecated.
|
String |
getBaseNameUser(String username) |
String |
getCurrentUserDomain() |
String |
getDomainUser(String baseUsername,
String tenantDomain) |
Tenant |
getTenant(String tenantDomain) |
protected String |
getTenantDomain(String tenantDomain)
Do a null check and convert tenant domain to lowercase
|
List<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(ContentStore contentStore) |
protected boolean |
isTenantRoutingContentStore(ContentStore contentStore) |
protected void |
notifyAfterEnableTenant(String tenantDomain)
Call all
TenantDeployers as the system tenant. |
void |
register(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(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(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 TenantDeployer |
tenantDeployer(ContentStore contentStore) |
protected TenantRoutingContentStore |
tenantRoutingContentStore(ContentStore contentStore) |
void |
undeployTenants(TenantDeployer deployer,
org.apache.commons.logging.Log logger) |
void |
unregister(TenantDeployer deployer) |
protected void |
validateTenantName(String tenantDomain) |
protected org.springframework.context.ApplicationContext ctx
protected TransactionService transactionService
protected DictionaryComponent dictionaryComponent
protected TenantAdminDAO tenantAdminDAO
protected net.sf.acegisecurity.providers.encoding.PasswordEncoder passwordEncoder
protected 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(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(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 Tenant getTenant(String tenantDomain)
getTenant in interface TenantAdminServicepublic void deleteTenant(String tenantDomain)
deleteTenant in interface TenantAdminService@Deprecated public List<Tenant> getAllTenants()
getAllTenants in interface TenantAdminService@Deprecated public List<Tenant> getTenants(boolean enabledOnly)
TenantAdminServicegetTenants in interface TenantAdminServiceenabledOnly - true to retrieve only active tenantspublic void deployTenants(TenantDeployer deployer, org.apache.commons.logging.Log logger)
deployTenants in interface TenantAdminServicepublic void undeployTenants(TenantDeployer deployer, org.apache.commons.logging.Log logger)
undeployTenants in interface TenantAdminServicepublic void register(TenantDeployer deployer)
register in interface TenantAdminServicepublic void unregister(TenantDeployer deployer)
unregister in interface TenantAdminServicepublic void register(WorkflowDeployer workflowDeployer)
register in interface TenantAdminServiceprotected TenantRoutingContentStore tenantRoutingContentStore(ContentStore contentStore)
protected boolean isTenantRoutingContentStore(ContentStore contentStore)
protected TenantDeployer tenantDeployer(ContentStore contentStore)
protected boolean isTenantDeployer(ContentStore contentStore)
protected void validateTenantName(String tenantDomain)
MAX_LEN,
REGEX_CONTAINS_ALPHA,
REGEX_VALID_DNS_LABELpublic boolean isEnabled()
isEnabled in interface TenantUserServicepublic String getCurrentUserDomain()
getCurrentUserDomain in interface TenantUserServicepublic String getUserDomain(String username)
getUserDomain in interface TenantUserServicepublic String getBaseNameUser(String username)
getBaseNameUser in interface TenantUserServicepublic String getDomainUser(String baseUsername, String tenantDomain)
getDomainUser in interface TenantUserServiceCopyright © 2005–2021 Alfresco Software. All rights reserved.