public class IgnitionSession
extends org.apache.wicket.protocol.http.WebSession
Constructor and Description |
---|
IgnitionSession(org.apache.wicket.request.Request request) |
Modifier and Type | Method and Description |
---|---|
void |
clearConsoleWriter() |
void |
debug(java.lang.String message) |
void |
error(java.lang.String message,
java.lang.Throwable ex) |
void |
error(java.lang.Throwable ex) |
void |
fatal(java.lang.String message) |
java.lang.String |
formatThrowable(java.lang.Throwable ex) |
static IgnitionSession |
get() |
java.io.StringWriter |
getConsoleWriter() |
NavLocation |
getCurrentLocation() |
ProgressListener |
getProgressListener() |
java.util.Collection<java.lang.String> |
getRoles()
Returns the roles of the logged in user, or an empty list if the user isn't logged in.
|
AuthenticatedUser |
getUser() |
void |
info(java.lang.String message) |
boolean |
isAdmin()
Returns true if this web session is logged in and should have access to the administrative portions of the
gateway.
|
boolean |
isLockedOut()
Returns true if this session is currently locked out from attempting to log in.
|
boolean |
isLoggedIn()
Returns true if this web session has logged in.
|
void |
notifyFailedLogin() |
void |
setCurrentLocation(NavLocation currentLocation) |
void |
setProgressListener(ProgressListener progressListener) |
void |
setUser(AuthenticatedUser user) |
void |
success(java.lang.String message) |
void |
warn(java.lang.String message) |
getClientInfo, invalidate, newBrowserInfoPage
bind, cleanupFeedbackMessages, clear, debug, detach, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isCurrentRequestValid, isSessionInvalidated, isTemporary, nextPageId, nextSequenceValue, onEvent, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
public IgnitionSession(org.apache.wicket.request.Request request)
public static IgnitionSession get()
public void clearConsoleWriter()
public java.io.StringWriter getConsoleWriter()
public AuthenticatedUser getUser()
public void setUser(AuthenticatedUser user)
public boolean isLoggedIn()
public boolean isAdmin()
public void debug(java.lang.String message)
public void info(java.lang.String message)
public void success(java.lang.String message)
public void warn(java.lang.String message)
public void fatal(java.lang.String message)
public void error(java.lang.String message, java.lang.Throwable ex)
public void error(java.lang.Throwable ex)
public java.lang.String formatThrowable(java.lang.Throwable ex)
public java.util.Collection<java.lang.String> getRoles()
public NavLocation getCurrentLocation()
public void setCurrentLocation(NavLocation currentLocation)
public ProgressListener getProgressListener()
public void setProgressListener(ProgressListener progressListener)
public boolean isLockedOut()
public void notifyFailedLogin()