Class WicketAccessControl
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.dataroutes.WicketAccessControl
 
- 
 public final class WicketAccessControl extends java.lang.ObjectHolds 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 SummaryFields Modifier and Type Field Description static RouteAccessControlCONFIG_SECTIONRestricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's configure section.static RouteAccessControlSTATUS_SECTIONRestricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's status section.
 - 
Constructor SummaryConstructors Constructor Description WicketAccessControl()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static RouteAccessControlactiveRoute(RouteAccessControl routeAccessControl)Wraps aRouteAccessControland delegates to it after touching theIgnitionSessionassociated with the request (if one exists).static java.util.Optional<IgnitionSession>getWicketSession(RequestContext context)
 
- 
- 
- 
Field Detail- 
STATUS_SECTIONpublic static final RouteAccessControl STATUS_SECTION Restricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's status section.
 - 
CONFIG_SECTIONpublic static final RouteAccessControl CONFIG_SECTION Restricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's configure section.
 
- 
 - 
Method Detail- 
getWicketSessionpublic static java.util.Optional<IgnitionSession> getWicketSession(RequestContext context) 
 - 
activeRoutepublic static RouteAccessControl activeRoute(RouteAccessControl routeAccessControl) Wraps aRouteAccessControland delegates to it after touching theIgnitionSessionassociated with the request (if one exists).- Parameters:
- routeAccessControl- the- RouteAccessControlto wrap
- Returns:
- the new "active" RouteAccessControlwrapper
 
 
- 
 
-