Package com.almis.awe.dao
Interface UserDAO
- All Known Implementing Classes:
UserDAOImpl
public interface UserDAO
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check role if exists.findByEmail
(String email) Find user by email.findByRole
(String role) Find user info by role.findByUserName
(String userName) Find user by name.
-
Method Details
-
findByUserName
Find user by name. Used in authentication process.- Parameters:
userName
- User name- Returns:
UserDetails
with credentials. It can benull
value if user don´t exist.
-
findByEmail
Find user by email. Used in oauth2 authentication process.- Parameters:
email
- Email user- Returns:
UserDetails
with credentials. It can benull
value if user don´t exist.
-
findByRole
Find user info by role. Used in oauth2 authentication process.- Parameters:
role
- Granted authority- Returns:
UserDetails
with credentials. It can benull
value if user don´t exist.
-
existRole
Check role if exists. Used in oauth2 authentication process.- Parameters:
role
- Granted authority- Returns:
UserDetails
with credentials. It can benull
value if user don´t exist.- Throws:
AWException
-