org.onebusaway.users.impl
Class CurrentUserStrategyImpl
java.lang.Object
org.onebusaway.users.impl.CurrentUserStrategyImpl
- All Implemented Interfaces:
- CurrentUserStrategy
- Direct Known Subclasses:
- AutoUserCurrentUserStrategyImpl
public class CurrentUserStrategyImpl
- extends Object
- implements CurrentUserStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentUserStrategyImpl
public CurrentUserStrategyImpl()
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 © 2012 OneBusAway. All Rights Reserved.