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:
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.DelegatingIntroductionInterceptorInterceptor to translate Node- Since:
- 3.0
- Author:
- Derek Hulley, janv
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiTNodeServiceInterceptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation invocation)static booleanisIgnoreMT()static booleansetIgnoreMT(boolean ignoreMT)Change the filtering behaviour of this interceptor on the current thread.voidsetTenantService(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
-
-
-
-
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:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Overrides:
invokein classorg.springframework.aop.support.DelegatingIntroductionInterceptor- Throws:
java.lang.Throwable
-
-