All Known Implementing Classes:
UserDAO

public interface IUserDAO
User DAO Interface
Author:
Laurent Payen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    findByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Return the users by its email
    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.
    select(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectByGuid(String strGuid, 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
  • Method Details

    • 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 insert
      plugin - 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 user
      plugin - 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 delete
      plugin - 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 user
      plugin - the Plugin
      Returns:
      The instance of the user
    • selectByGuid

      User selectByGuid(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      strGuid - The identifier of the user
      plugin - the Plugin
      Returns:
      The instance of the user
    • findByEmail

      List<User> findByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the users by its email
      Parameters:
      strEmail - the email of the user
      plugin - the plugin
      Returns:
      The Users found
    • findByFirstNameLastNameAndEmail

      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
      Parameters:
      strFirstName - the first name of the user
      strLastName - the last name of the user
      strEmail - the email of the user
      plugin - the plugin
      Returns:
      the user found