mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8369 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
307 lines
12 KiB
XML
307 lines
12 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
|
|
|
<beans>
|
|
|
|
<!-- ===================================== -->
|
|
<!-- Web Client Config Sources -->
|
|
<!-- ===================================== -->
|
|
|
|
<bean id="webClientConfigSource" parent="repoUrlConfigSource">
|
|
<constructor-arg>
|
|
<list>
|
|
<value>classpath:alfresco/web-client-config.xml</value>
|
|
<value>classpath:alfresco/web-client-config-dialogs.xml</value>
|
|
<value>classpath:alfresco/web-client-config-wizards.xml</value>
|
|
<value>classpath:alfresco/web-client-config-properties.xml</value>
|
|
<value>classpath:alfresco/web-client-config-navigation.xml</value>
|
|
<value>classpath:alfresco/web-client-config-wcm.xml</value>
|
|
<value>classpath:alfresco/web-client-config-actions.xml</value>
|
|
<value>classpath:alfresco/web-client-config-forum-actions.xml</value>
|
|
<value>classpath:alfresco/web-client-config-blog-actions.xml</value>
|
|
<value>classpath:alfresco/web-client-config-wcm-actions.xml</value>
|
|
<value>classpath:alfresco/web-client-config-workflow-actions.xml</value>
|
|
<value>classpath:alfresco/web-client-config-project-actions.xml</value>
|
|
<value>classpath:alfresco/extension/web-client-config-custom.xml</value>
|
|
<value>jar:*!/META-INF/web-client-config-custom.xml</value>
|
|
<value>workspace://SpacesStore/${spaces.company_home.childname}/${spaces.dictionary.childname}/app:webclient_extension/cm:web-client-config-custom.xml</value>
|
|
</list>
|
|
</constructor-arg>
|
|
</bean>
|
|
|
|
<bean id="repoUrlConfigSource" class="org.alfresco.repo.config.source.RepoUrlConfigSource" abstract="true">
|
|
<property name="tenantService" ref="tenantService"/>
|
|
<property name="searchService" ref="SearchService"/>
|
|
<property name="contentService" ref="ContentService"/>
|
|
<property name="namespaceService" ref="NamespaceService"/>
|
|
<property name="nodeService" ref="NodeService"/>
|
|
</bean>
|
|
|
|
|
|
<!-- ===================================== -->
|
|
<!-- Web Client Config Caches -->
|
|
<!-- ===================================== -->
|
|
|
|
<!-- The cross-transaction shared cache for in-memory GlobalConfig -->
|
|
|
|
<bean name="globalConfigSharedCache" class="org.alfresco.repo.cache.EhCacheAdapter">
|
|
<property name="cache">
|
|
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean" >
|
|
<property name="cacheManager">
|
|
<ref bean="internalEHCacheManager" />
|
|
</property>
|
|
<property name="cacheName">
|
|
<value>org.alfresco.cache.globalConfigCache</value>
|
|
</property>
|
|
</bean>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The transactional cache for in-memory GlobalConfig -->
|
|
|
|
<bean name="globalConfigCache" class="org.alfresco.repo.cache.TransactionalCache">
|
|
<property name="sharedCache">
|
|
<ref bean="globalConfigSharedCache" />
|
|
</property>
|
|
<property name="cacheManager" >
|
|
<ref bean="transactionalEHCacheManager" />
|
|
</property>
|
|
<property name="name">
|
|
<value>org.alfresco.globalConfigTransactionalCache</value>
|
|
</property>
|
|
<property name="maxCacheSize">
|
|
<value>10</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The cross-transaction shared cache for in-memory Evaluators -->
|
|
|
|
<bean name="evaluatorsSharedCache" class="org.alfresco.repo.cache.EhCacheAdapter">
|
|
<property name="cache">
|
|
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean" >
|
|
<property name="cacheManager">
|
|
<ref bean="internalEHCacheManager" />
|
|
</property>
|
|
<property name="cacheName">
|
|
<value>org.alfresco.cache.evaluatorsCache</value>
|
|
</property>
|
|
</bean>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The transactional cache for in-memory Evaluators -->
|
|
|
|
<bean name="evaluatorsCache" class="org.alfresco.repo.cache.TransactionalCache">
|
|
<property name="sharedCache">
|
|
<ref bean="evaluatorsSharedCache" />
|
|
</property>
|
|
<property name="cacheManager" >
|
|
<ref bean="transactionalEHCacheManager" />
|
|
</property>
|
|
<property name="name">
|
|
<value>org.alfresco.evaluatorsTransactionalCache</value>
|
|
</property>
|
|
<property name="maxCacheSize">
|
|
<value>10</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The cross-transaction shared cache for in-memory SectionsByArea -->
|
|
|
|
<bean name="sectionsByAreaSharedCache" class="org.alfresco.repo.cache.EhCacheAdapter">
|
|
<property name="cache">
|
|
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean" >
|
|
<property name="cacheManager">
|
|
<ref bean="internalEHCacheManager" />
|
|
</property>
|
|
<property name="cacheName">
|
|
<value>org.alfresco.cache.sectionsByAreaCache</value>
|
|
</property>
|
|
</bean>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The transactional cache for in-memory SectionsByArea -->
|
|
|
|
<bean name="sectionsByAreaCache" class="org.alfresco.repo.cache.TransactionalCache">
|
|
<property name="sharedCache">
|
|
<ref bean="sectionsByAreaSharedCache" />
|
|
</property>
|
|
<property name="cacheManager" >
|
|
<ref bean="transactionalEHCacheManager" />
|
|
</property>
|
|
<property name="name">
|
|
<value>org.alfresco.sectionsByAreaTransactionalCache</value>
|
|
</property>
|
|
<property name="maxCacheSize">
|
|
<value>10</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The cross-transaction shared cache for in-memory Sections -->
|
|
|
|
<bean name="sectionsSharedCache" class="org.alfresco.repo.cache.EhCacheAdapter">
|
|
<property name="cache">
|
|
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean" >
|
|
<property name="cacheManager">
|
|
<ref bean="internalEHCacheManager" />
|
|
</property>
|
|
<property name="cacheName">
|
|
<value>org.alfresco.cache.sectionsCache</value>
|
|
</property>
|
|
</bean>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The transactional cache for in-memory Sections -->
|
|
|
|
<bean name="sectionsCache" class="org.alfresco.repo.cache.TransactionalCache">
|
|
<property name="sharedCache">
|
|
<ref bean="sectionsSharedCache" />
|
|
</property>
|
|
<property name="cacheManager" >
|
|
<ref bean="transactionalEHCacheManager" />
|
|
</property>
|
|
<property name="name">
|
|
<value>org.alfresco.sectionsTransactionalCache</value>
|
|
</property>
|
|
<property name="maxCacheSize">
|
|
<value>10</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The cross-transaction shared cache for in-memory ElementReaders -->
|
|
|
|
<bean name="elementReadersSharedCache" class="org.alfresco.repo.cache.EhCacheAdapter">
|
|
<property name="cache">
|
|
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean" >
|
|
<property name="cacheManager">
|
|
<ref bean="internalEHCacheManager" />
|
|
</property>
|
|
<property name="cacheName">
|
|
<value>org.alfresco.cache.elementReadersCache</value>
|
|
</property>
|
|
</bean>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- The transactional cache for in-memory ElementReaders -->
|
|
|
|
<bean name="elementReadersCache" class="org.alfresco.repo.cache.TransactionalCache">
|
|
<property name="sharedCache">
|
|
<ref bean="elementReadersSharedCache" />
|
|
</property>
|
|
<property name="cacheManager" >
|
|
<ref bean="transactionalEHCacheManager" />
|
|
</property>
|
|
<property name="name">
|
|
<value>org.alfresco.elementReadersTransactionalCache</value>
|
|
</property>
|
|
<property name="maxCacheSize">
|
|
<value>10</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- ===================================== -->
|
|
<!-- Web Client Config Service -->
|
|
<!-- ===================================== -->
|
|
|
|
<bean id="webClientConfigService" class="org.alfresco.repo.config.xml.RepoXMLConfigService">
|
|
<constructor-arg>
|
|
<ref bean="webClientConfigSource" />
|
|
</constructor-arg>
|
|
|
|
<property name="tenantDeployerService" ref="tenantAdminService"/>
|
|
<property name="transactionService" ref="transactionComponent"/>
|
|
<property name="authenticationComponent" ref="authenticationComponent"/>
|
|
|
|
<property name="globalConfigCache" ref="globalConfigCache"/>
|
|
<property name="evaluatorsCache" ref="evaluatorsCache"/>
|
|
<property name="sectionsByAreaCache" ref="sectionsByAreaCache"/>
|
|
<property name="sectionsCache" ref="sectionsCache"/>
|
|
<property name="elementReadersCache" ref="elementReadersCache"/>
|
|
|
|
</bean>
|
|
|
|
<bean id="webClientConfigAdminInterpreter" class="org.alfresco.web.config.ConfigAdminInterpreter">
|
|
<property name="transactionService" ref="transactionComponent"/>
|
|
<property name="repoXMLConfigService" ref="webClientConfigService"/>
|
|
<property name="tenantService" ref="tenantService"/>
|
|
</bean>
|
|
|
|
<bean id="webClientConfigAdminInterpreterHelp" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
|
|
<property name="resourceBundles">
|
|
<list>
|
|
<value>alfresco.messages.webclient-config-admin-interpreter-help</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- NOTE: This references a bean in the repository Spring configuration -->
|
|
<bean id="dataDictionary" class="org.alfresco.web.bean.repository.DataDictionary">
|
|
<constructor-arg>
|
|
<ref bean="DictionaryService" />
|
|
</constructor-arg>
|
|
</bean>
|
|
|
|
<!-- NOTE: This references a bean in the repository Spring configuration -->
|
|
<bean id="FormsService" class="org.alfresco.web.forms.FormsService">
|
|
<constructor-arg>
|
|
<ref bean="ContentService" />
|
|
</constructor-arg>
|
|
<constructor-arg>
|
|
<ref bean="NodeService" />
|
|
</constructor-arg>
|
|
<constructor-arg>
|
|
<ref bean="NamespaceService" />
|
|
</constructor-arg>
|
|
<constructor-arg>
|
|
<ref bean="SearchService" />
|
|
</constructor-arg>
|
|
<constructor-arg>
|
|
<ref bean="policyComponent" />
|
|
</constructor-arg>
|
|
</bean>
|
|
|
|
<!-- NOTE: This references a bean in the repository Spring configuration -->
|
|
<bean id="Schema2XFormsProperties" class="org.alfresco.web.forms.xforms.Schema2XFormsProperties">
|
|
<constructor-arg>
|
|
<ref bean="ContentService" />
|
|
</constructor-arg>
|
|
<constructor-arg>
|
|
<ref bean="NamespaceService" />
|
|
</constructor-arg>
|
|
<constructor-arg>
|
|
<ref bean="NodeService" />
|
|
</constructor-arg>
|
|
<constructor-arg>
|
|
<ref bean="SearchService" />
|
|
</constructor-arg>
|
|
<property name="locations">
|
|
<list>
|
|
<!-- TODO currently WCM form string will override form string, which may not be desired -->
|
|
<value>alfresco:/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.wcm_content_forms.childname}/${form.name}/cm:strings</value>
|
|
<value>alfresco:/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.wcm_content_forms.childname}/cm:strings</value>
|
|
|
|
<value>alfresco:/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.content_forms.childname}/${form.name}/cm:strings</value>
|
|
<value>alfresco:/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.content_forms.childname}/cm:strings</value>
|
|
|
|
<value>classpath:alfresco/messages/webclient</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Blog Integration Action Listeners -->
|
|
<bean id="BlogDetailsActionListener" class="org.alfresco.web.bean.actions.blogIntegration.BlogDetailsActionListener">
|
|
<property name="serviceRegistry">
|
|
<ref bean="ServiceRegistry"/>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="BlogActionListener" class="org.alfresco.web.bean.actions.blogIntegration.BlogActionListener">
|
|
<property name="serviceRegistry" ref="ServiceRegistry"/>
|
|
<property name="blogIntegrationService" ref="BlogIntegrationService"/>
|
|
</bean>
|
|
|
|
</beans>
|