Class IgnitionSession
java.lang.Object
org.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
com.inductiveautomation.ignition.gateway.web.IgnitionSession
- All Implemented Interfaces:
Serializable
,org.apache.wicket.event.IEventSink
,org.apache.wicket.util.io.IClusterable
public class IgnitionSession
extends org.apache.wicket.protocol.http.WebSession
- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.Session
clientInfo, SESSION_ATTRIBUTE_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionIgnitionSession
(org.apache.wicket.request.Request request, GatewayContext gatewayContext, WebAuthUserContext user) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
static IgnitionSession
get()
getUser()
void
boolean
isAdmin()
Returns true if this web session is logged in and should have access to the administrative portions of the gateway.boolean
Returns true if this web session has logged in.boolean
void
setCurrentLocation
(NavLocation currentLocation) void
setProgressListener
(ProgressListener progressListener) void
setUser
(WebAuthUserContext user) void
setUser
(WebAuthUserContext user, boolean invalidate) void
void
touch()
void
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 Details
-
IgnitionSession
public IgnitionSession(org.apache.wicket.request.Request request, GatewayContext gatewayContext, WebAuthUserContext user)
-
-
Method Details
-
isSessionActive
public boolean isSessionActive() -
touch
public void touch() -
get
-
clearConsoleWriter
public void clearConsoleWriter() -
getConsoleWriter
-
getUser
-
setUser
-
setUser
-
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
-
info
-
success
-
warn
-
fatal
-
error
-
error
-
formatThrowable
-
getCurrentLocation
-
getProgressListener
-
setProgressListener
-