Package com.google.gerrit.httpd
Class CacheBasedWebSession
java.lang.Object
com.google.gerrit.httpd.WebSession
com.google.gerrit.httpd.CacheBasedWebSession
- Direct Known Subclasses:
H2CacheBasedWebSession
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCacheBasedWebSession(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 Summary
Modifier and TypeMethodDescriptiongetUser()booleanisAccessPathOk(AccessPath path) booleanbooleanisValidXGerritAuth(String keyIn) voidlogin(AuthResult res, boolean rememberMe) voidlogout()voidsetAccessPathOk(AccessPath path, boolean ok) voidSet the user account for this current request only.Methods inherited from class com.google.gerrit.httpd.WebSession
addRefUpdatedEvents, getRefUpdatedEvents, resetRefUpdatedEvents
-
Field Details
-
ACCOUNT_COOKIE
- See Also:
-
MAX_AGE_MINUTES
public static final long MAX_AGE_MINUTES
-
-
Constructor Details
-
CacheBasedWebSession
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)
-
-
Method Details
-
isSignedIn
public boolean isSignedIn()- Specified by:
isSignedInin classWebSession
-
getXGerritAuth
- Specified by:
getXGerritAuthin classWebSession
-
isValidXGerritAuth
- Specified by:
isValidXGerritAuthin classWebSession
-
isAccessPathOk
- Specified by:
isAccessPathOkin classWebSession
-
setAccessPathOk
- Specified by:
setAccessPathOkin classWebSession
-
getUser
- Specified by:
getUserin classWebSession
-
login
- Specified by:
loginin classWebSession
-
setUserAccountId
Set the user account for this current request only.- Specified by:
setUserAccountIdin classWebSession
-
logout
public void logout()- Specified by:
logoutin classWebSession
-
getSessionId
- Specified by:
getSessionIdin classWebSession
-