Package org.molgenis.security.core.runas
Class RunAsSystemAspect
- java.lang.Object
-
- org.molgenis.security.core.runas.RunAsSystemAspect
-
@Order(-2147483647) @Component public class RunAsSystemAspect extends Object
Proxy 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 ObjectaroundAdvice(org.aspectj.lang.ProceedingJoinPoint joinPoint)static voidrunAsSystem(Runnable runnable)static <T,X extends Throwable>
TrunAsSystem(RunnableAsSystem<T,X> runnable)
-
-
-
Method Detail
-
aroundAdvice
public Object aroundAdvice(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
- Throws:
Throwable
-
runAsSystem
public static void runAsSystem(Runnable runnable)
-
runAsSystem
public static <T,X extends Throwable> T runAsSystem(RunnableAsSystem<T,X> runnable) throws X extends Throwable
- Throws:
X extends Throwable
-
-