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@2652 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -776,9 +776,6 @@
|
|||||||
<property name="authenticationService">
|
<property name="authenticationService">
|
||||||
<ref bean="authenticationService" />
|
<ref bean="authenticationService" />
|
||||||
</property>
|
</property>
|
||||||
<property name="policyBehaviourFilter">
|
|
||||||
<ref bean="policyBehaviourFilter" />
|
|
||||||
</property>
|
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Referenceable -->
|
<!-- Referenceable -->
|
||||||
|
@@ -56,7 +56,6 @@ public class AuditableAspect
|
|||||||
private NodeService nodeService;
|
private NodeService nodeService;
|
||||||
private AuthenticationService authenticationService;
|
private AuthenticationService authenticationService;
|
||||||
private PolicyComponent policyComponent;
|
private PolicyComponent policyComponent;
|
||||||
private BehaviourFilter policyBehaviourFilter;
|
|
||||||
|
|
||||||
// Behaviours
|
// Behaviours
|
||||||
private Behaviour onCreateAudit;
|
private Behaviour onCreateAudit;
|
||||||
@@ -80,14 +79,6 @@ public class AuditableAspect
|
|||||||
this.policyComponent = policyComponent;
|
this.policyComponent = policyComponent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param policyBehaviourFilter the policy behaviour filter
|
|
||||||
*/
|
|
||||||
public void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
|
|
||||||
{
|
|
||||||
this.policyBehaviourFilter = policyBehaviourFilter;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param authenticationService the authentication service
|
* @param authenticationService the authentication service
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user