public abstract class CacheBasedWebSession extends Object implements WebSession
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_COOKIE |
protected static long |
MAX_AGE_MINUTES |
| Modifier | Constructor and Description |
|---|---|
protected |
CacheBasedWebSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebSessionManager manager,
AuthConfig authConfig,
com.google.inject.Provider<AnonymousUser> anonymousProvider,
IdentifiedUser.RequestFactory identified,
AccountCache byIdCache) |
| Modifier and Type | Method and Description |
|---|---|
ExternalId.Key |
getLastLoginExternalId() |
String |
getSessionId() |
CurrentUser |
getUser() |
String |
getXGerritAuth() |
boolean |
isAccessPathOk(AccessPath path) |
boolean |
isSignedIn() |
boolean |
isValidXGerritAuth(String keyIn) |
void |
login(AuthResult res,
boolean rememberMe) |
void |
logout() |
void |
setAccessPathOk(AccessPath path,
boolean ok) |
void |
setUserAccountId(Account.Id id)
Set the user account for this current request only.
|
public static final String ACCOUNT_COOKIE
protected static final long MAX_AGE_MINUTES
protected CacheBasedWebSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebSessionManager manager,
AuthConfig authConfig,
com.google.inject.Provider<AnonymousUser> anonymousProvider,
IdentifiedUser.RequestFactory identified,
AccountCache byIdCache)
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 ExternalId.Key getLastLoginExternalId()
getLastLoginExternalId in interface WebSessionpublic CurrentUser getUser()
getUser in interface WebSessionpublic void login(AuthResult res, boolean rememberMe)
login in interface WebSessionpublic void setUserAccountId(Account.Id id)
setUserAccountId in interface WebSessionpublic void logout()
logout in interface WebSessionpublic String getSessionId()
getSessionId in interface WebSession