public abstract class CacheBasedWebSession extends java.lang.Object implements WebSession
| Modifier and Type | Field and Description |
|---|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
ExternalId.Key |
getLastLoginExternalId() |
java.lang.String |
getSessionId() |
CurrentUser |
getUser() |
java.lang.String |
getXGerritAuth() |
boolean |
isAccessPathOk(AccessPath path) |
boolean |
isSignedIn() |
boolean |
isValidXGerritAuth(java.lang.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.
|
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)
public boolean isSignedIn()
isSignedIn in interface WebSessionpublic java.lang.String getXGerritAuth()
getXGerritAuth in interface WebSessionpublic boolean isValidXGerritAuth(java.lang.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 java.lang.String getSessionId()
getSessionId in interface WebSession