Package com.esprit.services.users
Class UserService
java.lang.Object
com.esprit.services.users.UserService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkEmailFound
(String email) Performs checkEmailFound operation.void
void
void
forgetPassword
(String email, String Password) Performs forgetPassword operation.void
Performs generateUserPDF operation.private User
getUserByEmail
(String email) getUserById
(Long id) private User
getUserRow
(PreparedStatement preparedStatement) getUsers
(List<User> userList, PreparedStatement statement) Performs login operation.read()
void
Performs sendMail operation.Performs sort operation.void
void
updatePassword
(String email, String NewPassword) Performs updatePassword operation.
-
Field Details
-
LOGGER
-
con
Connection con
-
-
Constructor Details
-
UserService
public UserService()Performs UserService operation.
-
-
Method Details
-
getUserById
- Parameters:
id
-- Returns:
- User
-
getUserByEmail
- Parameters:
email
-- Returns:
- User
-
create
-
read
-
update
-
delete
-
sendMail
Performs sendMail operation. -
generateUserPDF
public void generateUserPDF()Performs generateUserPDF operation. -
sort
Performs sort operation.- Returns:
- the result of the operation
-
getUsers
- Throws:
SQLException
-
checkEmailFound
Performs checkEmailFound operation.- Returns:
- the result of the operation
-
updatePassword
Performs updatePassword operation. -
forgetPassword
Performs forgetPassword operation. -
getUserRow
- Throws:
SQLException
-
login
Performs login operation.- Returns:
- the result of the operation
-