public abstract class CacheBasedWebSession extends java.lang.Object implements WebSession
Modifier and Type | Field and Description |
---|---|
static java.lang.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() |
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.
|
public static final java.lang.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 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 ExternalId.Key getLastLoginExternalId()
getLastLoginExternalId
in interface WebSession
public CurrentUser getUser()
getUser
in interface WebSession
public void login(AuthResult res, boolean rememberMe)
login
in interface WebSession
public void setUserAccountId(Account.Id id)
setUserAccountId
in interface WebSession
public void logout()
logout
in interface WebSession
public java.lang.String getSessionId()
getSessionId
in interface WebSession