public class DefaultInheritanceContentDecorator extends InheritanceContentDecorator
InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper
Constructor and Description |
---|
DefaultInheritanceContentDecorator(javax.jcr.Node destination,
InheritanceConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected javax.jcr.Node |
findFirstAnchor() |
protected boolean |
inheritsNodes(javax.jcr.Node node)
Decides if a node inherits child nodes.
|
protected boolean |
inheritsProperties(javax.jcr.Node node)
Decides if a node inherits properties.
|
protected boolean |
isAnchor(javax.jcr.Node node)
True if this node is an anchor.
|
protected boolean |
isSourceChildInherited(javax.jcr.Node node)
Decides if a specific child node of one of the source should be inherited.
|
protected javax.jcr.NodeIterator |
sortInheritedNodes(javax.jcr.NodeIterator destinationChildren,
List<javax.jcr.NodeIterator> sourceChildren)
Sorts the inherited nodes and provides a
NodeIterator representing that order. |
addSource, combinePropertyIterators, getDestination, isMultipleWrapEnabled, wrapNode
evaluateNode, evaluateProperty, wrapNodeIterator, wrapProperty, wrapPropertyIterator, wrapSession, wrapWorkspace
public DefaultInheritanceContentDecorator(javax.jcr.Node destination, InheritanceConfiguration configuration) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.Node findFirstAnchor() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected boolean isAnchor(javax.jcr.Node node) throws javax.jcr.RepositoryException
NodeTypes.Content.NAME
.node
- the node to evaluatejavax.jcr.RepositoryException
- if a problem occurs accessing the nodeprotected boolean inheritsNodes(javax.jcr.Node node) throws javax.jcr.RepositoryException
InheritanceContentDecorator
inheritsNodes
in class InheritanceContentDecorator
node
- the destination node or a source nodejavax.jcr.RepositoryException
protected boolean inheritsProperties(javax.jcr.Node node) throws javax.jcr.RepositoryException
InheritanceContentDecorator
inheritsProperties
in class InheritanceContentDecorator
node
- the destination node or a source nodejavax.jcr.RepositoryException
protected boolean isSourceChildInherited(javax.jcr.Node node) throws javax.jcr.RepositoryException
InheritanceContentDecorator
isSourceChildInherited
in class InheritanceContentDecorator
node
- a child of one of the source nodesjavax.jcr.RepositoryException
protected javax.jcr.NodeIterator sortInheritedNodes(javax.jcr.NodeIterator destinationChildren, List<javax.jcr.NodeIterator> sourceChildren) throws javax.jcr.RepositoryException
InheritanceContentDecorator
NodeIterator
representing that order. By default orders nodes
from the top-most source first and nodes from the destination last.sortInheritedNodes
in class InheritanceContentDecorator
destinationChildren
- children of the destination nodesourceChildren
- children of each of the source nodes in bottom-up orderjavax.jcr.RepositoryException
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.