Class MultiTAdminServiceImpl

  • All Implemented Interfaces:
    TenantAdminService, org.alfresco.repo.tenant.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.
    • Constructor Detail

      • MultiTAdminServiceImpl

        public MultiTAdminServiceImpl()
    • Method Detail

      • setDictionaryComponent

        public void setDictionaryComponent​(org.alfresco.repo.dictionary.DictionaryComponent dictionaryComponent)
      • setRepoAdminService

        public void setRepoAdminService​(RepoAdminService repoAdminService)
      • setAuthenticationContext

        public void setAuthenticationContext​(AuthenticationContext authenticationContext)
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
      • setTenantService

        public void setTenantService​(MultiTServiceImpl tenantService)
      • setBehaviourFilter

        public void setBehaviourFilter​(BehaviourFilter behaviourFilter)
      • setTenantAdminDAO

        public void setTenantAdminDAO​(TenantAdminDAO tenantAdminDAO)
      • setPasswordEncoder

        public void setPasswordEncoder​(net.sf.acegisecurity.providers.encoding.PasswordEncoder passwordEncoder)
      • setTenantFileContentStore

        public void setTenantFileContentStore​(org.alfresco.repo.content.ContentStore tenantFileContentStore)
      • setWorkflowService

        public void setWorkflowService​(WorkflowService workflowService)
      • setRepositoryExporterService

        public void setRepositoryExporterService​(RepositoryExporterService repositoryExporterService)
      • setWorkflowDeployer

        public void setWorkflowDeployer​(WorkflowDeployer workflowDeployer)
        Deprecated.
        see setWorkflowDeployers
      • setModuleService

        public void setModuleService​(ModuleService moduleService)
      • setThumbnailRegistry

        public void setThumbnailRegistry​(ThumbnailRegistry thumbnailRegistry)
      • setBaseAdminUsername

        public void setBaseAdminUsername​(String baseAdminUsername)
      • setContentRootContainerPath

        public void setContentRootContainerPath​(String contentRootContainerPath)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • exportTenant

        public void exportTenant​(String tenantDomainIn,
                                 File directoryDestination)
        Export tenant - equivalent to the tenant admin running a 'complete repo' export from the Web Client Admin
        Specified by:
        exportTenant in interface TenantAdminService
      • importTenant

        public void importTenant​(String tenantDomainIn,
                                 File directorySource,
                                 String contentRoot)
        Create tenant by restoring from a complete repository export. This is equivalent to a bootstrap import using restore-context.xml.
        Specified by:
        importTenant in interface TenantAdminService
      • notifyAfterEnableTenant

        protected void notifyAfterEnableTenant​(String tenantDomain)
        Call all TenantDeployers as the system tenant.
      • getTenants

        @Deprecated
        public List<org.alfresco.repo.tenant.Tenant> getTenants​(boolean enabledOnly)
        Deprecated.
        Description copied from interface: TenantAdminService
        Retrieve all tenants
        Specified by:
        getTenants in interface TenantAdminService
        Parameters:
        enabledOnly - true to retrieve only active tenants
        Returns:
        tenants, either active or all
      • deployTenants

        public void deployTenants​(org.alfresco.repo.tenant.TenantDeployer deployer,
                                  org.apache.commons.logging.Log logger)
        Specified by:
        deployTenants in interface TenantAdminService
      • undeployTenants

        public void undeployTenants​(org.alfresco.repo.tenant.TenantDeployer deployer,
                                    org.apache.commons.logging.Log logger)
        Specified by:
        undeployTenants in interface TenantAdminService
      • register

        public void register​(org.alfresco.repo.tenant.TenantDeployer deployer)
        Specified by:
        register in interface TenantAdminService
      • unregister

        public void unregister​(org.alfresco.repo.tenant.TenantDeployer deployer)
        Specified by:
        unregister in interface TenantAdminService
      • tenantRoutingContentStore

        protected TenantRoutingContentStore tenantRoutingContentStore​(org.alfresco.repo.content.ContentStore contentStore)
      • isTenantRoutingContentStore

        protected boolean isTenantRoutingContentStore​(org.alfresco.repo.content.ContentStore contentStore)
      • tenantDeployer

        protected org.alfresco.repo.tenant.TenantDeployer tenantDeployer​(org.alfresco.repo.content.ContentStore contentStore)
      • isTenantDeployer

        protected boolean isTenantDeployer​(org.alfresco.repo.content.ContentStore contentStore)
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface org.alfresco.repo.tenant.TenantUserService
      • getCurrentUserDomain

        public String getCurrentUserDomain()
        Specified by:
        getCurrentUserDomain in interface org.alfresco.repo.tenant.TenantUserService
      • getUserDomain

        public String getUserDomain​(String username)
        Specified by:
        getUserDomain in interface org.alfresco.repo.tenant.TenantUserService
      • getBaseNameUser

        public String getBaseNameUser​(String username)
        Specified by:
        getBaseNameUser in interface org.alfresco.repo.tenant.TenantUserService
      • getDomainUser

        public String getDomainUser​(String baseUsername,
                                    String tenantDomain)
        Specified by:
        getDomainUser in interface org.alfresco.repo.tenant.TenantUserService
      • getTenantDomain

        protected String getTenantDomain​(String tenantDomain)
        Do a null check and convert tenant domain to lowercase