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:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package org.alfresco.repo.policy;
|
||||
|
||||
import org.alfresco.repo.policy.Policy.Arg;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
|
||||
@@ -46,7 +47,23 @@ public interface PolicyDefinition<P extends Policy>
|
||||
|
||||
/**
|
||||
* Gets the Policy type
|
||||
*
|
||||
* @return the policy type
|
||||
*/
|
||||
public PolicyType getType();
|
||||
|
||||
/**
|
||||
* Gets Policy Argument definition for the specified argument index
|
||||
*
|
||||
* @param index argument index
|
||||
* @return ARG.KEY or ARG.START_VALUE or ARG.END_VALUE
|
||||
*/
|
||||
public Arg getArgument(int index);
|
||||
|
||||
/**
|
||||
* Gets Policy Argument definitions for all arguments in order of arguments
|
||||
* @return
|
||||
*/
|
||||
public Arg[] getArguments();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user