java.lang.Object
com.inductiveautomation.ignition.common.auth.permissions.PermissionsConfig
All Implemented Interfaces:
Serializable

public abstract class PermissionsConfig extends Object implements Serializable
See Also:
  • Field Details

  • Method Details

    • getType

      public abstract PermissionsConfig.Type getType()
    • getSecurityLevels

      public com.google.common.collect.ImmutableSet<SecurityLevelConfig> getSecurityLevels()
    • isEmpty

      public boolean isEmpty()
      Returns:
      true if the security levels are empty
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toJsonTree

      public com.inductiveautomation.ignition.common.gson.JsonElement toJsonTree()
    • fromJsonTree

      public static PermissionsConfig fromJsonTree(com.inductiveautomation.ignition.common.gson.JsonElement json)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static PermissionsConfig of()
    • of

      public static PermissionsConfig of(PermissionsConfig.Type type)
    • of

      public static PermissionsConfig of(PermissionsConfig.Type type, com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevels)
    • builder

      public static PermissionsConfig.Builder builder(PermissionsConfig.Type type)
    • isAuthorized

      public boolean isAuthorized(com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevels)
      Checks if the given security levels are authorized against the security levels contained in this PermissionsConfig. If this PermissionsConfig is type AllOf, each of the security levels in this PermissionsConfig must be an ancestor of one of the given security levels. If this PermissionsConfig is type AnyOf, at least one of the security levels in this PermissionsConfig must be an ancestor of one of the given security levels.