Class UserDAOImpl

All Implemented Interfaces:
UserDAO, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class UserDAOImpl extends ServiceConfig implements UserDAO
User data implementation
  • Constructor Details

    • UserDAOImpl

      public UserDAOImpl(QueryUtil queryUtil, QueryService queryService)
      Autowired constructor
      Parameters:
      queryUtil - QueryUtil service
      queryService - Query service
  • Method Details

    • findByUserName

      public User findByUserName(String userName)
      Description copied from interface: UserDAO
      Find user by name. Used in authentication process.
      Specified by:
      findByUserName in interface UserDAO
      Parameters:
      userName - User name
      Returns:
      UserDetails with credentials. It can be null value if user don´t exist.
    • findByEmail

      public User findByEmail(String email)
      Description copied from interface: UserDAO
      Find user by email. Used in oauth2 authentication process.
      Specified by:
      findByEmail in interface UserDAO
      Parameters:
      email - Email user
      Returns:
      UserDetails with credentials. It can be null value if user don´t exist.
    • findByRole

      public User findByRole(String profile)
      Description copied from interface: UserDAO
      Find user info by role. Used in oauth2 authentication process.
      Specified by:
      findByRole in interface UserDAO
      Parameters:
      profile - Granted authority
      Returns:
      UserDetails with credentials. It can be null value if user don´t exist.
    • existRole

      public boolean existRole(String role) throws AWException
      Description copied from interface: UserDAO
      Check role if exists. Used in oauth2 authentication process.
      Specified by:
      existRole in interface UserDAO
      Parameters:
      role - Granted authority
      Returns:
      UserDetails with credentials. It can be null value if user don´t exist.
      Throws:
      AWException