mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
- found by Kevin R git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19271 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
66 lines
2.4 KiB
XML
66 lines
2.4 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>
|
|
|
|
<!-- ======================================= -->
|
|
<!-- Tenant Routing File Content Store Cache -->
|
|
<!-- ======================================= -->
|
|
|
|
<bean name="tenantFileStoresCache" 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.tenantFileStoresCache</value>
|
|
</property>
|
|
</bean>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- -->
|
|
<!-- Tenant Routing File Content Store -->
|
|
<!-- -->
|
|
|
|
<bean id="tenantFileContentStore" class="org.alfresco.repo.content.TenantRoutingFileContentStore" init-method="init">
|
|
<property name="applicationEventPublisher">
|
|
<ref bean="applicationEventPublisher" />
|
|
</property>
|
|
<property name="defaultRootDir">
|
|
<value>${dir.contentstore}</value>
|
|
</property>
|
|
<property name="tenantService">
|
|
<ref bean="tenantService" />
|
|
</property>
|
|
<property name="storesCache">
|
|
<ref bean="tenantFileStoresCache" />
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- override content store cleaner to use tenant routing file content store -->
|
|
<!-- Performs the content cleanup -->
|
|
<bean id="eagerContentStoreCleaner" class="org.alfresco.repo.content.cleanup.EagerContentStoreCleaner" init-method="init">
|
|
<property name="eagerOrphanCleanup" >
|
|
<value>${system.content.eagerOrphanCleanup}</value>
|
|
</property>
|
|
<property name="stores" >
|
|
<list>
|
|
<ref bean="tenantFileContentStore" />
|
|
</list>
|
|
</property>
|
|
<property name="listeners" >
|
|
<ref bean="deletedContentBackupListeners" />
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- override content service to use tenant routing file content store -->
|
|
<bean id="contentService" parent="baseContentService">
|
|
<property name="store">
|
|
<ref bean="tenantFileContentStore" />
|
|
</property>
|
|
</bean>
|
|
|
|
</beans>
|