Class WicketAccessControl
java.lang.Object
com.inductiveautomation.ignition.gateway.dataroutes.WicketAccessControl
Holds some static instances of RouteAccessControl objects that help data-api routes require the user to
 have an active wicket session and be logged in to various sections of the web ui.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final RouteAccessControlRestricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's configure section.static final RouteAccessControlRestricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's status section.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic RouteAccessControlactiveRoute(RouteAccessControl routeAccessControl) Wraps aRouteAccessControland delegates to it after touching theIgnitionSessionassociated with the request (if one exists).static Optional<IgnitionSession>getWicketSession(RequestContext context) 
- 
Field Details- 
STATUS_SECTIONRestricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's status section.
- 
CONFIG_SECTIONRestricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's configure section.
 
- 
- 
Constructor Details- 
WicketAccessControlpublic WicketAccessControl()
 
- 
- 
Method Details- 
getWicketSession
- 
activeRouteWraps aRouteAccessControland delegates to it after touching theIgnitionSessionassociated with the request (if one exists).- Parameters:
- routeAccessControl- the- RouteAccessControlto wrap
- Returns:
- the new "active" RouteAccessControlwrapper
 
 
-