Class CurrentUserService
java.lang.Object
edu.ucsb.cs156.gauchoride.services.CurrentUserService
- Direct Known Subclasses:
CurrentUserServiceImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract CurrentUser
abstract Collection<? extends org.springframework.security.core.GrantedAuthority>
getRoles()
abstract User
getUser()
final boolean
abstract void
This should only be called in test code, never in production code! It resets the current user to a known state for tests, in case a previous test has changed it in some way.
-
Constructor Details
-
CurrentUserService
public CurrentUserService()
-
-
Method Details
-
getUser
-
getCurrentUser
-
getRoles
-
isLoggedIn
public final boolean isLoggedIn() -
resetCurrentUser
public abstract void resetCurrentUser()This should only be called in test code, never in production code! It resets the current user to a known state for tests, in case a previous test has changed it in some way.
-