Module sc2002_fypms
Package interfaces

Interface IUserService

  • All Known Implementing Classes:
    UserService

    public interface IUserService
    The IUserService interface defines a contract for user services.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean changePassword​(java.lang.String oldPassword, java.lang.String newPassword)
      Changes the password of a user if the provided old password matches the current password.
    • Method Detail

      • changePassword

        boolean changePassword​(java.lang.String oldPassword,
                               java.lang.String newPassword)
        Changes the password of a user if the provided old password matches the current password.
        Parameters:
        oldPassword - the current password of the user
        newPassword - the new password the user wants to set
        Returns:
        true if the password was changed successfully, false otherwise