Class RunAsSystemAspect


  • @Order(-2147483647)
    @Component
    public class RunAsSystemAspect
    extends java.lang.Object
    Proxy that set a SystemSecurityToken in the security context for the duration of a method
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object aroundAdvice​(org.aspectj.lang.ProceedingJoinPoint joinPoint)  
      static void runAsSystem​(java.lang.Runnable runnable)  
      static <T,​X extends java.lang.Throwable>
      T
      runAsSystem​(RunnableAsSystem<T,​X> runnable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RunAsSystemAspect

        public RunAsSystemAspect()
    • 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