Package balu.pizza.webapp.services
Class PersonDetailService
java.lang.Object
balu.pizza.webapp.services.PersonDetailService
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
@Service
@Transactional(readOnly=true)
public class PersonDetailService
extends Object
implements org.springframework.security.core.userdetails.UserDetailsService
PersonDetail Service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetails
loadUserByUsername
(String username) Searches User by Username
-
Constructor Details
-
PersonDetailService
-
-
Method Details
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException Searches User by Username- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Parameters:
username
-- Returns:
- UserDetails entity
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
- if user was not found
-