Class UserService
java.lang.Object
fr.paris.lutece.plugins.appointment.service.UserService
Service class of a user
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserfindUserByFirstNameLastNameAndEmail(String strFirstName, String strLastName, String strEmail) Find a user by its first name, last name and emailstatic UserfindUserById(int nIdUser) Find a User by its primary keyfindUsersByEmail(String strEmail) Find users by its emailstatic UsersaveUser(AppointmentDTO appointment) Save a user in database / A user is defined by its email (unique)
-
Method Details
-
saveUser
Save a user in database / A user is defined by its email (unique)- Parameters:
appointment- the appointment DTO- Returns:
- the user saved
-
findUserById
Find a User by its primary key- Parameters:
nIdUser- the primary key- Returns:
- the User found
-
findUserByFirstNameLastNameAndEmail
public static User findUserByFirstNameLastNameAndEmail(String strFirstName, String strLastName, String strEmail) Find a user by its first name, last name and email- Parameters:
strFirstName- the first namestrLastName- the last namestrEmail- the email- Returns:
- the user
-
findUsersByEmail
Find users by its email- Parameters:
strEmail- the email- Returns:
- the user(s)
-