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 RouteAccessControl
Restricts a route handler to only be accessible when the web session is currently logged into the gateway web ui's configure section.static final RouteAccessControl
Restricts 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 RouteAccessControl
activeRoute
(RouteAccessControl routeAccessControl) Wraps aRouteAccessControl
and delegates to it after touching theIgnitionSession
associated 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 aRouteAccessControl
and delegates to it after touching theIgnitionSession
associated with the request (if one exists).- Parameters:
routeAccessControl
- theRouteAccessControl
to wrap- Returns:
- the new "active"
RouteAccessControl
wrapper
-