info.magnolia.jcr.wrapper
Class ChildWrappingNodeWrapper
java.lang.Object
info.magnolia.jcr.wrapper.DelegateNodeWrapper
info.magnolia.jcr.wrapper.ChildWrappingNodeWrapper
- All Implemented Interfaces:
- NodeWrapperFactory, Cloneable, javax.jcr.Item, javax.jcr.Node
- Direct Known Subclasses:
- ChildFilteringNodeWrapper, I18nNodeWrapper, InheritanceNodeWrapper, MgnlVersioningNodeWrapper, PropertyAndChildWrappingNodeWrapper, PropertyFilteringNodeWrapper
public abstract class ChildWrappingNodeWrapper
- extends DelegateNodeWrapper
- implements NodeWrapperFactory
Wrapper providing support for wrapping all child nodes of the wrapped node incl those returned by the NodeIterators.
- Version:
- $Id$
Fields inherited from interface javax.jcr.Node |
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS |
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper |
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, getProperty, getReferences, getReferences, getSession, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, getWrappedNode, hasNode, hasNodes, hasProperties, hasProperty, 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, setWrappedNode, toString, unlock, update |
ChildWrappingNodeWrapper
public ChildWrappingNodeWrapper(javax.jcr.Node wrapped)
getNode
public javax.jcr.Node getNode(String relPath)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Specified by:
getNode
in interface javax.jcr.Node
- Overrides:
getNode
in class DelegateNodeWrapper
- Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
addNode
public javax.jcr.Node addNode(String relPath)
throws javax.jcr.ItemExistsException,
javax.jcr.PathNotFoundException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
- Specified by:
addNode
in interface javax.jcr.Node
- Overrides:
addNode
in class DelegateNodeWrapper
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
addNode
public javax.jcr.Node addNode(String relPath,
String primaryNodeTypeName)
throws javax.jcr.ItemExistsException,
javax.jcr.PathNotFoundException,
javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.lock.LockException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
addNode
in interface javax.jcr.Node
- Overrides:
addNode
in class DelegateNodeWrapper
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.lock.LockException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
getNodes
public javax.jcr.NodeIterator getNodes()
throws javax.jcr.RepositoryException
- Specified by:
getNodes
in interface javax.jcr.Node
- Overrides:
getNodes
in class DelegateNodeWrapper
- Throws:
javax.jcr.RepositoryException
getNodes
public javax.jcr.NodeIterator getNodes(String namePattern)
throws javax.jcr.RepositoryException
- Specified by:
getNodes
in interface javax.jcr.Node
- Overrides:
getNodes
in class DelegateNodeWrapper
- Throws:
javax.jcr.RepositoryException
getNodes
public javax.jcr.NodeIterator getNodes(String[] nameGlobs)
throws javax.jcr.RepositoryException
- Specified by:
getNodes
in interface javax.jcr.Node
- Overrides:
getNodes
in class DelegateNodeWrapper
- Throws:
javax.jcr.RepositoryException
wrapNode
public javax.jcr.Node wrapNode(javax.jcr.Node node)
- Specified by:
wrapNode
in interface NodeWrapperFactory
wrapNodeIterator
protected javax.jcr.NodeIterator wrapNodeIterator(javax.jcr.NodeIterator nodeIterator)
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.