Class ResetPasswordView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.securityflowui.view.resetpassword.ResetPasswordView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, FragmentOwner, Serializable

@ViewController("resetPasswordView") @ViewDescriptor("reset-password-view.xml") @DialogMode(width="35em", resizable=true) public class ResetPasswordView extends StandardView
See Also:
  • Field Details

    • RESET_PASSWORD_FIELD_CLASS_NAME

      protected static final String RESET_PASSWORD_FIELD_CLASS_NAME
      See Also:
    • PASSWORD_FIELD_ID

      protected static final String PASSWORD_FIELD_ID
      See Also:
    • BUTTON_ID

      protected static final String BUTTON_ID
      See Also:
    • userManager

      @Autowired protected UserManager userManager
    • dataManager

      @Autowired protected DataManager dataManager
    • applicationEventPublisher

      @Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
    • uiAsyncTasks

      @Autowired protected UiAsyncTasks uiAsyncTasks
    • backgroundWorker

      @Autowired protected BackgroundWorker backgroundWorker
    • dialogs

      @Autowired protected Dialogs dialogs
    • messageBundle

      @Autowired protected MessageBundle messageBundle
    • uiComponents

      @Autowired protected UiComponents uiComponents
    • uiExportHelper

      @Autowired(required=false) protected UiExportHelper uiExportHelper
    • resetPasswordLayout

      @ViewComponent protected com.vaadin.flow.component.orderedlayout.VerticalLayout resetPasswordLayout
    • resetPasswordLabel

      @ViewComponent protected com.vaadin.flow.component.html.Span resetPasswordLabel
    • resetPasswordSubLabel

      @ViewComponent protected com.vaadin.flow.component.html.Span resetPasswordSubLabel
    • generateBtn

      @ViewComponent protected JmixButton generateBtn
    • buttonPanel

      @ViewComponent protected com.vaadin.flow.component.orderedlayout.HorizontalLayout buttonPanel
    • passwordsDataGrid

      @ViewComponent protected DataGrid<UserPasswordValue> passwordsDataGrid
    • closeBtn

      @ViewComponent protected JmixButton closeBtn
    • progressBarLayout

      @ViewComponent protected com.vaadin.flow.component.orderedlayout.VerticalLayout progressBarLayout
    • generationCancelBtn

      @ViewComponent protected JmixButton generationCancelBtn
    • resetProgressBar

      @ViewComponent protected com.vaadin.flow.component.progressbar.ProgressBar resetProgressBar
    • progressBarLabel

      @ViewComponent protected com.vaadin.flow.component.html.Span progressBarLabel
    • progressSpan

      @ViewComponent protected com.vaadin.flow.component.html.Span progressSpan
    • userPasswordValueDc

      @ViewComponent protected CollectionContainer<UserPasswordValue> userPasswordValueDc
    • generationTaskHandler

      protected BackgroundTaskHandler<List<UserPasswordValue>> generationTaskHandler
    • exportActionButton

      protected JmixButton exportActionButton
    • users

      protected Set<? extends org.springframework.security.core.userdetails.UserDetails> users
    • cancelDialog

      protected com.vaadin.flow.component.dialog.Dialog cancelDialog
  • Constructor Details

    • ResetPasswordView

      public ResetPasswordView()
  • Method Details

    • onInit

      @Subscribe public void onInit(View.InitEvent event)
    • onReady

      @Subscribe public void onReady(View.ReadyEvent event)
    • onBeforeClose

      @Subscribe public void onBeforeClose(View.BeforeCloseEvent event)
    • passwordsDataGridPasswordRenderer

      @Supply(to="passwordsDataGrid.password", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<UserPasswordValue> passwordsDataGridPasswordRenderer()
    • initExportAction

      protected void initExportAction()
    • onExportBtnClick

      protected void onExportBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • getPageTitle

      public String getPageTitle()
      Specified by:
      getPageTitle in interface com.vaadin.flow.router.HasDynamicTitle
      Overrides:
      getPageTitle in class View<ViewLayout>
    • onGenerateBtnClick

      @Subscribe("generateBtn") protected void onGenerateBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • configureComponentsBeforeGeneration

      protected void configureComponentsBeforeGeneration()
    • configureComponentOnProgress

      protected void configureComponentOnProgress(Integer progress)
    • configureComponentsAfterCanceling

      protected void configureComponentsAfterCanceling()
    • configureComponentsAfterGeneration

      protected void configureComponentsAfterGeneration()
    • onGenerationCancelBtnClick

      @Subscribe("generationCancelBtn") protected void onGenerationCancelBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event)
    • createBackgroundTask

      protected BackgroundTask<Integer,List<UserPasswordValue>> createBackgroundTask()
    • createPasswordValue

      protected UserPasswordValue createPasswordValue(String username, String password)
    • passwordLayoutFactory

      protected com.vaadin.flow.component.orderedlayout.HorizontalLayout passwordLayoutFactory()
    • passwordFieldInitializer

      protected void passwordFieldInitializer(com.vaadin.flow.component.orderedlayout.HorizontalLayout layout, UserPasswordValue userPasswordValue)
    • copyButtonInitializer

      protected void copyButtonInitializer(JmixButton button, String valueToCopy)
    • applyCopyButtonSuccessStyles

      protected void applyCopyButtonSuccessStyles(JmixButton button)
    • applyCopyButtonDefaultStyles

      protected void applyCopyButtonDefaultStyles(JmixButton button)
    • runAsync

      protected void runAsync(Runnable runnable)
    • cancelGenerationProcess

      protected void cancelGenerationProcess()
    • isSingleSelected

      protected boolean isSingleSelected()
    • updateMultiSelectComponentsLabels

      protected void updateMultiSelectComponentsLabels()
    • setUsers

      public void setUsers(Set<? extends org.springframework.security.core.userdetails.UserDetails> users)