Class TenantRepositoryContainer

java.lang.Object
org.springframework.extensions.webscripts.AbstractRuntimeContainer
org.alfresco.repo.web.scripts.RepositoryContainer
org.alfresco.repo.web.scripts.TenantRepositoryContainer
All Implemented Interfaces:
EventListener, 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 TenantDeployer
Tenant-aware Repository (server-tier) container for Web Scripts
Author:
davidc
  • Field Details

    • logger

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

      protected TenantAdminService tenantAdminService
    • transactionService

      protected TransactionService transactionService
  • Constructor Details

    • TenantRepositoryContainer

      public TenantRepositoryContainer()
  • Method Details

    • setWebScriptsRegistryCache

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

      public void setTenantAdminService(TenantAdminService tenantAdminService)
      Parameters:
      tenantAdminService - service to sort out tenant context
    • setTransactionService

      public void setTransactionService(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 TenantDeployer
    • onDisableTenant

      public void onDisableTenant()
      Specified by:
      onDisableTenant in interface TenantDeployer
    • init

      public void init()
      Specified by:
      init in interface TenantDeployer
    • destroy

      public void destroy()
      Specified by:
      destroy in interface TenantDeployer
    • reset

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