Class DocumentBundlor


  • public class DocumentBundlor
    extends Object
    • Field Detail

      • BUNDLOR_META_PROP_PREFIX

        public static final String BUNDLOR_META_PROP_PREFIX
        Prefix used for various meta properties used for bundling
        See Also:
        Constant Field Values
      • META_PROP_PATTERN

        public static final String META_PROP_PATTERN
        Hidden property to store the pattern as part of NodeState TODO - Also store the NodeType
        See Also:
        Constant Field Values
      • META_PROP_BUNDLING_PATH

        public static final String META_PROP_BUNDLING_PATH
        Hidden property name used as suffix for relative node path to indicate presence of that node. So for a relative node 'jcr:content' the parent node must have a property 'jcr:content/:doc-self-path.

        Its value is the depth of the bundled child node

        See Also:
        Constant Field Values
      • META_PROP_BUNDLED_CHILD

        public static final String META_PROP_BUNDLED_CHILD
        Hidden property name having boolean value indicating that current node has children which are bundled
        See Also:
        Constant Field Values
      • META_PROP_NON_BUNDLED_CHILD

        public static final String META_PROP_NON_BUNDLED_CHILD
        Hidden property name having boolean value indicating that current node has children which are not bundled
        See Also:
        Constant Field Values
      • PROP_DISABLED

        public static final String PROP_DISABLED
        Boolean property. If set to true then that bundlor config would be considered as disabled and would not be used
        See Also:
        Constant Field Values
    • Method Detail

      • from

        public static DocumentBundlor from​(org.apache.jackrabbit.oak.spi.state.NodeState nodeState)
      • from

        public static DocumentBundlor from​(org.apache.jackrabbit.oak.api.PropertyState prop)
      • isBundled

        public boolean isBundled​(String relativePath)
      • asPropertyState

        public org.apache.jackrabbit.oak.api.PropertyState asPropertyState()
      • createMatcher

        public Matcher createMatcher()