org.alfresco.repo.audit
Class DisableAuditableBehaviourInterceptor

java.lang.Object
  extended by 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.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 DisableAuditableBehaviourInterceptor.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 DisableAuditableBehaviourInterceptor.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 DisableAuditableBehaviourInterceptor.setBehaviourFilter(BehaviourFilter)).


    Constructor Summary
    DisableAuditableBehaviourInterceptor()
               
     
    Method Summary
     java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
               
     void setArgumentValues(java.util.List argumentValues)
               
     void setBehaviourFilter(BehaviourFilter behaviourFilter)
               
     void setMethodNames(java.util.List methodNames)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    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 methodNames)

    setArgumentValues

    public void setArgumentValues(java.util.List argumentValues)


    Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.