Class SecurityLevelConfig
java.lang.Object
com.inductiveautomation.ignition.common.auth.security.level.SecurityLevelConfig
- All Implemented Interfaces:
- Serializable
A SecurityLevelConfig is a node on a security level tree which encapsulates the node's name, its description, and
 its children.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classSupport for Gson serialization and deserialization
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.inductiveautomation.ignition.common.gson.Gson
- 
Constructor SummaryConstructorsConstructorDescriptionSecurityLevelConfig(String name) SecurityLevelConfig(String name, String description, com.google.common.collect.ImmutableCollection<SecurityLevelConfig> children) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic Optional<SecurityLevelConfig>find(com.google.common.collect.ImmutableCollection<SecurityLevelConfig> children, String... path) static SecurityLevelConfigstatic SecurityLevelConfigfromJsonTree(com.inductiveautomation.ignition.common.gson.JsonElement jsonElement) static com.google.common.collect.ImmutableSet<SecurityLevelConfig>Merges an arbitrary number of security level paths into a security level tree according to the merging behavior specified bymerge(SecurityLevelConfig...).com.google.common.collect.ImmutableSet<SecurityLevelConfig>getName()inthashCode()static com.google.common.collect.ImmutableSet<SecurityLevelConfig>merge(SecurityLevelConfig... configs) Given n number ofSecurityLevelConfigs, merges them together such that for each duplicate security level (identified based on the security level name), the duplicates are merged so the resulting security level has the duplicate name, the description of the last duplicate security level in the given array, and children resulting from recursively merging them together using this method.toJson()com.inductiveautomation.ignition.common.gson.JsonElementString[][]toPaths()toString()
- 
Field Details- 
GSONpublic static final com.inductiveautomation.ignition.common.gson.Gson GSON
 
- 
- 
Constructor Details- 
SecurityLevelConfig
- 
SecurityLevelConfigpublic SecurityLevelConfig(String name, String description, com.google.common.collect.ImmutableCollection<SecurityLevelConfig> children) 
 
- 
- 
Method Details- 
getName
- 
getDescription
- 
getChildren
- 
findpublic static Optional<SecurityLevelConfig> find(com.google.common.collect.ImmutableCollection<SecurityLevelConfig> children, String... path) 
- 
find
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
- 
fromJson
- 
fromJsonTreepublic static SecurityLevelConfig fromJsonTree(com.inductiveautomation.ignition.common.gson.JsonElement jsonElement) 
- 
toJson
- 
toJsonTreepublic com.inductiveautomation.ignition.common.gson.JsonElement toJsonTree()
- 
mergepublic static com.google.common.collect.ImmutableSet<SecurityLevelConfig> merge(SecurityLevelConfig... configs) Given n number ofSecurityLevelConfigs, merges them together such that for each duplicate security level (identified based on the security level name), the duplicates are merged so the resulting security level has the duplicate name, the description of the last duplicate security level in the given array, and children resulting from recursively merging them together using this method. All nullSecurityLevelConfigs are ignored.- Parameters:
- configs- the- SecurityLevelConfigsto merge
- Returns:
- the merged ImmutableSetofSecurityLevelConfigs
 
- 
fromPathspublic static com.google.common.collect.ImmutableSet<SecurityLevelConfig> fromPaths(String[]... paths) Merges an arbitrary number of security level paths into a security level tree according to the merging behavior specified by merge(SecurityLevelConfig...).Each security level path is represented as a Stringarray where the element at position n represents the name of the node at level n + 1 of a security level sub-tree under the root public node containing only the nodes specified in the path.The resultant security level tree is represented as an ImmutableSetofSecurityLevelConfigs where each member of the collection is:- A direct child of the implied root Public security level
- Itself the root of a security level sub-tree
 Any null paths or paths with no elements are ignored. - Parameters:
- paths- the security levels paths to merge
- Returns:
- the security level tree
- See Also:
 
- 
toPaths- Returns:
- a flattened array of security level paths from the root node of this security level config tree to the leaf nodes
 
 
-