Class RepoXMLConfigService

java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.springframework.extensions.config.BaseConfigService
org.springframework.extensions.config.xml.XMLConfigService
org.alfresco.repo.config.xml.RepoXMLConfigService
All Implemented Interfaces:
EventListener, TenantDeployer, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.springframework.extensions.config.ConfigService, org.springframework.extensions.config.xml.XMLConfigConstants

public class RepoXMLConfigService extends org.springframework.extensions.config.xml.XMLConfigService implements TenantDeployer
XML-based configuration service which can optionally read config from the Repository
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.extensions.config.xml.XMLConfigService

    org.springframework.extensions.config.xml.XMLConfigService.PlaceholderResolvingStringValueResolver, org.springframework.extensions.config.xml.XMLConfigService.PropertyConfigurer
  • Field Summary

    Fields inherited from class org.springframework.extensions.config.BaseConfigService

    configDeployers, configSource

    Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean

    log

    Fields inherited from interface org.springframework.extensions.config.xml.XMLConfigConstants

    ATTR_CLASS, ATTR_CONDITION, ATTR_ELEMENT_NAME, ATTR_EVALUATOR, ATTR_ID, ATTR_NAME, ATTR_REPLACE, ATTR_VALUE, ELEMENT_CONFIG, ELEMENT_ELEMENT_READER, ELEMENT_ELEMENT_READERS, ELEMENT_EVALUATOR, ELEMENT_EVALUATORS, ELEMENT_PLUG_INS
  • Constructor Summary

    Constructors
    Constructor
    Description
    RepoXMLConfigService(org.springframework.extensions.config.ConfigSource configSource)
    Constructs an XMLConfigService using the given config source
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected Map<String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader>
     
    protected Map<String,org.springframework.extensions.config.evaluator.Evaluator>
     
    protected org.springframework.extensions.config.ConfigImpl
     
    getRepoConfig(String tenantDomain)
    Get the repository configuration data for a given tenant.
    List<org.springframework.extensions.config.ConfigSection>
     
    Map<String,List<org.springframework.extensions.config.ConfigSection>>
     
    List<org.springframework.extensions.config.ConfigDeployment>
     
    protected void
    onBootstrap(org.springframework.context.ApplicationEvent event)
     
    void
     
    void
     
    protected void
    onShutdown(org.springframework.context.ApplicationEvent event)
     
    protected void
    putElementReaders(Map<String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> elementReaders)
     
    protected void
    putEvaluators(Map<String,org.springframework.extensions.config.evaluator.Evaluator> evaluators)
     
    protected void
    putGlobalConfig(org.springframework.extensions.config.ConfigImpl globalConfig)
     
    protected void
    putSections(List<org.springframework.extensions.config.ConfigSection> sections)
     
    protected void
    putSectionsByArea(Map<String,List<org.springframework.extensions.config.ConfigSection>> sectionsByArea)
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    void
    Resets the config values for the current tenant
    void
    Set the asynchronously-controlled cache.
    void
     

    Methods inherited from class org.springframework.extensions.config.xml.XMLConfigService

    parse, parseFragment, setProperties, setSystemPropertiesModeName

    Methods inherited from class org.springframework.extensions.config.BaseConfigService

    addConfigSection, addConfigSection, addDeployer, addEvaluator, appendConfig, createEvaluator, getConfig, getConfig, getConfig, getEvaluator, getGlobalConfig, init, parse, processSection

    Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean

    getApplicationContext, onApplicationEvent, setApplicationContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.ApplicationListener

    supportsAsyncExecution

    Methods inherited from interface org.alfresco.repo.tenant.TenantDeployer

    init
  • Constructor Details

    • RepoXMLConfigService

      public RepoXMLConfigService(org.springframework.extensions.config.ConfigSource configSource)
      Constructs an XMLConfigService using the given config source
  • Method Details

    • setTransactionService

      public void setTransactionService(TransactionService transactionService)
    • setConfigDataCache

      public void setConfigDataCache(ConfigDataCache configDataCache)
      Set the asynchronously-controlled cache.
    • initConfig

      public List<org.springframework.extensions.config.ConfigDeployment> initConfig()
      Overrides:
      initConfig in class org.springframework.extensions.config.xml.XMLConfigService
    • getRepoConfig

      public ConfigDataCache.ConfigData getRepoConfig(String tenantDomain)
      Get the repository configuration data for a given tenant. This does the low-level initialization of the configuration and does not do any caching.
      Parameters:
      tenantDomain - the current tenant domain
      Returns:
      return the repository configuration for the given tenant (never null)
    • destroy

      public void destroy()
      Specified by:
      destroy in interface TenantDeployer
      Overrides:
      destroy in class org.springframework.extensions.config.xml.XMLConfigService
    • reset

      public void reset()
      Resets the config values for the current tenant
      Specified by:
      reset in interface org.springframework.extensions.config.ConfigService
      Overrides:
      reset in class org.springframework.extensions.config.BaseConfigService
    • onBootstrap

      protected void onBootstrap(org.springframework.context.ApplicationEvent event)
      Overrides:
      onBootstrap in class org.springframework.extensions.config.BaseConfigService
    • onShutdown

      protected void onShutdown(org.springframework.context.ApplicationEvent event)
      Overrides:
      onShutdown in class org.springframework.extensions.config.BaseConfigService
    • onEnableTenant

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

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

      protected org.springframework.extensions.config.ConfigImpl getGlobalConfigImpl()
      Overrides:
      getGlobalConfigImpl in class org.springframework.extensions.config.BaseConfigService
    • putGlobalConfig

      protected void putGlobalConfig(org.springframework.extensions.config.ConfigImpl globalConfig)
      Overrides:
      putGlobalConfig in class org.springframework.extensions.config.BaseConfigService
    • removeGlobalConfig

      protected void removeGlobalConfig()
      Overrides:
      removeGlobalConfig in class org.springframework.extensions.config.BaseConfigService
    • getEvaluators

      protected Map<String,org.springframework.extensions.config.evaluator.Evaluator> getEvaluators()
      Overrides:
      getEvaluators in class org.springframework.extensions.config.BaseConfigService
    • putEvaluators

      protected void putEvaluators(Map<String,org.springframework.extensions.config.evaluator.Evaluator> evaluators)
      Overrides:
      putEvaluators in class org.springframework.extensions.config.BaseConfigService
    • removeEvaluators

      protected void removeEvaluators()
      Overrides:
      removeEvaluators in class org.springframework.extensions.config.BaseConfigService
    • getSectionsByArea

      public Map<String,List<org.springframework.extensions.config.ConfigSection>> getSectionsByArea()
      Overrides:
      getSectionsByArea in class org.springframework.extensions.config.BaseConfigService
    • putSectionsByArea

      protected void putSectionsByArea(Map<String,List<org.springframework.extensions.config.ConfigSection>> sectionsByArea)
      Overrides:
      putSectionsByArea in class org.springframework.extensions.config.BaseConfigService
    • removeSectionsByArea

      protected void removeSectionsByArea()
      Overrides:
      removeSectionsByArea in class org.springframework.extensions.config.BaseConfigService
    • getSections

      public List<org.springframework.extensions.config.ConfigSection> getSections()
      Overrides:
      getSections in class org.springframework.extensions.config.BaseConfigService
    • putSections

      protected void putSections(List<org.springframework.extensions.config.ConfigSection> sections)
      Overrides:
      putSections in class org.springframework.extensions.config.BaseConfigService
    • removeSections

      protected void removeSections()
      Overrides:
      removeSections in class org.springframework.extensions.config.BaseConfigService
    • getElementReaders

      protected Map<String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> getElementReaders()
      Overrides:
      getElementReaders in class org.springframework.extensions.config.xml.XMLConfigService
    • putElementReaders

      protected void putElementReaders(Map<String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> elementReaders)
      Overrides:
      putElementReaders in class org.springframework.extensions.config.xml.XMLConfigService
    • removeElementReaders

      protected void removeElementReaders()
      Overrides:
      removeElementReaders in class org.springframework.extensions.config.xml.XMLConfigService