info.magnolia.jcr.inheritance
Class InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateNodeWrapper
      extended by info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper
          extended by info.magnolia.jcr.inheritance.InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper
All Implemented Interfaces:
InheritanceNodeWrapper, Cloneable, javax.jcr.Item, javax.jcr.Node
Enclosing class:
InheritanceContentDecorator

public class InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper
extends ContentDecoratorNodeWrapper
implements InheritanceNodeWrapper

Wrapper applied to the destination node. Uses

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
wrapped
 
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
 
Constructor Summary
InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper(javax.jcr.Node node)
           
 
Method Summary
 javax.jcr.Node deepUnwrap(Class<? extends DelegateNodeWrapper> wrapper)
          Removes a wrapper by type.
 javax.jcr.Node getNode(String relPath)
           
 javax.jcr.NodeIterator getNodes()
           
 javax.jcr.NodeIterator getNodes(String namePattern)
           
 javax.jcr.NodeIterator getNodes(String[] nameGlobs)
           
 javax.jcr.PropertyIterator getProperties()
           
 javax.jcr.PropertyIterator getProperties(String namePattern)
           
 javax.jcr.PropertyIterator getProperties(String[] nameGlobs)
           
 javax.jcr.Property getProperty(String relPath)
           
 boolean hasNode(String relPath)
           
 boolean hasProperty(String relPath)
           
 boolean isInherited()
           
 
Methods inherited from class info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper
addNode, addNode, equals, getAncestor, getContentDecorator, getParent, getReferences, getReferences, getSession, getWeakReferences, getWeakReferences, hashCode, hasNodes, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setWrappedNode, wrapNode, wrapNodeIterator, wrapProperty, wrapPropertyIterator, wrapSession
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
accept, addMixin, canAddMixin, cancelMerge, checkin, checkout, clone, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getPath, getPrimaryItem, getPrimaryNodeType, getSharedSet, getUUID, getVersionHistory, getWrappedNode, hasProperties, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, lock, merge, orderBefore, refresh, remove, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, save, setPrimaryType, toString, unlock, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jcr.Node
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getPrimaryItem, getPrimaryNodeType, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNodes, hasProperties, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update
 
Methods inherited from interface javax.jcr.Item
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
 

Constructor Detail

InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper

public InheritanceContentDecorator.DestinationNodeInheritanceNodeWrapper(javax.jcr.Node node)
Method Detail

hasNode

public boolean hasNode(String relPath)
                throws javax.jcr.RepositoryException
Specified by:
hasNode in interface javax.jcr.Node
Overrides:
hasNode in class ContentDecoratorNodeWrapper
Throws:
javax.jcr.RepositoryException

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 ContentDecoratorNodeWrapper
Throws:
javax.jcr.PathNotFoundException
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 ContentDecoratorNodeWrapper
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 ContentDecoratorNodeWrapper
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 ContentDecoratorNodeWrapper
Throws:
javax.jcr.RepositoryException

hasProperty

public boolean hasProperty(String relPath)
                    throws javax.jcr.RepositoryException
Specified by:
hasProperty in interface javax.jcr.Node
Overrides:
hasProperty in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperty

public javax.jcr.Property getProperty(String relPath)
                               throws javax.jcr.PathNotFoundException,
                                      javax.jcr.RepositoryException
Specified by:
getProperty in interface javax.jcr.Node
Overrides:
getProperty in class ContentDecoratorNodeWrapper
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getProperties

public javax.jcr.PropertyIterator getProperties()
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class ContentDecoratorNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperties

public javax.jcr.PropertyIterator getProperties(String namePattern)
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class ContentDecoratorNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperties

public javax.jcr.PropertyIterator getProperties(String[] nameGlobs)
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class ContentDecoratorNodeWrapper
Throws:
javax.jcr.RepositoryException

isInherited

public boolean isInherited()
Specified by:
isInherited in interface InheritanceNodeWrapper

deepUnwrap

public javax.jcr.Node deepUnwrap(Class<? extends DelegateNodeWrapper> wrapper)
Description copied from class: DelegateNodeWrapper
Removes a wrapper by type. The wrapper can be deep in a chain of wrappers in which case wrappers before it will be cloned creating a new chain that leads to the same real node.

Overrides:
deepUnwrap in class DelegateNodeWrapper


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.