Class CurrentUserService
java.lang.Object
edu.ucsb.cs156.gauchoride.services.CurrentUserService
- Direct Known Subclasses:
CurrentUserServiceImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CurrentUserabstract Collection<? extends org.springframework.security.core.GrantedAuthority>getRoles()abstract UsergetUser()final booleanabstract voidThis 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.
-