Package org.alfresco.repo.config.xml
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:
java.util.EventListener,org.alfresco.repo.tenant.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 org.alfresco.repo.tenant.TenantDeployerXML-based configuration service which can optionally read config from the Repository
-
-
Field Summary
-
Fields inherited from class org.springframework.extensions.config.BaseConfigService
configDeployers, configSource
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected java.util.Map<java.lang.String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader>getElementReaders()protected java.util.Map<java.lang.String,org.springframework.extensions.config.evaluator.Evaluator>getEvaluators()protected org.springframework.extensions.config.ConfigImplgetGlobalConfigImpl()ConfigDataCache.ConfigDatagetRepoConfig(java.lang.String tenantDomain)Get the repository configuration data for a given tenant.java.util.List<org.springframework.extensions.config.ConfigSection>getSections()java.util.Map<java.lang.String,java.util.List<org.springframework.extensions.config.ConfigSection>>getSectionsByArea()java.util.List<org.springframework.extensions.config.ConfigDeployment>initConfig()protected voidonBootstrap(org.springframework.context.ApplicationEvent event)voidonDisableTenant()voidonEnableTenant()protected voidonShutdown(org.springframework.context.ApplicationEvent event)protected voidputElementReaders(java.util.Map<java.lang.String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> elementReaders)protected voidputEvaluators(java.util.Map<java.lang.String,org.springframework.extensions.config.evaluator.Evaluator> evaluators)protected voidputGlobalConfig(org.springframework.extensions.config.ConfigImpl globalConfig)protected voidputSections(java.util.List<org.springframework.extensions.config.ConfigSection> sections)protected voidputSectionsByArea(java.util.Map<java.lang.String,java.util.List<org.springframework.extensions.config.ConfigSection>> sectionsByArea)protected voidremoveElementReaders()protected voidremoveEvaluators()protected voidremoveGlobalConfig()protected voidremoveSections()protected voidremoveSectionsByArea()voidreset()Resets the config values for the current tenantvoidsetConfigDataCache(ConfigDataCache configDataCache)Set the asynchronously-controlled cache.voidsetTransactionService(TransactionService transactionService)-
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
-
-
-
-
Method Detail
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
-
setConfigDataCache
public void setConfigDataCache(ConfigDataCache configDataCache)
Set the asynchronously-controlled cache.
-
initConfig
public java.util.List<org.springframework.extensions.config.ConfigDeployment> initConfig()
- Overrides:
initConfigin classorg.springframework.extensions.config.xml.XMLConfigService
-
getRepoConfig
public ConfigDataCache.ConfigData getRepoConfig(java.lang.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:
destroyin interfaceorg.alfresco.repo.tenant.TenantDeployer- Overrides:
destroyin classorg.springframework.extensions.config.xml.XMLConfigService
-
reset
public void reset()
Resets the config values for the current tenant- Specified by:
resetin interfaceorg.springframework.extensions.config.ConfigService- Overrides:
resetin classorg.springframework.extensions.config.BaseConfigService
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
- Overrides:
onBootstrapin classorg.springframework.extensions.config.BaseConfigService
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event)
- Overrides:
onShutdownin classorg.springframework.extensions.config.BaseConfigService
-
onEnableTenant
public void onEnableTenant()
- Specified by:
onEnableTenantin interfaceorg.alfresco.repo.tenant.TenantDeployer
-
onDisableTenant
public void onDisableTenant()
- Specified by:
onDisableTenantin interfaceorg.alfresco.repo.tenant.TenantDeployer
-
getGlobalConfigImpl
protected org.springframework.extensions.config.ConfigImpl getGlobalConfigImpl()
- Overrides:
getGlobalConfigImplin classorg.springframework.extensions.config.BaseConfigService
-
putGlobalConfig
protected void putGlobalConfig(org.springframework.extensions.config.ConfigImpl globalConfig)
- Overrides:
putGlobalConfigin classorg.springframework.extensions.config.BaseConfigService
-
removeGlobalConfig
protected void removeGlobalConfig()
- Overrides:
removeGlobalConfigin classorg.springframework.extensions.config.BaseConfigService
-
getEvaluators
protected java.util.Map<java.lang.String,org.springframework.extensions.config.evaluator.Evaluator> getEvaluators()
- Overrides:
getEvaluatorsin classorg.springframework.extensions.config.BaseConfigService
-
putEvaluators
protected void putEvaluators(java.util.Map<java.lang.String,org.springframework.extensions.config.evaluator.Evaluator> evaluators)
- Overrides:
putEvaluatorsin classorg.springframework.extensions.config.BaseConfigService
-
removeEvaluators
protected void removeEvaluators()
- Overrides:
removeEvaluatorsin classorg.springframework.extensions.config.BaseConfigService
-
getSectionsByArea
public java.util.Map<java.lang.String,java.util.List<org.springframework.extensions.config.ConfigSection>> getSectionsByArea()
- Overrides:
getSectionsByAreain classorg.springframework.extensions.config.BaseConfigService
-
putSectionsByArea
protected void putSectionsByArea(java.util.Map<java.lang.String,java.util.List<org.springframework.extensions.config.ConfigSection>> sectionsByArea)
- Overrides:
putSectionsByAreain classorg.springframework.extensions.config.BaseConfigService
-
removeSectionsByArea
protected void removeSectionsByArea()
- Overrides:
removeSectionsByAreain classorg.springframework.extensions.config.BaseConfigService
-
getSections
public java.util.List<org.springframework.extensions.config.ConfigSection> getSections()
- Overrides:
getSectionsin classorg.springframework.extensions.config.BaseConfigService
-
putSections
protected void putSections(java.util.List<org.springframework.extensions.config.ConfigSection> sections)
- Overrides:
putSectionsin classorg.springframework.extensions.config.BaseConfigService
-
removeSections
protected void removeSections()
- Overrides:
removeSectionsin classorg.springframework.extensions.config.BaseConfigService
-
getElementReaders
protected java.util.Map<java.lang.String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> getElementReaders()
- Overrides:
getElementReadersin classorg.springframework.extensions.config.xml.XMLConfigService
-
putElementReaders
protected void putElementReaders(java.util.Map<java.lang.String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> elementReaders)
- Overrides:
putElementReadersin classorg.springframework.extensions.config.xml.XMLConfigService
-
removeElementReaders
protected void removeElementReaders()
- Overrides:
removeElementReadersin classorg.springframework.extensions.config.xml.XMLConfigService
-
-