Class MagicAceDefinition


  • public class MagicAceDefinition
    extends Object
    A configuration entry that defines a "magic ACE" rule. This is the object representation of rules that reside in repository.xml.
    Author:
    mlowery
    • Field Detail

      • logicalRole

        public String logicalRole
      • privileges

        public javax.jcr.security.Privilege[] privileges
      • applyToChildren

        public boolean applyToChildren
      • applyToAncestors

        public boolean applyToAncestors
      • applyToTarget

        public boolean applyToTarget
      • exceptChildren

        public String[] exceptChildren
    • Constructor Detail

      • MagicAceDefinition

        public MagicAceDefinition​(String path,
                                  String logicalRole,
                                  javax.jcr.security.Privilege[] privileges,
                                  boolean applyToTarget,
                                  boolean applyToChildren,
                                  boolean applyToAncestors,
                                  String[] exceptChildren)
    • Method Detail

      • hashCode

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

        public static List<MagicAceDefinition> parseYamlMagicAceDefinitions​(InputStream yamlFileInputStream,
                                                                            org.apache.jackrabbit.core.SessionImpl systemSession)
                                                                     throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException