|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elasticpath.persistence.impl.CmUserAuthenticationDaoImpl
public class CmUserAuthenticationDaoImpl
Default implementation of Acegi's UserDetailsService
, to integrate with Acegi Security framework for authentication and
authorization.
Constructor Summary | |
---|---|
CmUserAuthenticationDaoImpl()
|
Method Summary | |
---|---|
PersistenceEngine |
getPersistenceEngine()
Returns the persistence engine. |
org.acegisecurity.userdetails.UserDetails |
loadUserByUsername(java.lang.String userName)
Locates the user based on the given userName of the cmUser . |
void |
setPersistenceEngine(PersistenceEngine persistenceEngine)
F Sets the persistence engine. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmUserAuthenticationDaoImpl()
Method Detail |
---|
public PersistenceEngine getPersistenceEngine()
public org.acegisecurity.userdetails.UserDetails loadUserByUsername(java.lang.String userName) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
cmUser
.
loadUserByUsername
in interface org.acegisecurity.userdetails.UserDetailsService
userName
- the userName presented to the DaoAuthenticationProvider
. In commerce manager, it will be the userName.
null
)
org.acegisecurity.userdetails.UsernameNotFoundException
- if the user could not be found or the user has no GrantedAuthority
org.springframework.dao.DataAccessException
- if user could not be found for a repository-specific reasonpublic void setPersistenceEngine(PersistenceEngine persistenceEngine)
persistenceEngine
- the persistence engine to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |