Package services

Class UserService

    • Constructor Summary

      Constructors 
      Constructor Description
      UserService()
      Constructs an instance of UserService class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean changePassword​(java.lang.String newPassword)
      Changes the password of user if provided old password matches current password
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserService

        public UserService()
        Constructs an instance of UserService class
    • Method Detail

      • changePassword

        public boolean changePassword​(java.lang.String newPassword)
        Description copied from interface: IUserService
        Changes the password of user if provided old password matches current password
        Specified by:
        changePassword in interface IUserService
        Parameters:
        newPassword - user's new password
        Returns:
        True if password was changed successfully, False otherwise