org.alfresco.repo.tenant
Class MultiTNodeServiceInterceptor

java.lang.Object
  extended by org.springframework.aop.support.IntroductionInfoSupport
      extended by org.springframework.aop.support.DelegatingIntroductionInterceptor
          extended by org.alfresco.repo.tenant.MultiTNodeServiceInterceptor
All Implemented Interfaces:
java.io.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
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.aop.support.IntroductionInfoSupport
publishedInterfaces
 
Constructor Summary
MultiTNodeServiceInterceptor()
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
static boolean isIgnoreMT()
           
static boolean setIgnoreMT(boolean ignoreMT)
          Change the filtering behaviour of this interceptor on the current thread.
 void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
           
 
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 Detail

MultiTNodeServiceInterceptor

public MultiTNodeServiceInterceptor()
Method Detail

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(org.alfresco.repo.tenant.TenantService tenantService)

invoke

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


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