Class TenantRepositoryContainer

  • All Implemented Interfaces:
    EventListener, org.alfresco.repo.tenant.TenantDeployer, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.springframework.extensions.webscripts.Container, org.springframework.extensions.webscripts.RuntimeContainer
    Direct Known Subclasses:
    PublicApiRepositoryContainer

    public class TenantRepositoryContainer
    extends RepositoryContainer
    implements org.alfresco.repo.tenant.TenantDeployer
    Tenant-aware Repository (server-tier) container for Web Scripts
    Author:
    davidc
    • Field Detail

      • logger

        protected static final org.apache.commons.logging.Log logger
      • tenantAdminService

        protected org.alfresco.repo.tenant.TenantAdminService tenantAdminService
      • transactionService

        protected org.alfresco.service.transaction.TransactionService transactionService
    • Constructor Detail

      • TenantRepositoryContainer

        public TenantRepositoryContainer()
    • Method Detail

      • setWebScriptsRegistryCache

        public void setWebScriptsRegistryCache​(org.alfresco.repo.cache.AsynchronouslyRefreshedCache<org.springframework.extensions.webscripts.Registry> registryCache)
        Parameters:
        registryCache - asynchronously maintained cache for script registries
      • setTenantAdminService

        public void setTenantAdminService​(org.alfresco.repo.tenant.TenantAdminService tenantAdminService)
        Parameters:
        tenantAdminService - service to sort out tenant context
      • setTransactionService

        public void setTransactionService​(org.alfresco.service.transaction.TransactionService transactionService)
        Overrides:
        setTransactionService in class RepositoryContainer
        Parameters:
        transactionService - service to give transactions when reading from the container
      • getRegistry

        public org.springframework.extensions.webscripts.Registry getRegistry()
        Specified by:
        getRegistry in interface org.springframework.extensions.webscripts.Container
        Overrides:
        getRegistry in class org.springframework.extensions.webscripts.AbstractRuntimeContainer
      • onEnableTenant

        public void onEnableTenant()
        Specified by:
        onEnableTenant in interface org.alfresco.repo.tenant.TenantDeployer
      • onDisableTenant

        public void onDisableTenant()
        Specified by:
        onDisableTenant in interface org.alfresco.repo.tenant.TenantDeployer
      • init

        public void init()
        Specified by:
        init in interface org.alfresco.repo.tenant.TenantDeployer
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.alfresco.repo.tenant.TenantDeployer
      • reset

        public void reset()
        Specified by:
        reset in interface org.springframework.extensions.webscripts.Container
        Overrides:
        reset in class RepositoryContainer