Class 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.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 Detail

      • DisableAuditableBehaviourInterceptor

        public DisableAuditableBehaviourInterceptor()
    • Method Detail

      • invoke

        public java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation methodInvocation)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface org.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)