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:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user