org.onebusaway.users.impl
Class CurrentUserStrategyImpl

java.lang.Object
  extended by org.onebusaway.users.impl.CurrentUserStrategyImpl
All Implemented Interfaces:
CurrentUserStrategy
Direct Known Subclasses:
AutoUserCurrentUserStrategyImpl

public class CurrentUserStrategyImpl
extends Object
implements CurrentUserStrategy


Constructor Summary
CurrentUserStrategyImpl()
           
 
Method Summary
 void clearCurrentUser()
           
 User getCurrentUser(boolean createUserIfAppropriate)
           
 IndexedUserDetails getCurrentUserDetails(boolean createUserIfAppropriate)
           
 UserIndex getCurrentUserIndex(boolean createUserIfAppropriate)
           
protected  IndexedUserDetails getUserDetailsForAuthentication(org.springframework.security.Authentication authentication)
           
 void setAuthoritiesService(StandardAuthoritiesService authoritiesService)
           
 void setCurrentUser(UserIndex userIndex)
           
 void setUserService(UserService userService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentUserStrategyImpl

public CurrentUserStrategyImpl()
Method Detail

setUserService

public void setUserService(UserService userService)

setAuthoritiesService

public void setAuthoritiesService(StandardAuthoritiesService authoritiesService)

getCurrentUser

public User getCurrentUser(boolean createUserIfAppropriate)
Specified by:
getCurrentUser in interface CurrentUserStrategy
Returns:

getCurrentUserIndex

public UserIndex getCurrentUserIndex(boolean createUserIfAppropriate)
Specified by:
getCurrentUserIndex in interface CurrentUserStrategy
Returns:

getCurrentUserDetails

public IndexedUserDetails getCurrentUserDetails(boolean createUserIfAppropriate)
Specified by:
getCurrentUserDetails in interface CurrentUserStrategy
Returns:

setCurrentUser

public void setCurrentUser(UserIndex userIndex)
Specified by:
setCurrentUser in interface CurrentUserStrategy

clearCurrentUser

public void clearCurrentUser()
Specified by:
clearCurrentUser in interface CurrentUserStrategy

getUserDetailsForAuthentication

protected IndexedUserDetails getUserDetailsForAuthentication(org.springframework.security.Authentication authentication)


Copyright © 2011 OneBusAway. All Rights Reserved.