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 Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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_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
Restricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's configure section.
-
-
Constructor Details
-
WicketAccessControl
public WicketAccessControl()
-
-
Method Details
-
getWicketSession
-
activeRoute
Wraps aRouteAccessControland delegates to it after touching theIgnitionSessionassociated with the request (if one exists).- Parameters:
routeAccessControl- theRouteAccessControlto wrap- Returns:
- the new "active"
RouteAccessControlwrapper
-