Class UserService
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.service.UserService
-
public final class UserService extends Object
Service class of a user- Author:
- Laurent Payen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 keystatic List<User>findUsersByEmail(String strEmail)Find users by its emailstatic UsersaveUser(AppointmentDTO appointment)Save a user in database / A user is defined by its email (unique)
-
-
-
Method Detail
-
saveUser
public static User saveUser(AppointmentDTO appointment)
Save a user in database / A user is defined by its email (unique)- Parameters:
appointment- the appointment DTO- Returns:
- the user saved
-
findUserById
public static User findUserById(int nIdUser)
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
-
-