Package org.alfresco.repo.tenant
Class MultiTAdminServiceImpl
java.lang.Object
org.alfresco.repo.tenant.MultiTAdminServiceImpl
- All Implemented Interfaces:
TenantAdminService,TenantUserService,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class MultiTAdminServiceImpl
extends Object
implements TenantAdminService, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
MT Admin Service Implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected DictionaryComponentprotected static final intprotected net.sf.acegisecurity.providers.encoding.PasswordEncoderstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected TenantAdminDAOprotected ContentStorestatic final Stringprotected TransactionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreateTenant(String tenantDomain, char[] tenantAdminRawPassword) voidcreateTenant(String tenantDomain, char[] tenantAdminRawPassword, String contentRoot) voidcreateTenant(String tenantDomainIn, char[] tenantAdminRawPassword, String contentRootPath, String dbUrl) voiddeleteTenant(String tenantDomain) voiddeployTenants(TenantDeployer deployer, org.apache.commons.logging.Log logger) voiddisableTenant(String tenantDomain) voidenableTenant(String tenantDomain) booleanexistsTenant(String tenantDomain) voidexportTenant(String tenantDomainIn, File directoryDestination) Export tenant - equivalent to the tenant admin running a 'complete repo' export from the Web Client AdminDeprecated.getBaseNameUser(String username) getDomainUser(String baseUsername, String tenantDomain) protected StringgetTenantDomain(String tenantDomain) Do a null check and convert tenant domain to lowercasegetTenants(boolean enabledOnly) Deprecated.getUserDomain(String username) voidimportTenant(String tenantDomainIn, File directorySource, String contentRoot) Create tenant by restoring from a complete repository export.booleanbooleanisEnabledTenant(String tenantDomain) protected booleanisTenantDeployer(ContentStore contentStore) protected booleanisTenantRoutingContentStore(ContentStore contentStore) protected voidnotifyAfterEnableTenant(String tenantDomain) Call allTenantDeployersas the system tenant.voidregister(TenantDeployer deployer) voidregister(WorkflowDeployer workflowDeployer) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetAuthenticationContext(AuthenticationContext authenticationContext) voidsetBaseAdminUsername(String baseAdminUsername) voidsetBehaviourFilter(BehaviourFilter behaviourFilter) voidsetContentRootContainerPath(String contentRootContainerPath) voidsetDictionaryComponent(DictionaryComponent dictionaryComponent) voidsetModuleService(ModuleService moduleService) voidsetNodeService(DbNodeServiceImpl dbNodeService) voidsetPasswordEncoder(net.sf.acegisecurity.providers.encoding.PasswordEncoder passwordEncoder) voidsetRepoAdminService(RepoAdminService repoAdminService) voidsetRepositoryExporterService(RepositoryExporterService repositoryExporterService) voidsetTenantAdminDAO(TenantAdminDAO tenantAdminDAO) voidsetTenantFileContentStore(ContentStore tenantFileContentStore) voidvoidsetTenantService(MultiTServiceImpl tenantService) voidsetThumbnailRegistry(ThumbnailRegistry thumbnailRegistry) voidsetTransactionService(TransactionService transactionService) voidsetWorkflowDeployer(WorkflowDeployer workflowDeployer) Deprecated.see setWorkflowDeployersvoidsetWorkflowService(WorkflowService workflowService) voidvoidprotected TenantDeployertenantDeployer(ContentStore contentStore) protected TenantRoutingContentStoretenantRoutingContentStore(ContentStore contentStore) voidundeployTenants(TenantDeployer deployer, org.apache.commons.logging.Log logger) voidunregister(TenantDeployer deployer) protected voidvalidateTenantName(String tenantDomain)
-
Field Details
-
ctx
protected org.springframework.context.ApplicationContext ctx -
transactionService
-
dictionaryComponent
-
tenantAdminDAO
-
passwordEncoder
protected net.sf.acegisecurity.providers.encoding.PasswordEncoder passwordEncoder -
tenantFileContentStore
-
REGEX_VALID_DNS_LABEL
- See Also:
-
REGEX_CONTAINS_ALPHA
- See Also:
-
MAX_LEN
protected static final int MAX_LEN- See Also:
-
PROTOCOL_STORE_USER
- See Also:
-
PROTOCOL_STORE_WORKSPACE
- See Also:
-
PROTOCOL_STORE_SYSTEM
- See Also:
-
PROTOCOL_STORE_ARCHIVE
- See Also:
-
STORE_BASE_ID_USER
- See Also:
-
STORE_BASE_ID_SYSTEM
- See Also:
-
STORE_BASE_ID_VERSION1
- See Also:
-
STORE_BASE_ID_VERSION2
- See Also:
-
STORE_BASE_ID_SPACES
- See Also:
-
TENANTS_ATTRIBUTE_PATH
- See Also:
-
TENANT_ATTRIBUTE_ENABLED
- See Also:
-
TENANT_ATTRIBUTE_ROOT_CONTENT_STORE_DIR
- See Also:
-
TENANT_ATTRIBUTE_DB_URL
- See Also:
-
-
Constructor Details
-
MultiTAdminServiceImpl
public MultiTAdminServiceImpl()
-
-
Method Details
-
setNodeService
-
setDictionaryComponent
-
setRepoAdminService
-
setAuthenticationContext
-
setTransactionService
-
setTenantService
-
setBehaviourFilter
-
setTenantAdminDAO
-
setPasswordEncoder
public void setPasswordEncoder(net.sf.acegisecurity.providers.encoding.PasswordEncoder passwordEncoder) -
setTenantFileContentStore
-
setWorkflowService
-
setRepositoryExporterService
-
setWorkflowDeployer
Deprecated.see setWorkflowDeployers -
setModuleService
-
setThumbnailRegistry
-
setBaseAdminUsername
-
setTenantRoutingDataSource
-
setContentRootContainerPath
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
startTenants
public void startTenants()- Specified by:
startTenantsin interfaceTenantAdminService
-
stopTenants
public void stopTenants()- Specified by:
stopTenantsin interfaceTenantAdminService
-
createTenant
- Specified by:
createTenantin interfaceTenantAdminService
-
createTenant
- Specified by:
createTenantin interfaceTenantAdminService
-
createTenant
public void createTenant(String tenantDomainIn, char[] tenantAdminRawPassword, String contentRootPath, String dbUrl) - Specified by:
createTenantin interfaceTenantAdminService
-
exportTenant
Export tenant - equivalent to the tenant admin running a 'complete repo' export from the Web Client Admin- Specified by:
exportTenantin interfaceTenantAdminService
-
importTenant
Create tenant by restoring from a complete repository export. This is equivalent to a bootstrap import using restore-context.xml.- Specified by:
importTenantin interfaceTenantAdminService
-
existsTenant
- Specified by:
existsTenantin interfaceTenantAdminService
-
enableTenant
- Specified by:
enableTenantin interfaceTenantAdminService
-
notifyAfterEnableTenant
Call allTenantDeployersas the system tenant. -
disableTenant
- Specified by:
disableTenantin interfaceTenantAdminService
-
isEnabledTenant
- Specified by:
isEnabledTenantin interfaceTenantAdminService
-
getTenant
- Specified by:
getTenantin interfaceTenantAdminService
-
deleteTenant
- Specified by:
deleteTenantin interfaceTenantAdminService
-
getAllTenants
Deprecated.- Specified by:
getAllTenantsin interfaceTenantAdminService- Returns:
- a list of all tenants regardless of state
-
getTenants
Deprecated.Description copied from interface:TenantAdminServiceRetrieve all tenants- Specified by:
getTenantsin interfaceTenantAdminService- Parameters:
enabledOnly- true to retrieve only active tenants- Returns:
- tenants, either active or all
-
deployTenants
- Specified by:
deployTenantsin interfaceTenantAdminService
-
undeployTenants
- Specified by:
undeployTenantsin interfaceTenantAdminService
-
register
- Specified by:
registerin interfaceTenantAdminService
-
unregister
- Specified by:
unregisterin interfaceTenantAdminService
-
register
- Specified by:
registerin interfaceTenantAdminService
-
tenantRoutingContentStore
-
isTenantRoutingContentStore
-
tenantDeployer
-
isTenantDeployer
-
validateTenantName
- See Also:
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceTenantUserService
-
getCurrentUserDomain
- Specified by:
getCurrentUserDomainin interfaceTenantUserService
-
getUserDomain
- Specified by:
getUserDomainin interfaceTenantUserService
-
getBaseNameUser
- Specified by:
getBaseNameUserin interfaceTenantUserService
-
getDomainUser
- Specified by:
getDomainUserin interfaceTenantUserService
-
getTenantDomain
Do a null check and convert tenant domain to lowercase
-