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:
David Caruana
2006-04-12 16:15:20 +00:00
parent 776314da72
commit 0330f2cdb7
14 changed files with 1102 additions and 71 deletions

View File

@@ -29,6 +29,17 @@ package org.alfresco.repo.policy;
*/
public interface Behaviour
{
/**
* When should behaviour be notified?
*/
public enum NotificationFrequency
{
EVERY_EVENT,
FIRST_EVENT,
TRANSACTION_COMMIT
}
/**
* Gets the requested policy interface onto the behaviour
*
@@ -51,5 +62,11 @@ public interface Behaviour
* @return is the behaviour enabled (for this thread only)
*/
public boolean isEnabled();
/**
* @return the notification
*/
public NotificationFrequency getNotificationFrequency();
}