Package com.almis.awe.dao
Class UserDAOImpl
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.dao.UserDAOImpl
- All Implemented Interfaces:
UserDAO
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
User data implementation
-
Constructor Summary
ConstructorDescriptionUserDAOImpl
(QueryUtil queryUtil, QueryService queryService) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check role if exists.findByEmail
(String email) Find user by email.findByRole
(String profile) Find user info by role.findByUserName
(String userName) Find user by name.Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
UserDAOImpl
Autowired constructor- Parameters:
queryUtil
- QueryUtil servicequeryService
- Query service
-
-
Method Details
-
findByUserName
Description copied from interface:UserDAO
Find user by name. Used in authentication process.- Specified by:
findByUserName
in interfaceUserDAO
- Parameters:
userName
- User name- Returns:
UserDetails
with credentials. It can benull
value if user don´t exist.
-
findByEmail
Description copied from interface:UserDAO
Find user by email. Used in oauth2 authentication process.- Specified by:
findByEmail
in interfaceUserDAO
- Parameters:
email
- Email user- Returns:
UserDetails
with credentials. It can benull
value if user don´t exist.
-
findByRole
Description copied from interface:UserDAO
Find user info by role. Used in oauth2 authentication process.- Specified by:
findByRole
in interfaceUserDAO
- Parameters:
profile
- Granted authority- Returns:
UserDetails
with credentials. It can benull
value if user don´t exist.
-
existRole
Description copied from interface:UserDAO
Check role if exists. Used in oauth2 authentication process.- Specified by:
existRole
in interfaceUserDAO
- Parameters:
role
- Granted authority- Returns:
UserDetails
with credentials. It can benull
value if user don´t exist.- Throws:
AWException
-