Class DelegatingSecurityRunnable

java.lang.Object
io.jmix.flowui.asynctask.DelegatingSecurityRunnable
All Implemented Interfaces:
Runnable

public class DelegatingSecurityRunnable extends Object implements Runnable
Wraps a delegate Runnable with logic for setting up an SecurityContext before invoking the delegate Runnable and then removing the SecurityContext after the delegate has completed.

If there is a SecurityContext that already exists, it will be restored after the run() method is invoked.

  • Constructor Details

    • DelegatingSecurityRunnable

      public DelegatingSecurityRunnable(Runnable delegate)
    • DelegatingSecurityRunnable

      public DelegatingSecurityRunnable(Runnable delegate, org.springframework.security.core.context.SecurityContext securityContext)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable