Interface UserDAO

All Known Implementing Classes:
UserDAOImpl

public interface UserDAO
  • Method Details

    • findByUserName

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

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

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

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