Package org.alfresco.repo.audit
Class DisableAuditableBehaviourInterceptor
java.lang.Object
org.alfresco.repo.audit.DisableAuditableBehaviourInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class DisableAuditableBehaviourInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor
An interceptor that disables and then enables ASPECT_AUDITABLE behaviours
around method calls.
- The name of the method must match a supplied list (See
setMethodNames(List)). - For this interceptor to disable and enable policy behaviour, the first argument to the method must be a NodeRef or a Collection of NodeRefs. The behaviour is disabled on each NodeRef.
- The second argument to the method must optionally match a supplied list of
values (See
setArgumentValues(List). The second argument must be a QName. If a list is not supplied the second argument is not checked. - The BehaviourFilter to be enabled or disabled must be set (See
setBehaviourFilter(BehaviourFilter)).
- Author:
- Stas Sokolovsky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(org.aopalliance.intercept.MethodInvocation methodInvocation) voidsetArgumentValues(List<String> argumentValues) voidsetBehaviourFilter(BehaviourFilter behaviourFilter) voidsetMethodNames(List<String> methodNames)
-
Constructor Details
-
DisableAuditableBehaviourInterceptor
public DisableAuditableBehaviourInterceptor()
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-
setBehaviourFilter
-
setMethodNames
-
setArgumentValues
-