Package com.google.gerrit.httpd
Class WebSession
java.lang.Object
com.google.gerrit.httpd.WebSession
- Direct Known Subclasses:
CacheBasedWebSession
A thread safe class that contains details about a specific user web session.
WARNING: All implementors must have RequestScoped annotation to maintain thread
safety.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract Stringabstract CurrentUsergetUser()abstract Stringabstract booleanisAccessPathOk(AccessPath path) abstract booleanabstract booleanisValidXGerritAuth(String keyIn) abstract voidlogin(AuthResult res, boolean rememberMe) abstract voidlogout()voidabstract voidsetAccessPathOk(AccessPath path, boolean ok) abstract voidSet the user account for this current request only.
-
Constructor Details
-
WebSession
public WebSession()
-
-
Method Details
-
isSignedIn
public abstract boolean isSignedIn() -
getXGerritAuth
-
isValidXGerritAuth
-
getUser
-
login
-
setUserAccountId
Set the user account for this current request only. -
isAccessPathOk
-
setAccessPathOk
-
logout
public abstract void logout() -
getSessionId
-
getRefUpdatedEvents
-
addRefUpdatedEvents
-
resetRefUpdatedEvents
public void resetRefUpdatedEvents()
-