public final class CacheBasedWebSession extends Object implements WebSession
| Modifier and Type | Method and Description |
|---|---|
CurrentUser |
getCurrentUser() |
com.google.gerrit.reviewdb.client.AccountExternalId.Key |
getLastLoginExternalId() |
String |
getSessionId() |
String |
getXGerritAuth() |
boolean |
isAccessPathOk(AccessPath path) |
boolean |
isSignedIn() |
boolean |
isValidXGerritAuth(String keyIn) |
void |
login(AuthResult res,
boolean rememberMe) |
void |
logout() |
static com.google.inject.Module |
module() |
void |
setAccessPathOk(AccessPath path,
boolean ok) |
void |
setUserAccountId(com.google.gerrit.reviewdb.client.Account.Id id)
Set the user account for this current request only.
|
public static com.google.inject.Module module()
public boolean isSignedIn()
isSignedIn in interface WebSessionpublic String getXGerritAuth()
getXGerritAuth in interface WebSessionpublic boolean isValidXGerritAuth(String keyIn)
isValidXGerritAuth in interface WebSessionpublic boolean isAccessPathOk(AccessPath path)
isAccessPathOk in interface WebSessionpublic void setAccessPathOk(AccessPath path, boolean ok)
setAccessPathOk in interface WebSessionpublic com.google.gerrit.reviewdb.client.AccountExternalId.Key getLastLoginExternalId()
getLastLoginExternalId in interface WebSessionpublic CurrentUser getCurrentUser()
getCurrentUser in interface WebSessionpublic void login(AuthResult res, boolean rememberMe)
login in interface WebSessionpublic void setUserAccountId(com.google.gerrit.reviewdb.client.Account.Id id)
setUserAccountId in interface WebSessionpublic void logout()
logout in interface WebSessionpublic String getSessionId()
getSessionId in interface WebSession