Interface IUserDAO
-
- All Known Implementing Classes:
UserDAO
public interface IUserDAOUser DAO Interface- Author:
- Laurent Payen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablejava.util.List<User>findByEmail(java.lang.String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the users by its emailUserfindByFirstNameLastNameAndEmail(java.lang.String strFirstName, java.lang.String strLastName, java.lang.String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the user by its first name, last name and emailvoidinsert(User user, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Userselect(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableUserselectByGuid(java.lang.String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablevoidupdate(User user, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
void insert(User user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
user- instance of the user object to insertplugin- the Plugin
-
update
void update(User user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Parameters:
user- the reference of the userplugin- the Plugin
-
delete
void delete(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
nIdUser- int identifier of the user to deleteplugin- the Plugin
-
select
User select(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nIdUser- The identifier of the userplugin- the Plugin- Returns:
- The instance of the user
-
selectByGuid
User selectByGuid(java.lang.String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
strGuid- The identifier of the userplugin- the Plugin- Returns:
- The instance of the user
-
findByEmail
java.util.List<User> findByEmail(java.lang.String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the users by its email- Parameters:
strEmail- the email of the userplugin- the plugin- Returns:
- The Users found
-
findByFirstNameLastNameAndEmail
User findByFirstNameLastNameAndEmail(java.lang.String strFirstName, java.lang.String strLastName, java.lang.String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the user by its first name, last name and email- Parameters:
strFirstName- the first name of the userstrLastName- the last name of the userstrEmail- the email of the userplugin- the plugin- Returns:
- the user found
-
-