Files
alfresco-community-repo/config/alfresco/web-client-application-context.xml
Matt Ward 32f4587eea Merged BRANCHES/DEV/mward/clustering_p1 to HEAD:
41454: ALF-15881: Disabling clustering in community
   41500: ALF-15883: Move configuration files
   41503: ALF-15884: Move cluster package to enterprise repository project
   41504: ALF-15884: Move cluster package to enterprise repository project
   41519: ALF-15886: References/definition for "hazelcastInstanceFactory" must be in enterprise repo only
   41523: ALF-15886: References/definition for "hazelcastInstanceFactory" must be in enterprise repo only
   41525: ALF-15886: References/definition for "hazelcastInstanceFactory" must be in enterprise repo only
   41527: ALF-15886: References/definition for "hazelcastInstanceFactory" must be in enterprise repo only
   41530: ALF-15886: remove import for class no longer in project.
   41532: ALF-15887: LockStoreFactoryImpl must be separated into community and enterprise versions
   41535: ALF-15883: Move configuration files
   41561: ALF-15886: factory class to create key fileserver config beans.
   41578: ALF-15888: separate transactional and shared cache bean definitions.
   41623: ALF-15888: first pass at DefaultSimpleCache implementation.
   41646: ALF-15888: move ehcache-default.xml
   41651: ALF-15888: update javadoc to reflect changes
   41762: ALF-15888: improve cache test to prove that null values are stored correctly.
   41812: ALF-15888: added new cache provider for use by hibernate: DefaultCacheProvider.
   41830: ALF-15888: make DefaultSimpleCache BeanNameAware to help with debugging etc.
   41831: ALF-15888: missing file from commit - adds enterprise override capability for hibernate-cfg.properties
   41850: ALF-15888: move tickets cache to cache-context.xml
   41857: ALF-15888: make RemoteAlfrescoTicketServiceImpl cache implementation agnostic.
   41866: ALF-15888: extract caches from fileservers and web-client and provide enterprise overrides
   41881: ALF-15888: replace use of EhCacheAdapter with DefaultSimpleCache and SimpleCache interface.
   41884: ALF-15888: added DefaultSimpleCache configuration to CachingContentStore sample XML.
   41885: ALF-15888: move EhCacheAdapter to new package.
   41886: ALF-15888: correct absolute class names in config for EhCacheAdapter.
   41892: ALF-15888: fix CachingContentStore tests.
   41897: ALF-15888: move CacheTest and config to new package.
   41898: ALF-15888: remove redundant directory
   41899: ALF-15889: move EhCacheManagerFactoryBean to new package.
   41902: ALF-15889: moved EhCacheTracerJob to new package.
   41913: ALF-15889: move InternalEhCacheManagerFactoryBean to new package.
   41916: ALF-15889: move AlfrescoCacheManagerPeerProviderFactory to new package.
   41937: ALF-15889: decouple TransactionalCache from EhCache
   41966: ALF-15889: decouple RetryingTransactionHelper from ehcache.
   41989: ALF-15889: added ContextListener test.
   41996: ALF-15889: moved cache test to its own class.
   41998: ALF-15889: move ehcache jars.
   41999: ALF-15889: modify .classpath to reflect jar moves.
   42037: ALF-15889: update poms to reflect lib moves.
   42038: ALF-15889: add eclipse library reference to enterprise projects.
   42093: ALF-15916: moved core properties to enterprise
   42114: ALF-15888: externalized cache sizes to repository.properties.
   42127: ALF-16136: move re-indexing configuration
   42140: ALF-16136: move cluster check property.
   42186: ALF-15889: removing seemingly redundant test config file.
   42187: ALF-15888: tidy up config changes.
   42189: ALF-15888: cleanup config
   42190: ALF-15888: config cleanup
   42191: ALF-15888: config cleanup
   42198: ALF-16136: restored lost property



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@42210 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2012-10-01 12:17:53 +00:00

300 lines
13 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-wcm-actions.xml</value>
<value>classpath:alfresco/web-client-config-workflow-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 Data Cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for in-memory GlobalConfig -->
<!-- TODO: globalConfigShareCache moved into cache-context.xml files,
may need a way of defining caches alongside related beans as it was previously. -->
<!-- The transactional cache for in-memory GlobalConfig -->
<!-- TODO: should this move to tx-cache-context.xml -->
<bean name="globalConfigCache" class="org.alfresco.repo.cache.TransactionalCache">
<property name="sharedCache">
<ref bean="globalConfigSharedCache" />
</property>
<property name="name">
<value>org.alfresco.globalConfigTransactionalCache</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="tenantAdminService" ref="tenantAdminService"/>
<property name="transactionService" ref="transactionComponent"/>
<property name="authenticationContext" ref="authenticationContext"/>
<property name="configDataCache" ref="globalConfigCache"/>
</bean>
<bean id="webClientConfigAdminInterpreter" class="org.alfresco.web.config.ConfigAdminInterpreter" parent="interpreterBase">
<property name="repoXMLConfigService" ref="webClientConfigService"/>
</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>
<property name="formatCaption">
<value>${xforms.formatCaption}</value>
</property>
</bean>
<!-- ===================================== -->
<!-- Web Script Beans -->
<!-- ===================================== -->
<!-- Alfresco Web Client Authenticator (Servlet based) -->
<bean id="webscripts.authenticator.webclient" class="org.alfresco.repo.web.scripts.servlet.WebClientAuthenticatorFactory" />
<bean id="webscripts.authenticator.jsr168.webclient" class="org.alfresco.repo.web.scripts.portlet.WebClientPortletAuthenticatorFactory" lazy-init="true"/>
<bean id="RemoteUserMapper" class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.webdav.auth.RemoteUserMapper</value>
<value>org.alfresco.repo.management.subsystems.ActivateableBean</value>
</list>
</property>
<property name="sourceBeanName">
<value>remoteUserMapper</value>
</property>
</bean>
<bean id="AuthenticationFilter" class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.web.filter.beans.DependencyInjectedFilter</value>
</list>
</property>
<property name="sourceBeanName">
<value>authenticationFilter</value>
</property>
<!-- Fall back to the default alfresco implementation -->
<property name="defaultTarget">
<ref bean="defaultAuthenticationFilter"/>
</property>
</bean>
<bean id="defaultAuthenticationFilter" class="org.alfresco.web.app.servlet.AuthenticationFilter">
<property name="configService">
<ref bean="webClientConfigService" />
</property>
</bean>
<bean id="GlobalAuthenticationFilter" class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.web.filter.beans.DependencyInjectedFilter</value>
</list>
</property>
<property name="sourceBeanName">
<value>globalAuthenticationFilter</value>
</property>
<!-- Fall back to a benign default implementation -->
<property name="defaultTarget">
<bean class="org.alfresco.repo.web.filter.beans.NullFilter" />
</property>
</bean>
<bean id="SOLRAuthenticationFilter" class="org.alfresco.repo.web.scripts.solr.SOLRAuthenticationFilter">
<property name="secureComms" value="${solr.secureComms}"/>
</bean>
<bean id="WebscriptAuthenticationFilter" class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.web.filter.beans.DependencyInjectedFilter</value>
</list>
</property>
<property name="sourceBeanName">
<value>webscriptAuthenticationFilter</value>
</property>
<!-- Fall back to a benign default implementation -->
<property name="defaultTarget">
<bean class="org.alfresco.repo.web.filter.beans.NullFilter" />
</property>
</bean>
<bean id="WebDavAuthenticationFilter" class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.web.filter.beans.DependencyInjectedFilter</value>
</list>
</property>
<property name="sourceBeanName">
<value>webDavAuthenticationFilter</value>
</property>
<!-- Fall back to the default alfresco implementation -->
<property name="defaultTarget">
<bean class="org.alfresco.repo.webdav.auth.AuthenticationFilter">
<property name="authenticationService">
<ref bean="AuthenticationService" />
</property>
<property name="personService">
<ref bean="PersonService" />
</property>
<property name="nodeService">
<ref bean="NodeService" />
</property>
<property name="transactionService">
<ref bean="TransactionService" />
</property>
<property name="authenticationComponent">
<ref bean="AuthenticationComponent" />
</property>
<property name="remoteUserMapper">
<ref bean="RemoteUserMapper" />
</property>
</bean>
</property>
</bean>
<bean id="SharepointAuthenticationHandler" class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.webdav.auth.AuthenticationDriver</value>
</list>
</property>
<property name="sourceBeanName">
<value>sharepointAuthenticationHandler</value>
</property>
<!-- Fall back to the default alfresco implementation -->
<property name="defaultTarget">
<bean class="org.alfresco.web.sharepoint.auth.BasicAuthenticationHandler">
<property name="authenticationService">
<ref bean="AuthenticationService" />
</property>
<property name="personService">
<ref bean="PersonService" />
</property>
</bean>
</property>
</bean>
</beans>