Class AbstractAccessControlStrategy

java.lang.Object
com.inductiveautomation.ignition.gateway.dataroutes.AbstractAccessControlStrategy
All Implemented Interfaces:
AccessControlStrategy
Direct Known Subclasses:
AbstractGatewayAccessControlStrategy

public abstract class AbstractAccessControlStrategy extends Object implements AccessControlStrategy
  • Field Details

    • EMPTY_SECURITY_LEVELS

      protected static final com.google.common.collect.ImmutableCollection<SecurityLevelConfig> EMPTY_SECURITY_LEVELS
  • Constructor Details

    • AbstractAccessControlStrategy

      public AbstractAccessControlStrategy()
  • Method Details

    • getRequiredPermissions

      protected abstract Set<PermissionsConfig> getRequiredPermissions(RequestContext context)
      Get the required permissions for the given request. If more than one permissions config is returned, the route will be granted access if any of the permissions configs are satisfied. In other words, the returned configs are OR-ed together.
    • getSecurityLevels

      protected abstract com.google.common.collect.ImmutableCollection<SecurityLevelConfig> getSecurityLevels(RequestContext request)
      Returns:
      The security levels associated with the request.
    • canAccess

      public RouteAccess canAccess(RequestContext context)
      Description copied from interface: AccessControlStrategy
      Determines whether the request should be allowed to proceed.
      Specified by:
      canAccess in interface AccessControlStrategy