Package org.molgenis.security.core.runas
Class RunAsSystemAspect
- java.lang.Object
-
- org.molgenis.security.core.runas.RunAsSystemAspect
-
@Order(-2147483647) @Component public class RunAsSystemAspect extends java.lang.ObjectProxy that set a SystemSecurityToken in the security context for the duration of a method
-
-
Constructor Summary
Constructors Constructor Description RunAsSystemAspect()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectaroundAdvice(org.aspectj.lang.ProceedingJoinPoint joinPoint)static voidrunAsSystem(java.lang.Runnable runnable)static <T,X extends java.lang.Throwable>
TrunAsSystem(RunnableAsSystem<T,X> runnable)
-
-
-
Method Detail
-
aroundAdvice
public java.lang.Object aroundAdvice(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
runAsSystem
public static void runAsSystem(java.lang.Runnable runnable)
-
runAsSystem
public static <T,X extends java.lang.Throwable> T runAsSystem(RunnableAsSystem<T,X> runnable) throws X extends java.lang.Throwable
- Throws:
X extends java.lang.Throwable
-
-