Class ResetPasswordView.ResetPasswordBackgroundTask
- Enclosing class:
- ResetPasswordView
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.backgroundtask.BackgroundTask
BackgroundTask.ProgressListener<T,
V>, BackgroundTask.ProgressListenerAdapter<T, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
done
(List<UserPasswordValue> result) Provides exclusive access to this UI from outside a request handling thread when the task is completed.void
Provides exclusive access to this UI from outside a request handling thread on progress change.run
(TaskLifeCycle<Integer> taskLifeCycle) Main method that performs a task.Methods inherited from class io.jmix.flowui.backgroundtask.BackgroundTask
addProgressListener, canceled, getOwnerView, getParams, getProgressListeners, getTimeoutMilliseconds, getTimeoutSeconds, handleException, handleTimeoutException, removeProgressListener
-
Field Details
-
usernamePasswordMap
-
saveContext
-
-
Constructor Details
-
ResetPasswordBackgroundTask
public ResetPasswordBackgroundTask()
-
-
Method Details
-
run
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:- In long loops check
TaskLifeCycle.isInterrupted()
and return if it is true - Don't swallow
InterruptedException
- return from the method or don't catch it at all
- Specified by:
run
in classBackgroundTask<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
- In long loops check
-
progress
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()
andVaadinService.getCurrent()
are set according to this UI before executing the command. Other standard CurrentInstance values such asVaadinService.getCurrentRequest()
andVaadinService.getCurrentResponse()
will not be defined.- Overrides:
progress
in classBackgroundTask<Integer,
List<UserPasswordValue>> - Parameters:
changes
- list of changes since previous invocation- See Also:
-
UI.access(Command)
-
done
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()
andVaadinService.getCurrent()
are set according to this UI before executing the command. Other standard CurrentInstance values such asVaadinService.getCurrentRequest()
andVaadinService.getCurrentResponse()
will not be defined.- Overrides:
done
in classBackgroundTask<Integer,
List<UserPasswordValue>> - Parameters:
result
- result of execution returned byBackgroundTask.run(TaskLifeCycle)
method- See Also:
-
UI.access(Command)
-