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 Details

    • DisableAuditableBehaviourInterceptor

      public DisableAuditableBehaviourInterceptor()
  • Method Details

    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws Throwable
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Throws:
      Throwable
    • setBehaviourFilter

      public void setBehaviourFilter(BehaviourFilter behaviourFilter)
    • setMethodNames

      public void setMethodNames(List<String> methodNames)
    • setArgumentValues

      public void setArgumentValues(List<String> argumentValues)