Files
alfresco-community-repo/config/alfresco/cache-context.xml
Alan Davis 7ec5353411 Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
57163: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3)
      57016: Reverse Merge to the original
         56761: Reverse Merge: Caused lots of build errors running SecurityTestSuite. Specifically HomeFolderProviderSynchronizerTest
               which ran after AuthorityBridgeTableAsynchronouslyRefreshedCacheTest.
               See https://bamboo.alfresco.com/bamboo/browse/ALF-ENTERPRISEV42BUGFIX-7 (#11 has 30 errors including 26 from HFPST and ABTARCT)
            56562: Merged V4.1-BUG-FIX (4.1.7) to V4.2-BUG-FIX (4.2.1)
               56138: Merged DEV to V4.1-BUG-FIX (4.1.7)
                  56075: MNT-9375 (related to MNT-9485): MT - when users are added to site with a group addition versus individual, they are not handled as members of site
                  Added JUnit test for the issue. Added the test to SecurityTestSuite.
            56580: Merged V4.1-BUG-FIX (4.1.7) to V4.2-BUG-FIX (4.2.1)
               56026: Merged DEV to V4.1-BUG-FIX (4.1.7)
                  55892: MNT-9485: MT Users added to Alfresco Administrators group via Group addition do not have 'admin' privileges
                   - Build bridge cache on behalf of provided tenant user. 
            56581: Merged V4.1-BUG-FIX (4.1.7) to V4.2-BUG-FIX (4.2.1)
               << last commit missed a file >>
               56026: Merged DEV to V4.1-BUG-FIX (4.1.7)
                  55892: MNT-9485: MT Users added to Alfresco Administrators group via Group addition do not have 'admin' privileges
                   - Build bridge cache on behalf of provided tenant user. 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61780 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-02-11 20:14:29 +00:00

480 lines
20 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!--
Configuration of shared (cross-transaction) caches. The in-transaction caches
are defined in tx-cache-context.xml
-->
<beans>
<!--
Factory responsible for creating caches - override this bean
to modify cache creation behaviour.
-->
<bean id="cacheFactory" class="org.alfresco.repo.cache.DefaultCacheFactory">
<property name="properties" ref="global-properties"/>
</bean>
<!-- ============================================ -->
<!-- Asynchronous Cache Support -->
<!-- ============================================ -->
<bean id="asynchronouslyRefreshedCacheThreadPoolExecutor" class="org.alfresco.util.ThreadPoolExecutorFactoryBean">
<property name="poolName" value="asynchronouslyRefreshedCacheThreadPool" />
<property name="corePoolSize" value="1" />
<property name="maximumPoolSize" value="1" />
<property name="threadPriority" value="5" />
</bean>
<bean name="asynchronouslyRefreshedCacheRegistry" class="org.alfresco.repo.cache.DefaultAsynchronouslyRefreshedCacheRegistry" >
</bean>
<bean name="abstractAsynchronouslyRefreshedCache" class="org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache" abstract="true">
<property name="threadPoolExecutor" ref="asynchronouslyRefreshedCacheThreadPoolExecutor" />
<property name="tenantService" ref="tenantService" />
<property name="registry" ref="asynchronouslyRefreshedCacheRegistry" />
</bean>
<!-- =========================== -->
<!-- Authority BridgeTable cache -->
<!-- =========================== -->
<bean name="authorityBridgeTableCache" class="org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache" parent="abstractAsynchronouslyRefreshedCache">
<property name="authorityBridgeDAO" ref="authorityBridgeDAO" />
<property name="retryingTransactionHelper" ref="retryingTransactionHelper" />
<property name="tenantAdminService" ref="tenantAdminService" />
</bean>
<!-- ===================================== -->
<!-- Property Values Cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Property entities -->
<bean name="propertyValueSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.propertyValueCache"/>
</bean>
<!-- ===================================== -->
<!-- Property Unique Context Cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Property Unique Contexts -->
<bean name="propertyUniqueContextSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.propertyUniqueContextSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- ID lookup for ContentData entities -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for ContentData -->
<bean name="contentDataSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.contentDataSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- ID lookup for general, shared, immutable entities -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for immutable entities -->
<bean name="immutableEntitySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.immutableEntitySharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Root Nodes lookup -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Root Nodes -->
<bean name="node.rootNodesSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.node.rootNodesSharedCache"/>
</bean>
<!-- The cross-transaction shared cache for Root Nodes -->
<bean name="node.allRootNodesSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.node.allRootNodesSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Nodes lookup -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Nodes -->
<bean name="node.nodesSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.node.nodesSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Node Aspect lookup -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Node Aspects -->
<bean name="node.aspectsSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.node.aspectsSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Node Properties lookup -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Node Properties -->
<bean name="node.propertiesSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.node.propertiesSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Child by cm:name lookup for nodes -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Child-by-name -->
<bean name="node.childByNameSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.node.childByNameSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Rules lookup for nodes -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Node Rules -->
<bean name="nodeRulesSharedCache" class="org.alfresco.repo.cache.NullCache"/>
<!-- ===================================== -->
<!-- Authority container look up for users -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for User Authorities -->
<bean name="userToAuthoritySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.userToAuthoritySharedCache"/>
</bean>
<!-- The cross-transaction shared cache for User Authentication -->
<bean name="authenticationSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.authenticationSharedCache"/>
</bean>
<!-- ====================================== -->
<!-- NodeRef lookup for authority containers -->
<!-- ====================================== -->
<!-- The cross-transaction shared cache for authority containers -->
<bean name="authoritySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.authoritySharedCache"/>
</bean>
<!-- ================================================ -->
<!-- Authority NodeRef lookup to ChildAssociationRefs -->
<!-- ================================================ -->
<!-- The cross-transaction shared cache for authority containers -->
<bean name="authorityToChildAuthoritySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.authorityToChildAuthoritySharedCache"/>
</bean>
<!-- ================================================ -->
<!-- Zone lookup to ChildAssociationRefs -->
<!-- ================================================ -->
<!-- The cross-transaction shared cache for authority containers -->
<bean name="zoneToAuthoritySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.zoneToAuthoritySharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Permissions access cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Permissions -->
<bean name="permissionsAccessSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.permissionsAccessSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- ACL Readers cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for ACL readers -->
<bean name="readersSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.readersSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- ACL Readers Denied cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for ACL denied readers -->
<bean name="readersDeniedSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.readersDeniedSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Node owner cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Node Ownership -->
<bean name="nodeOwnerSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.nodeOwnerSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Person username to NodeRef cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Person -->
<bean name="personSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.personSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Authentication Ticket Cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for In-Memory Tickets -->
<bean name="ticketsCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.ticketsCache"/>
</bean>
<!-- ===================================== -->
<!-- Lookup for AVM entities -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for AVM Store entities -->
<bean name="avmStoreSharedCache" class="org.alfresco.repo.cache.NullCache"/>
<!-- The cross-transaction shared cache for AVM entities (various - using cache region) -->
<bean name="avmEntitySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.avmEntitySharedCache"/>
</bean>
<!-- The cross-transaction shared cache for AVM VersionRoot entities -->
<bean name="avmVersionRootEntitySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.avmVersionRootEntitySharedCache"/>
</bean>
<!-- The cross-transaction shared cache for AVM Node entities -->
<bean name="avmNodeSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.avmNodeSharedCache"/>
</bean>
<!-- The cross-transaction shared cache for AVM Node Aspects entities -->
<bean name="avmNodeAspectsSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.avmNodeAspectsSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- WebServices Query Session Cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for WebService query sessions -->
<bean name="webServicesQuerySessionSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.webServicesQuerySessionSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- ACL cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Acls -->
<bean name="aclSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.aclSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- ACL Entity cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for ACL entities -->
<bean name="aclEntitySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.aclEntitySharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Authority Entity cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Authority entities -->
<bean name="authorityEntitySharedCache" class="org.alfresco.repo.cache.NullCache"/>
<!-- ===================================== -->
<!-- Permission Entity cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Permission entities -->
<bean name="permissionEntitySharedCache" class="org.alfresco.repo.cache.NullCache"/>
<!-- ===================================== -->
<!-- Messages Caches -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for In-Memory ResourceBundleBaseNames -->
<bean name="resourceBundleBaseNamesSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.resourceBundleBaseNamesSharedCache"/>
</bean>
<!-- The cross-transaction shared cache for In-Memory LoadedResourceBundles -->
<bean name="loadedResourceBundlesSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.loadedResourceBundlesSharedCache"/>
</bean>
<!-- The cross-transaction shared cache for In-Memory Messages -->
<bean name="messagesSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.messagesSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Dictionary / Namespace Caches -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Dictionary Models -->
<bean name="compiledModelsCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.compiledModelsSharedCache"/>
</bean>
<!-- The cross-transaction shared cache for Dictionary Namespaces [Must be non-clustered, non-txn and UNLIMITED IN SIZE]-->
<bean name="prefixesCache" class="org.alfresco.repo.cache.MemoryCache" />
<!-- ===================================== -->
<!-- RoutingContentStore caches -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for AbstractRoutingContentStore -->
<!--
Local cache is used even when clustered.
AbstractRoutingContentStore.selectReadStore(String) will correct incorrect/missing cache entries
and it doesn't really make sense to try to replicate or Serialize a ContentStore implementation.
-->
<bean name="routingContentStoreSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.routingContentStoreSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Executing Actions caches -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Executing Actions -->
<bean name="executingActionsCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.executingActionsCache"/>
</bean>
<!-- ===================================== -->
<!-- TagScope Summary caches -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for tagscope summary properties -->
<bean name="tagscopeSummarySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.tagscopeSummarySharedCache"/>
</bean>
<!-- ===================================== -->
<!-- IMAP caches -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for IMAP messages -->
<bean name="imapMessageSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.imapMessageSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Tenant Entity Cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Tenant entities -->
<bean name="tenantEntitySharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.tenantEntitySharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Immutable Singleton Cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for immutable (tenant-aware) singletons -->
<bean name="immutableSingletonSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.immutableSingletonSharedCache"/>
</bean>
<!-- Remote Alfresco Ticket Cache, cross-transaction shared cache -->
<bean name="remoteAlfrescoTicketService.ticketsCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.remoteAlfrescoTicketService.ticketsCache"/>
</bean>
<bean name="contentDiskDriver.fileInfoCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.contentDiskDriver.fileInfoCache"/>
</bean>
<bean name="globalConfigSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.globalConfigSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- Site ShortName to NodeRef look up -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for Site NodeRefs -->
<bean name="siteNodeRefSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.siteNodeRefSharedCache"/>
</bean>
<!-- ===================================== -->
<!-- SAML TrustEngine cache -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for SAML TrustEngines -->
<bean name="samlTrustEngineSharedCache" factory-bean="cacheFactory" factory-method="createCache">
<constructor-arg value="cache.samlTrustEngineSharedCache"/>
</bean>
</beans>