Package org.alfresco.repo.tenant
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 -
Method Summary
Modifier and TypeMethodDescriptioninvoke(org.aopalliance.intercept.MethodInvocation invocation) static booleanstatic booleansetIgnoreMT(boolean ignoreMT) Change the filtering behaviour of this interceptor on the current thread.voidsetTenantService(TenantService tenantService) Methods inherited from class org.springframework.aop.support.DelegatingIntroductionInterceptor
doProceedMethods inherited from class org.springframework.aop.support.IntroductionInfoSupport
getInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterfaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Overrides:
invokein classorg.springframework.aop.support.DelegatingIntroductionInterceptor- Throws:
Throwable
-