Package com.google.gerrit.httpd
Class CacheBasedWebSession
- java.lang.Object
- 
- com.google.gerrit.httpd.CacheBasedWebSession
 
- 
- All Implemented Interfaces:
- WebSession
 - Direct Known Subclasses:
- H2CacheBasedWebSession
 
 public abstract class CacheBasedWebSession extends Object implements WebSession 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringACCOUNT_COOKIEprotected static longMAX_AGE_MINUTES
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedCacheBasedWebSession(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)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalId.KeygetLastLoginExternalId()StringgetSessionId()CurrentUsergetUser()StringgetXGerritAuth()booleanisAccessPathOk(AccessPath path)booleanisSignedIn()booleanisValidXGerritAuth(String keyIn)voidlogin(AuthResult res, boolean rememberMe)voidlogout()voidsetAccessPathOk(AccessPath path, boolean ok)voidsetUserAccountId(Account.Id id)Set the user account for this current request only.
 
- 
- 
- 
Field Detail- 
ACCOUNT_COOKIEpublic static final String ACCOUNT_COOKIE - See Also:
- Constant Field Values
 
 - 
MAX_AGE_MINUTESprotected static final long MAX_AGE_MINUTES 
 
- 
 - 
Constructor Detail- 
CacheBasedWebSessionprotected 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)
 
- 
 - 
Method Detail- 
isSignedInpublic boolean isSignedIn() - Specified by:
- isSignedInin interface- WebSession
 
 - 
getXGerritAuthpublic String getXGerritAuth() - Specified by:
- getXGerritAuthin interface- WebSession
 
 - 
isValidXGerritAuthpublic boolean isValidXGerritAuth(String keyIn) - Specified by:
- isValidXGerritAuthin interface- WebSession
 
 - 
isAccessPathOkpublic boolean isAccessPathOk(AccessPath path) - Specified by:
- isAccessPathOkin interface- WebSession
 
 - 
setAccessPathOkpublic void setAccessPathOk(AccessPath path, boolean ok) - Specified by:
- setAccessPathOkin interface- WebSession
 
 - 
getLastLoginExternalIdpublic ExternalId.Key getLastLoginExternalId() - Specified by:
- getLastLoginExternalIdin interface- WebSession
 
 - 
getUserpublic CurrentUser getUser() - Specified by:
- getUserin interface- WebSession
 
 - 
loginpublic void login(AuthResult res, boolean rememberMe) - Specified by:
- loginin interface- WebSession
 
 - 
setUserAccountIdpublic void setUserAccountId(Account.Id id) Set the user account for this current request only.- Specified by:
- setUserAccountIdin interface- WebSession
 
 - 
logoutpublic void logout() - Specified by:
- logoutin interface- WebSession
 
 - 
getSessionIdpublic String getSessionId() - Specified by:
- getSessionIdin interface- WebSession
 
 
- 
 
-