Class PermissionsConfig

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class PermissionsConfig
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Method Detail

      • 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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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.