Constructor and Description |
---|
UserDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
List<User> |
findByEmail(String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the users by its email
|
User |
findByFirstNameLastNameAndEmail(String strFirstName,
String strLastName,
String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the user by its first name, last name and email
|
void |
insert(User user,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
User |
select(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
void |
update(User user,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
getNewPrimaryKey
public void insert(User user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IUserDAO
public void update(User user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IUserDAO
public void delete(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IUserDAO
public User select(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IUserDAO
public List<User> findByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IUserDAO
findByEmail
in interface IUserDAO
strEmail
- the email of the userplugin
- the pluginpublic User findByFirstNameLastNameAndEmail(String strFirstName, String strLastName, String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IUserDAO
findByFirstNameLastNameAndEmail
in interface IUserDAO
strFirstName
- the first name of the userstrLastName
- the last name of the userstrEmail
- the email of the userplugin
- the pluginCopyright © 2020 City of Paris. All rights reserved.