- java.lang.Object
-
- services.UserService
-
- All Implemented Interfaces:
IUserService
public class UserService extends java.lang.Object implements IUserService
TheUserServiceclass implements theIUserServiceinterface and provides functions for user management
-
-
Constructor Summary
Constructors Constructor Description UserService()Constructs an instance ofUserServiceclass
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchangePassword(java.lang.String newPassword)Changes the password of user if provided old password matches current password
-
-
-
Constructor Detail
-
UserService
public UserService()
Constructs an instance ofUserServiceclass
-
-
Method Detail
-
changePassword
public boolean changePassword(java.lang.String newPassword)
Description copied from interface:IUserServiceChanges the password of user if provided old password matches current password- Specified by:
changePasswordin interfaceIUserService- Parameters:
newPassword- user's new password- Returns:
Trueif password was changed successfully,Falseotherwise
-
-