- java.lang.Object
-
- services.UserService
-
- All Implemented Interfaces:
IUserService
public class UserService extends java.lang.Object implements IUserService
TheUserService
class implements theIUserService
interface and provides functions for user management
-
-
Constructor Summary
Constructors Constructor Description UserService()
Constructs an instance ofUserService
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
-
-
-
Constructor Detail
-
UserService
public UserService()
Constructs an instance ofUserService
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 interfaceIUserService
- Parameters:
newPassword
- user's new password- Returns:
True
if password was changed successfully,False
otherwise
-
-