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 java.lang.Object implements org.aopalliance.intercept.MethodInterceptorAn 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 Constructor Description DisableAuditableBehaviourInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation methodInvocation)voidsetArgumentValues(java.util.List<java.lang.String> argumentValues)voidsetBehaviourFilter(BehaviourFilter behaviourFilter)voidsetMethodNames(java.util.List<java.lang.String> methodNames)
-
-
-
Method Detail
-
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws java.lang.Throwable- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
java.lang.Throwable
-
setBehaviourFilter
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
-
setMethodNames
public void setMethodNames(java.util.List<java.lang.String> methodNames)
-
setArgumentValues
public void setArgumentValues(java.util.List<java.lang.String> argumentValues)
-
-