Class UserDaoJdbc

  • All Implemented Interfaces:
    IUserDao

    public class UserDaoJdbc
    extends java.lang.Object
    implements IUserDao
    Implementation of IUserDao based on JDBC.
    Since:
    4.0.0
    Version:
    $Revision: 24878 $ $Date: 2022-03-15 01:44:27 -0300 (Tue, 15 Mar 2022) $
    • Constructor Summary

      Constructors 
      Constructor Description
      UserDaoJdbc()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(UserConfig userConfig, ITransaction transaction)
      Add the user.
      void addAlternativeLogin​(java.lang.String userId, java.lang.String newLogin, ITransaction transaction)
      Adds an alternative login to a user.
      void delete​(java.lang.String userId, ITransaction transaction)
      Delete the user.
      void deleteAlternativeLogin​(java.lang.String loginToDelete, ITransaction transaction)
      Deletes an alternative login.
      java.util.List<UserConfig> findUsers​(java.lang.String query, boolean includeFrameworkUsers, int maxResults)
      Find users by user login or user name, given a search query.
      UserConfig get​(java.lang.String userId, ITransaction transaction)
      get the user.
      java.util.Collection<java.lang.String> getAllUserIds​(ITransaction transaction)
      Returns all user ids.
      java.util.Collection<java.lang.String> getAlternativeLogins​(java.lang.String userId, ITransaction transaction)
      Returns the alternative logins of an user.
      java.util.Collection<java.lang.String> getByChannelId​(java.lang.String channelId, ITransaction transaction)
      Return the local users IDs of the specified channel
      java.util.Collection<java.lang.String> getByOrigin​(java.lang.String origin, ITransaction transaction)
      Return the user ids, searching by the user's origin.
      java.lang.String getUserIdByLogin​(java.lang.String login, ITransaction transaction)
      Get the id of the user.
      java.util.Collection<UserConfig> getUsersByLogins​(java.util.Set<java.lang.String> logins)
      Get users with the given logins.
      void setPassword​(java.lang.String userId, java.lang.String password, ITransaction transaction)
      Sets a new password for the user
      void update​(UserConfig userConfig, ITransaction transaction)
      Update the user.
      void updateLoginHistory​(java.lang.String userId, boolean loginSuccess)
      Updates persistence information about a user login history.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait