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 TypeMethodDescriptionvoidvoidvoidvoidvoidstatic IgnitionSessionget()getUser()voidbooleanisAdmin()Returns true if this web session is logged in and should have access to the administrative portions of the gateway.booleanReturns true if this web session has logged in.booleanvoidsetCurrentLocation(NavLocation currentLocation) voidsetProgressListener(ProgressListener progressListener) voidsetUser(WebAuthUserContext user) voidsetUser(WebAuthUserContext user, boolean invalidate) voidvoidtouch()voidMethods inherited from class org.apache.wicket.protocol.http.WebSession
getClientInfo, invalidate, newBrowserInfoPageMethods 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
-