Class ResetPasswordView.ResetPasswordBackgroundTask

java.lang.Object
io.jmix.flowui.backgroundtask.BackgroundTask<Integer,List<UserPasswordValue>>
io.jmix.securityflowui.view.resetpassword.ResetPasswordView.ResetPasswordBackgroundTask
Enclosing class:
ResetPasswordView

protected class ResetPasswordView.ResetPasswordBackgroundTask extends BackgroundTask<Integer,List<UserPasswordValue>>
  • Field Details

    • usernamePasswordMap

      protected final Map<String,String> usernamePasswordMap
    • saveContext

      protected final SaveContext saveContext
  • Constructor Details

    • ResetPasswordBackgroundTask

      public ResetPasswordBackgroundTask()
  • Method Details

    • run

      public List<UserPasswordValue> run(TaskLifeCycle<Integer> taskLifeCycle) throws Exception
      Description copied from class: BackgroundTask
      Main method that performs a task.
      Called by the execution environment in a separate working thread.
      Implementation of this method should support interruption:
      Specified by:
      run in class BackgroundTask<Integer,List<UserPasswordValue>>
      Parameters:
      taskLifeCycle - lifecycle object that allows the main method to interact with the execution environment
      Returns:
      task result
      Throws:
      Exception - exception in a working thread
    • progress

      public void progress(List<Integer> changes)
      Description copied from class: BackgroundTask
      Provides exclusive access to this UI from outside a request handling thread on progress change.

      Please note that the command might be invoked on a different thread or later on the current thread, which means that custom thread locals might not have the expected values when the command is executed. UI.getCurrent(), VaadinSession.getCurrent() and VaadinService.getCurrent() are set according to this UI before executing the command. Other standard CurrentInstance values such as VaadinService.getCurrentRequest() and VaadinService.getCurrentResponse() will not be defined.

      Overrides:
      progress in class BackgroundTask<Integer,List<UserPasswordValue>>
      Parameters:
      changes - list of changes since previous invocation
      See Also:
      • UI.access(Command)
    • done

      public void done(List<UserPasswordValue> result)
      Description copied from class: BackgroundTask
      Provides exclusive access to this UI from outside a request handling thread when the task is completed.

      Please note that the command might be invoked on a different thread or later on the current thread, which means that custom thread locals might not have the expected values when the command is executed. UI.getCurrent(), VaadinSession.getCurrent() and VaadinService.getCurrent() are set according to this UI before executing the command. Other standard CurrentInstance values such as VaadinService.getCurrentRequest() and VaadinService.getCurrentResponse() will not be defined.

      Overrides:
      done in class BackgroundTask<Integer,List<UserPasswordValue>>
      Parameters:
      result - result of execution returned by BackgroundTask.run(TaskLifeCycle) method
      See Also:
      • UI.access(Command)