InheritanceContentDecorator
public class InheritanceNodeWrapper extends ChildWrappingNodeWrapper
isAnchor()
defines
the anchor to which the inheritance is performed relative to. By default the anchor is of type
(mgnl:content).
The inheritance is then performed as follows:
The getNodes()
and getNodes(String)
methods merge the direct and inherited children by first adding the
inherited children to the iterator and then the direct children.
wrapped
Constructor and Description |
---|
InheritanceNodeWrapper(javax.jcr.Node node)
Deprecated.
|
InheritanceNodeWrapper(javax.jcr.Node node,
AbstractPredicate<javax.jcr.Node> filter)
Deprecated.
|
InheritanceNodeWrapper(javax.jcr.Node node,
javax.jcr.Node start)
Deprecated.
|
InheritanceNodeWrapper(javax.jcr.Node node,
javax.jcr.Node start,
AbstractPredicate<javax.jcr.Node> filter)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected InheritanceNodeWrapper |
findAnchor()
Deprecated.
Find the anchor for this node.
|
protected InheritanceNodeWrapper |
findNextAnchor()
Deprecated.
Find next anchor.
|
javax.jcr.Node |
getNode(String relPath)
Deprecated.
|
javax.jcr.NodeIterator |
getNodes()
Deprecated.
|
javax.jcr.NodeIterator |
getNodes(String namePattern)
Deprecated.
|
protected javax.jcr.Node |
getNodeSafely(InheritanceNodeWrapper anchor,
String path)
Deprecated.
This method returns null if no node has been found.
|
protected javax.jcr.Node |
getNodeSafely(String relPath)
Deprecated.
This method returns null if no node has been found.
|
javax.jcr.Property |
getProperty(String relPath)
Deprecated.
|
boolean |
hasNode(String relPath)
Deprecated.
|
boolean |
hasProperty(String name)
Deprecated.
|
protected boolean |
isAnchor()
Deprecated.
True if this node is an anchor.
|
boolean |
isInherited()
Deprecated.
True if this is not a sub node of the starting point.
|
protected String |
resolveInnerPath()
Deprecated.
Returns the inner path of the this node up to the anchor.
|
void |
setWrappedNode(javax.jcr.Node node)
Deprecated.
|
javax.jcr.Node |
wrapNode(javax.jcr.Node node)
Deprecated.
|
addNode, addNode, getNodes, wrapNodeIterator
accept, addMixin, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getAncestor, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getParent, getPath, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getReferences, getReferences, getSession, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, getWrappedNode, hasNodes, hasProperties, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, lock, merge, orderBefore, refresh, remove, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, save, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, toString, unlock, update
public InheritanceNodeWrapper(javax.jcr.Node node)
public InheritanceNodeWrapper(javax.jcr.Node node, AbstractPredicate<javax.jcr.Node> filter)
public InheritanceNodeWrapper(javax.jcr.Node node, javax.jcr.Node start, AbstractPredicate<javax.jcr.Node> filter)
public InheritanceNodeWrapper(javax.jcr.Node node, javax.jcr.Node start)
public void setWrappedNode(javax.jcr.Node node)
setWrappedNode
in class DelegateNodeWrapper
protected InheritanceNodeWrapper findAnchor() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected InheritanceNodeWrapper findNextAnchor() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected boolean isAnchor()
NodeTypes.Content.NAME
.protected javax.jcr.Node getNodeSafely(String relPath) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String resolveInnerPath() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.Node getNodeSafely(InheritanceNodeWrapper anchor, String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean hasNode(String relPath) throws javax.jcr.RepositoryException
hasNode
in interface javax.jcr.Node
hasNode
in class DelegateNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.Node getNode(String relPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getNode
in interface javax.jcr.Node
getNode
in class ChildWrappingNodeWrapper
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public javax.jcr.NodeIterator getNodes() throws javax.jcr.RepositoryException
getNodes
in interface javax.jcr.Node
getNodes
in class ChildWrappingNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.NodeIterator getNodes(String namePattern) throws javax.jcr.RepositoryException
getNodes
in interface javax.jcr.Node
getNodes
in class ChildWrappingNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.Property getProperty(String relPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getProperty
in interface javax.jcr.Node
getProperty
in class DelegateNodeWrapper
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public boolean hasProperty(String name) throws javax.jcr.RepositoryException
hasProperty
in interface javax.jcr.Node
hasProperty
in class DelegateNodeWrapper
javax.jcr.RepositoryException
public boolean isInherited()
public javax.jcr.Node wrapNode(javax.jcr.Node node)
wrapNode
in interface NodeWrapperFactory
wrapNode
in class ChildWrappingNodeWrapper
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.