org.onebusaway.users.impl
Class UserDetailsServiceImpl

java.lang.Object
  extended by org.onebusaway.users.impl.UserDetailsServiceImpl
All Implemented Interfaces:
IndexedUserDetailsService, org.springframework.security.userdetails.UserDetailsService

@Component
public class UserDetailsServiceImpl
extends Object
implements org.springframework.security.userdetails.UserDetailsService, IndexedUserDetailsService


Constructor Summary
UserDetailsServiceImpl()
           
 
Method Summary
 IndexedUserDetails getOrCreateUserForIndexKey(UserIndexKey key, String credentials, boolean isAnonymous)
           
 IndexedUserDetails getUserForIndexKey(UserIndexKey key)
          IndexedUserDetailsService Interface
 org.springframework.security.userdetails.UserDetails loadUserByUsername(String username)
          UserDetailsService Interface
 void resetUserForIndexKey(UserIndexKey key)
           
 void setAuthoritiesService(StandardAuthoritiesService authoritiesService)
           
 void setUserLastAccessTimeService(UserLastAccessTimeService userLastAccessTimeService)
           
 void setUserService(UserService userService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDetailsServiceImpl

public UserDetailsServiceImpl()
Method Detail

setUserService

public void setUserService(UserService userService)

setAuthoritiesService

public void setAuthoritiesService(StandardAuthoritiesService authoritiesService)

setUserLastAccessTimeService

public void setUserLastAccessTimeService(UserLastAccessTimeService userLastAccessTimeService)

loadUserByUsername

@Transactional
public org.springframework.security.userdetails.UserDetails loadUserByUsername(String username)
                                                                        throws org.springframework.security.userdetails.UsernameNotFoundException,
                                                                               org.springframework.dao.DataAccessException
UserDetailsService Interface

Specified by:
loadUserByUsername in interface org.springframework.security.userdetails.UserDetailsService
Throws:
org.springframework.security.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException

getUserForIndexKey

@Transactional
public IndexedUserDetails getUserForIndexKey(UserIndexKey key)
                                      throws org.springframework.security.userdetails.UsernameNotFoundException,
                                             org.springframework.dao.DataAccessException
IndexedUserDetailsService Interface

Specified by:
getUserForIndexKey in interface IndexedUserDetailsService
Throws:
org.springframework.security.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException

getOrCreateUserForIndexKey

public IndexedUserDetails getOrCreateUserForIndexKey(UserIndexKey key,
                                                     String credentials,
                                                     boolean isAnonymous)
                                              throws org.springframework.dao.DataAccessException
Specified by:
getOrCreateUserForIndexKey in interface IndexedUserDetailsService
Throws:
org.springframework.dao.DataAccessException

resetUserForIndexKey

public void resetUserForIndexKey(UserIndexKey key)
Specified by:
resetUserForIndexKey in interface IndexedUserDetailsService


Copyright © 2011 OneBusAway. All Rights Reserved.