Class MultiTNodeServiceInterceptor

java.lang.Object
org.springframework.aop.support.IntroductionInfoSupport
org.springframework.aop.support.DelegatingIntroductionInterceptor
org.alfresco.repo.tenant.MultiTNodeServiceInterceptor
All Implemented Interfaces:
Serializable, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.aop.DynamicIntroductionAdvice, org.springframework.aop.IntroductionInfo, org.springframework.aop.IntroductionInterceptor

public class MultiTNodeServiceInterceptor extends org.springframework.aop.support.DelegatingIntroductionInterceptor
Interceptor to translate Node
Since:
3.0
Author:
Derek Hulley, janv
See Also:
  • Field Summary

    Fields inherited from class org.springframework.aop.support.IntroductionInfoSupport

    publishedInterfaces
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(org.aopalliance.intercept.MethodInvocation invocation)
     
    static boolean
     
    static boolean
    setIgnoreMT(boolean ignoreMT)
    Change the filtering behaviour of this interceptor on the current thread.
    void
     

    Methods inherited from class org.springframework.aop.support.DelegatingIntroductionInterceptor

    doProceed

    Methods inherited from class org.springframework.aop.support.IntroductionInfoSupport

    getInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterface

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.aop.DynamicIntroductionAdvice

    implementsInterface
  • Constructor Details

    • MultiTNodeServiceInterceptor

      public MultiTNodeServiceInterceptor()
  • Method Details

    • setIgnoreMT

      public static boolean setIgnoreMT(boolean ignoreMT)
      Change the filtering behaviour of this interceptor on the current thread. Use this to switch off the filtering and pass references in and out as they are found.
      Parameters:
      ignoreMT - true if the current thread is able to handle MultiTenant-enabled references.
      Returns:
      true if the current transaction is MT aware
    • isIgnoreMT

      public static boolean isIgnoreMT()
      Returns:
      Returns true if the current thread has marked itself as being able to handle MultiTenant references.
    • setTenantService

      public void setTenantService(TenantService tenantService)
    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Overrides:
      invoke in class org.springframework.aop.support.DelegatingIntroductionInterceptor
      Throws:
      Throwable