Class DocumentBundlor
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.bundlor.DocumentBundlor
-
public class DocumentBundlor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUNDLOR_META_PROP_PREFIX
Prefix used for various meta properties used for bundlingstatic String
HAS_CHILD_PROP_PREFIX
static String
META_PROP_BUNDLED_CHILD
Hidden property name having boolean value indicating that current node has children which are bundledstatic String
META_PROP_BUNDLING_PATH
Hidden property name used as suffix for relative node path to indicate presence of that node.static String
META_PROP_NON_BUNDLED_CHILD
Hidden property name having boolean value indicating that current node has children which are not bundledstatic String
META_PROP_PATTERN
Hidden property to store the pattern as part of NodeState TODO - Also store the NodeTypestatic String
PROP_DISABLED
Boolean property.static String
PROP_PATTERN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyState
asPropertyState()
Matcher
createMatcher()
static DocumentBundlor
from(Iterable<String> includeStrings)
static DocumentBundlor
from(PropertyState prop)
static DocumentBundlor
from(NodeState nodeState)
boolean
isBundled(String relativePath)
String
toString()
-
-
-
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
-
HAS_CHILD_PROP_PREFIX
public static final String HAS_CHILD_PROP_PREFIX
- 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
-
PROP_PATTERN
public static final String PROP_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
from
public static DocumentBundlor from(NodeState nodeState)
-
from
public static DocumentBundlor from(Iterable<String> includeStrings)
-
from
public static DocumentBundlor from(PropertyState prop)
-
isBundled
public boolean isBundled(String relativePath)
-
asPropertyState
public PropertyState asPropertyState()
-
createMatcher
public Matcher createMatcher()
-
-