Class UserDetailsServiceImpl
java.lang.Object
org.broadleafcommerce.profile.core.service.UserDetailsServiceImpl
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
@Service("blUserDetailsService")
public class UserDetailsServiceImpl
extends Object
implements org.springframework.security.core.userdetails.UserDetailsService
This class is being un-deprecated because we want the query for the customer to happen through Hibernate instead of
through raw JDBC, which is the case when <sec:jdbc-user-service /> is used. We need the query to go through Hibernate
so that we are able to attach the necessary filters in certain circumstances.
- Author:
- Andre Azzolini (apazzolini), Phillip Verheyden (phillipuniverse)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.springframework.security.core.GrantedAuthority>createGrantedAuthorities(List<CustomerRole> customerRoles) org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username)
-
Field Details
-
customerService
-
roleService
-
-
Constructor Details
-
UserDetailsServiceImpl
public UserDetailsServiceImpl()
-
-
Method Details
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException - Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessException
-
createGrantedAuthorities
protected List<org.springframework.security.core.GrantedAuthority> createGrantedAuthorities(List<CustomerRole> customerRoles)
-