Class JKUserWebControllers

All Implemented Interfaces:
Serializable

@Named("usersController") @ViewScoped public class JKUserWebControllers extends JKWebControllerWithOrmSupport<User>
The Class MB_Login.
See Also:
  • Constructor Details

    • JKUserWebControllers

      public JKUserWebControllers()
  • Method Details

    • getMessage

      public String getMessage()
      Gets the user name.
      Returns:
      the user name
    • getUser

      public User getUser()
      Return account object for current logged in user.
      Returns:
      the user
    • getService

      protected SecurityService getService()
      Gets the service.
      Returns:
      the service
    • getCurrentPassword

      public String getCurrentPassword()
      Gets the current password.
      Returns:
      the current password
    • setCurrentPassword

      public void setCurrentPassword(String currentPassword)
      Sets the current password.
      Parameters:
      currentPassword - the new current password
    • getNewPassword

      public String getNewPassword()
      Gets the new password.
      Returns:
      the new password
    • setNewPassword

      public void setNewPassword(String newPassword)
      Sets the new password.
      Parameters:
      newPassword - the new new password
    • changePassword

      public String changePassword()
      Change password.
      Returns:
      the string
    • isAdmin

      public boolean isAdmin()
      Checks if is admin.
      Returns:
      true, if is admin
    • beforeInsert

      protected void beforeInsert()
      Before insert.
      Overrides:
      beforeInsert in class JKWebControllerWithOrmSupport<User>
    • beforeUpdate

      protected void beforeUpdate()
      Before update.
      Overrides:
      beforeUpdate in class JKWebControllerWithOrmSupport<User>
    • reset

      public String reset()
      Reset.
      Overrides:
      reset in class JKWebControllerWithOrmSupport<User>
      Returns:
      the string