Package com.google.gerrit.httpd
Class WebSession
- java.lang.Object
-
- com.google.gerrit.httpd.WebSession
-
- Direct Known Subclasses:
CacheBasedWebSession
public abstract class WebSession extends Object
A thread safe class that contains details about a specific user web session.WARNING: All implementors must have
RequestScoped
annotation to maintain thread safety.
-
-
Constructor Summary
Constructors Constructor Description WebSession()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addRefUpdatedEvents(GitReferenceUpdatedListener.Event event)
List<GitReferenceUpdatedListener.Event>
getRefUpdatedEvents()
abstract String
getSessionId()
abstract CurrentUser
getUser()
abstract String
getXGerritAuth()
abstract boolean
isAccessPathOk(AccessPath path)
abstract boolean
isSignedIn()
abstract boolean
isValidXGerritAuth(String keyIn)
abstract void
login(AuthResult res, boolean rememberMe)
abstract void
logout()
void
resetRefUpdatedEvents()
abstract void
setAccessPathOk(AccessPath path, boolean ok)
abstract void
setUserAccountId(Account.Id id)
Set the user account for this current request only.
-
-
-
Method Detail
-
isSignedIn
public abstract boolean isSignedIn()
-
getXGerritAuth
public abstract String getXGerritAuth()
-
isValidXGerritAuth
public abstract boolean isValidXGerritAuth(String keyIn)
-
getUser
public abstract CurrentUser getUser()
-
login
public abstract void login(AuthResult res, boolean rememberMe)
-
setUserAccountId
public abstract void setUserAccountId(Account.Id id)
Set the user account for this current request only.
-
isAccessPathOk
public abstract boolean isAccessPathOk(AccessPath path)
-
setAccessPathOk
public abstract void setAccessPathOk(AccessPath path, boolean ok)
-
logout
public abstract void logout()
-
getSessionId
public abstract String getSessionId()
-
getRefUpdatedEvents
public List<GitReferenceUpdatedListener.Event> getRefUpdatedEvents()
-
addRefUpdatedEvents
public void addRefUpdatedEvents(GitReferenceUpdatedListener.Event event)
-
resetRefUpdatedEvents
public void resetRefUpdatedEvents()
-
-