public class RepoXMLConfigService
extends org.springframework.extensions.config.xml.XMLConfigService
implements org.alfresco.repo.tenant.TenantDeployer
configDeployers, configSource
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 and Description |
---|
RepoXMLConfigService(org.springframework.extensions.config.ConfigSource configSource)
Constructs an XMLConfigService using the given config source
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected Map<String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> |
getElementReaders() |
protected Map<String,org.springframework.extensions.config.evaluator.Evaluator> |
getEvaluators() |
protected org.springframework.extensions.config.ConfigImpl |
getGlobalConfigImpl() |
ConfigDataCache.ConfigData |
getRepoConfig(String tenantDomain)
Get the repository configuration data for a given tenant.
|
List<org.springframework.extensions.config.ConfigSection> |
getSections() |
Map<String,List<org.springframework.extensions.config.ConfigSection>> |
getSectionsByArea() |
List<org.springframework.extensions.config.ConfigDeployment> |
initConfig() |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
void |
onDisableTenant() |
void |
onEnableTenant() |
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 |
removeElementReaders() |
protected void |
removeEvaluators() |
protected void |
removeGlobalConfig() |
protected void |
removeSections() |
protected void |
removeSectionsByArea() |
void |
reset()
Resets the config values for the current tenant
|
void |
setConfigDataCache(ConfigDataCache configDataCache)
Set the asynchronously-controlled cache.
|
void |
setTransactionService(TransactionService transactionService) |
parse, parseFragment, setProperties, setSystemPropertiesModeName
addConfigSection, addConfigSection, addDeployer, addEvaluator, appendConfig, createEvaluator, getConfig, getConfig, getConfig, getEvaluator, getGlobalConfig, init, parse, processSection
getApplicationContext, onApplicationEvent, setApplicationContext
public RepoXMLConfigService(org.springframework.extensions.config.ConfigSource configSource)
public void setTransactionService(TransactionService transactionService)
public void setConfigDataCache(ConfigDataCache configDataCache)
public List<org.springframework.extensions.config.ConfigDeployment> initConfig()
initConfig
in class org.springframework.extensions.config.xml.XMLConfigService
public ConfigDataCache.ConfigData getRepoConfig(String tenantDomain)
tenantDomain
- the current tenant domainpublic void destroy()
destroy
in interface org.alfresco.repo.tenant.TenantDeployer
destroy
in class org.springframework.extensions.config.xml.XMLConfigService
public void reset()
reset
in interface org.springframework.extensions.config.ConfigService
reset
in class org.springframework.extensions.config.BaseConfigService
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.config.BaseConfigService
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.config.BaseConfigService
public void onEnableTenant()
onEnableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
public void onDisableTenant()
onDisableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
protected org.springframework.extensions.config.ConfigImpl getGlobalConfigImpl()
getGlobalConfigImpl
in class org.springframework.extensions.config.BaseConfigService
protected void putGlobalConfig(org.springframework.extensions.config.ConfigImpl globalConfig)
putGlobalConfig
in class org.springframework.extensions.config.BaseConfigService
protected void removeGlobalConfig()
removeGlobalConfig
in class org.springframework.extensions.config.BaseConfigService
protected Map<String,org.springframework.extensions.config.evaluator.Evaluator> getEvaluators()
getEvaluators
in class org.springframework.extensions.config.BaseConfigService
protected void putEvaluators(Map<String,org.springframework.extensions.config.evaluator.Evaluator> evaluators)
putEvaluators
in class org.springframework.extensions.config.BaseConfigService
protected void removeEvaluators()
removeEvaluators
in class org.springframework.extensions.config.BaseConfigService
public Map<String,List<org.springframework.extensions.config.ConfigSection>> getSectionsByArea()
getSectionsByArea
in class org.springframework.extensions.config.BaseConfigService
protected void putSectionsByArea(Map<String,List<org.springframework.extensions.config.ConfigSection>> sectionsByArea)
putSectionsByArea
in class org.springframework.extensions.config.BaseConfigService
protected void removeSectionsByArea()
removeSectionsByArea
in class org.springframework.extensions.config.BaseConfigService
public List<org.springframework.extensions.config.ConfigSection> getSections()
getSections
in class org.springframework.extensions.config.BaseConfigService
protected void putSections(List<org.springframework.extensions.config.ConfigSection> sections)
putSections
in class org.springframework.extensions.config.BaseConfigService
protected void removeSections()
removeSections
in class org.springframework.extensions.config.BaseConfigService
protected Map<String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> getElementReaders()
getElementReaders
in class org.springframework.extensions.config.xml.XMLConfigService
protected void putElementReaders(Map<String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> elementReaders)
putElementReaders
in class org.springframework.extensions.config.xml.XMLConfigService
protected void removeElementReaders()
removeElementReaders
in class org.springframework.extensions.config.xml.XMLConfigService
Copyright © 2005–2017 Alfresco Software. All rights reserved.