public final class CacheBasedWebSession extends java.lang.Object implements WebSession
Modifier and Type | Method and Description |
---|---|
CurrentUser |
getCurrentUser() |
com.google.gerrit.reviewdb.client.AccountExternalId.Key |
getLastLoginExternalId() |
java.lang.String |
getSessionId() |
java.lang.String |
getXGerritAuth() |
boolean |
isAccessPathOk(AccessPath path) |
boolean |
isSignedIn() |
boolean |
isValidXGerritAuth(java.lang.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 WebSession
public java.lang.String getXGerritAuth()
getXGerritAuth
in interface WebSession
public boolean isValidXGerritAuth(java.lang.String keyIn)
isValidXGerritAuth
in interface WebSession
public boolean isAccessPathOk(AccessPath path)
isAccessPathOk
in interface WebSession
public void setAccessPathOk(AccessPath path, boolean ok)
setAccessPathOk
in interface WebSession
public com.google.gerrit.reviewdb.client.AccountExternalId.Key getLastLoginExternalId()
getLastLoginExternalId
in interface WebSession
public CurrentUser getCurrentUser()
getCurrentUser
in interface WebSession
public void login(AuthResult res, boolean rememberMe)
login
in interface WebSession
public void setUserAccountId(com.google.gerrit.reviewdb.client.Account.Id id)
setUserAccountId
in interface WebSession
public void logout()
logout
in interface WebSession
public java.lang.String getSessionId()
getSessionId
in interface WebSession