Package 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
-
-
Constructor Summary
Constructors Constructor Description CurrentUserStrategyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCurrentUser()UsergetCurrentUser(boolean createUserIfAppropriate)IndexedUserDetailsgetCurrentUserDetails(boolean createUserIfAppropriate)UserIndexgetCurrentUserIndex(boolean createUserIfAppropriate)protected IndexedUserDetailsgetUserDetailsForAuthentication(org.springframework.security.core.Authentication authentication)voidsetAuthoritiesService(StandardAuthoritiesService authoritiesService)voidsetCurrentUser(UserIndex userIndex)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
setUserService
@Autowired public void setUserService(UserService userService)
-
setAuthoritiesService
@Autowired public void setAuthoritiesService(StandardAuthoritiesService authoritiesService)
-
getCurrentUser
public User getCurrentUser(boolean createUserIfAppropriate)
- Specified by:
getCurrentUserin interfaceCurrentUserStrategy- Returns:
-
getCurrentUserIndex
public UserIndex getCurrentUserIndex(boolean createUserIfAppropriate)
- Specified by:
getCurrentUserIndexin interfaceCurrentUserStrategy- Returns:
-
getCurrentUserDetails
public IndexedUserDetails getCurrentUserDetails(boolean createUserIfAppropriate)
- Specified by:
getCurrentUserDetailsin interfaceCurrentUserStrategy- Returns:
-
setCurrentUser
public void setCurrentUser(UserIndex userIndex)
- Specified by:
setCurrentUserin interfaceCurrentUserStrategy
-
clearCurrentUser
public void clearCurrentUser()
- Specified by:
clearCurrentUserin interfaceCurrentUserStrategy
-
getUserDetailsForAuthentication
protected IndexedUserDetails getUserDetailsForAuthentication(org.springframework.security.core.Authentication authentication)
-
-