Class UserHome
java.lang.Object
fr.paris.lutece.plugins.appointment.business.user.UserHome
This class provides instances management methods for User objects
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserCreate an instance of the User classstatic voiddelete(int nKey) Delete the User whose identifier is specified in parameterfindByEmail(String strEmail) return user(s) by its emailstatic UserfindByFirstNameLastNameAndEmail(String strFirstName, String strLastName, String strEmail) return a user by its firstname, lastname and emailstatic UserfindByGuid(String strGuid) Returns an instance of the User whose identifier is specified in parameterstatic UserfindByPrimaryKey(int nKey) Returns an instance of the User whose identifier is specified in parameterstatic UserUpdate of the User which is specified in parameter
-
Method Details
-
create
Create an instance of the User class- Parameters:
user- The instance of the User which contains the informations to store- Returns:
- The instance of the User which has been created with its primary key.
-
update
Update of the User which is specified in parameter- Parameters:
user- The instance of the User which contains the data to store- Returns:
- The instance of the User which has been updated
-
delete
public static void delete(int nKey) Delete the User whose identifier is specified in parameter- Parameters:
nKey- The User Id
-
findByPrimaryKey
Returns an instance of the User whose identifier is specified in parameter- Parameters:
nKey- The User primary key- Returns:
- an instance of the User
-
findByGuid
Returns an instance of the User whose identifier is specified in parameter- Parameters:
strGuid- The User guid key- Returns:
- an instance of the User
-
findByFirstNameLastNameAndEmail
public static User findByFirstNameLastNameAndEmail(String strFirstName, String strLastName, String strEmail) return a user by its firstname, lastname and email- Parameters:
strFirstName- the user first namestrLastName- the user last namestrEmail- the user email- Returns:
- the user if it exists
-
findByEmail
return user(s) by its email- Parameters:
strEmail- the user email- Returns:
- the user(s) if it exists
-