Class ChangePasswordAction

All Implemented Interfaces:
Action, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction

@StudioAction(target="io.jmix.ui.component.ListComponent", description="Changes the password of the UserDetails instance") @ActionType("changePassword") public class ChangePasswordAction extends SecuredListAction implements Action.ExecutableAction, Action.AdjustWhenScreenReadOnly
  • Field Details

    • ID

      public static final String ID
      See Also:
    • currentPasswordRequired

      protected boolean currentPasswordRequired
    • screens

      protected Screens screens
  • Constructor Details

    • ChangePasswordAction

      public ChangePasswordAction()
    • ChangePasswordAction

      public ChangePasswordAction(String id)
  • Method Details

    • setMessages

      @Autowired protected void setMessages(Messages messages)
    • setScreens

      @Autowired public void setScreens(Screens screens)
    • setCurrentPasswordRequired

      @StudioPropertiesItem(defaultValue="false") public void setCurrentPasswordRequired(boolean currentPasswordRequired)
    • isPermitted

      protected boolean isPermitted()
      Description copied from class: BaseAction
      Callback method which is invoked by the action to determine its enabled state.
      Overrides:
      isPermitted in class SecuredListAction
      Returns:
      true if the action is enabled for the current user
    • actionPerform

      public void actionPerform(Component component)
      Description copied from interface: Action
      Invoked by owning component to execute the action.
      Specified by:
      actionPerform in interface Action
      Overrides:
      actionPerform in class BaseAction
      Parameters:
      component - invoking component
    • execute

      public void execute()
      Executes the action.
      Specified by:
      execute in interface Action.ExecutableAction
    • buildAndShowChangePasswordDialog

      protected void buildAndShowChangePasswordDialog(org.springframework.security.core.userdetails.UserDetails user)