Class IgnitionSession
- java.lang.Object
-
- org.apache.wicket.Session
-
- org.apache.wicket.protocol.http.WebSession
-
- com.inductiveautomation.ignition.gateway.web.IgnitionSession
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.wicket.event.IEventSink,org.apache.wicket.util.io.IClusterable
public class IgnitionSession extends org.apache.wicket.protocol.http.WebSession- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IgnitionSession(org.apache.wicket.request.Request request, GatewayContext gatewayContext, WebAuthUserContext user)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearConsoleWriter()voiddebug(java.lang.String message)voiderror(java.lang.String message, java.lang.Throwable ex)voiderror(java.lang.Throwable ex)voidfatal(java.lang.String message)java.lang.StringformatThrowable(java.lang.Throwable ex)static IgnitionSessionget()java.io.StringWritergetConsoleWriter()NavLocationgetCurrentLocation()ProgressListenergetProgressListener()WebAuthUserContextgetUser()voidinfo(java.lang.String message)booleanisAdmin()Returns true if this web session is logged in and should have access to the administrative portions of the gateway.booleanisLoggedIn()Returns true if this web session has logged in.booleanisSessionActive()voidsetCurrentLocation(NavLocation currentLocation)voidsetProgressListener(ProgressListener progressListener)voidsetUser(WebAuthUserContext user)voidsetUser(WebAuthUserContext user, boolean invalidate)voidsuccess(java.lang.String message)voidtouch()voidwarn(java.lang.String message)-
Methods inherited from class org.apache.wicket.protocol.http.WebSession
getClientInfo, invalidate, newBrowserInfoPage
-
Methods inherited from class org.apache.wicket.Session
bind, cleanupFeedbackMessages, clear, debug, detach, dirty, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isCurrentRequestValid, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
-
-
-
-
Constructor Detail
-
IgnitionSession
public IgnitionSession(org.apache.wicket.request.Request request, GatewayContext gatewayContext, WebAuthUserContext user)
-
-
Method Detail
-
isSessionActive
public boolean isSessionActive()
-
touch
public void touch()
-
get
public static IgnitionSession get()
-
clearConsoleWriter
public void clearConsoleWriter()
-
getConsoleWriter
public java.io.StringWriter getConsoleWriter()
-
getUser
public WebAuthUserContext getUser()
-
setUser
public void setUser(WebAuthUserContext user)
-
setUser
public void setUser(WebAuthUserContext user, boolean invalidate)
-
isLoggedIn
public boolean isLoggedIn()
Returns true if this web session has logged in. Doesn't say anything about what roles or access the logged in user should have
-
isAdmin
public boolean isAdmin()
Returns true if this web session is logged in and should have access to the administrative portions of the gateway.
-
debug
public void debug(java.lang.String message)
-
info
public void info(java.lang.String message)
-
success
public void success(java.lang.String message)
-
warn
public void warn(java.lang.String message)
-
fatal
public void fatal(java.lang.String message)
-
error
public void error(java.lang.String message, java.lang.Throwable ex)
-
error
public void error(java.lang.Throwable ex)
-
formatThrowable
public java.lang.String formatThrowable(java.lang.Throwable ex)
-
getCurrentLocation
public NavLocation getCurrentLocation()
-
setCurrentLocation
public void setCurrentLocation(NavLocation currentLocation)
-
getProgressListener
public ProgressListener getProgressListener()
-
setProgressListener
public void setProgressListener(ProgressListener progressListener)
-
-