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 Summary
Fields 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 Summary
Constructors Constructor Description WicketAccessControl()
-
Method Summary
All 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_SECTION
public 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_SECTION
public 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
-
getWicketSession
public static java.util.Optional<IgnitionSession> getWicketSession(RequestContext context)
-
activeRoute
public static RouteAccessControl activeRoute(RouteAccessControl routeAccessControl)
Wraps aRouteAccessControland delegates to it after touching theIgnitionSessionassociated with the request (if one exists).- Parameters:
routeAccessControl- theRouteAccessControlto wrap- Returns:
- the new "active"
RouteAccessControlwrapper
-
-