All Known Implementing Classes:
DatabaseDAO

public interface IDatabaseDAO
Author:
Etienne
  • Method Details

    • selectLuteceUserByLogin

      BaseUser selectLuteceUserByLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
      Find users by login
      Parameters:
      strLogin - the login
      plugin - The Plugin using this data access service
      authenticationService - the LuteceAuthentication object
      Returns:
      BaseUser the user corresponding to the login
    • selectResetPasswordFromLogin

      boolean selectResetPasswordFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if a user has reset his password from his login
      Parameters:
      strLogin - the login
      plugin - The Plugin using this data access service
      authenticationService - the LuteceAuthentication object
      Returns:
      boolean true if the password vhas been reset, false otherwise
    • selectPasswordMaxValideDateFromLogin

      Timestamp selectPasswordMaxValideDateFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Gets the password max valid date of a user from his login.
      Parameters:
      strLogin - the login of the user
      plugin - The plugin
      Returns:
      The date of end of validity of the password of the user, or null if none has been set.
    • selectLuteceUserList

      Collection<BaseUser> selectLuteceUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
      Load the list of BaseUser
      Parameters:
      plugin - The Plugin using this data access service
      authenticationService - the authentication service
      Returns:
      The Collection of the BaseUser
    • selectUserRolesFromLogin

      List<String> selectUserRolesFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select the list of DatabaseUsers for a login
      Parameters:
      strLogin - The login of DatabaseUser
      plugin - The Plugin using this data access service
      Returns:
      The Collection of the DatabaseUsers
    • deleteRolesForUser

      void deleteRolesForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete roles for a user
      Parameters:
      nIdUser - The id of the user
      plugin - The Plugin using this data access service
    • createRoleForUser

      void createRoleForUser(int nIdUser, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Assign a role to user
      Parameters:
      nIdUser - The id of the user
      strRoleKey - The key of the role
      plugin - The Plugin using this data access service
    • selectUserGroupsFromLogin

      List<String> selectUserGroupsFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find user's groups by login
      Parameters:
      strLogin - the login
      plugin - The Plugin using this data access service
      Returns:
      ArrayList the group key list corresponding to the login
    • selectLoginListForRoleKey

      Collection<String> selectLoginListForRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of DatabaseUsers for a Lutece role
      Parameters:
      strRoleKey - The role key of DatabaseUser
      plugin - The Plugin using this data access service
      Returns:
      The Collection of the logins
    • deleteGroupsForUser

      void deleteGroupsForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete groups for a user
      Parameters:
      nIdUser - The id of the user
      plugin - The Plugin using this data access service
    • createGroupForUser

      void createGroupForUser(int nIdUser, String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Assign a group to user
      Parameters:
      nIdUser - The id of the user
      strGroupKey - The key of the group
      plugin - The Plugin using this data access service
    • selectGroupUsersFromGroupKey

      List<DatabaseUser> selectGroupUsersFromGroupKey(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find assigned users to the given group
      Parameters:
      strGroupKey - The group key
      plugin - Plugin
      Returns:
      a list of DatabaseUser
    • updateResetPasswordFromLogin

      void updateResetPasswordFromLogin(String strUserName, boolean bNewValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the reset password attribut of a user from his login
      Parameters:
      strUserName - Login of the user to update
      bNewValue - New value
      plugin - The plugin
    • findUserIdFromLogin

      int findUserIdFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the id of a user from his login
      Parameters:
      strLogin - Login of the user
      plugin - The plugin
      Returns:
      The id of the user