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>>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.backgroundtask.BackgroundTask
BackgroundTask.ProgressListener<T,
V>, BackgroundTask.ProgressListenerAdapter<T, V> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
done
(List<UserPasswordValue> result) Called by the execution environment in UI thread when the task is completed.void
Called by the execution environment in UI 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 working thread
- In long loops check
-
progress
Description copied from class:BackgroundTask
Called by the execution environment in UI thread on progress change.- Overrides:
progress
in classBackgroundTask<Integer,
List<UserPasswordValue>> - Parameters:
changes
- list of changes since previous invocation
-
done
Description copied from class:BackgroundTask
Called by the execution environment in UI thread when the task is completed.- Overrides:
done
in classBackgroundTask<Integer,
List<UserPasswordValue>> - Parameters:
result
- result of execution returned byBackgroundTask.run(TaskLifeCycle)
method
-