mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Transaction-level Policies. Modify AuditableAspect and ContentHits example to make use of transaction policies so they only trigger once.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2651 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
34
config/alfresco/policy-context.xml
Normal file
34
config/alfresco/policy-context.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
|
||||
<beans>
|
||||
<!-- Policy Support -->
|
||||
|
||||
<bean id="policyBehaviourQueue" class="org.alfresco.repo.policy.TransactionBehaviourQueue">
|
||||
</bean>
|
||||
|
||||
<bean id="policyTransactionHandlerFactory" class="org.alfresco.repo.policy.TransactionInvocationHandlerFactory">
|
||||
<constructor-arg index="0">
|
||||
<ref bean="policyBehaviourQueue"/>
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
|
||||
<bean id="policyBehaviourFilter" class="org.alfresco.repo.policy.BehaviourFilterImpl">
|
||||
<property name="dictionaryService">
|
||||
<ref bean="dictionaryService"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="policyComponent" class="org.alfresco.repo.policy.PolicyComponentImpl">
|
||||
<constructor-arg index="0">
|
||||
<ref bean="dictionaryService"/>
|
||||
</constructor-arg>
|
||||
<property name="behaviourFilter">
|
||||
<ref bean="policyBehaviourFilter"/>
|
||||
</property>
|
||||
<property name="transactionInvocationHandlerFactory">
|
||||
<ref bean="policyTransactionHandlerFactory"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
Reference in New Issue
Block a user