info.magnolia.cms.core.version
Class VersionedNodeChild

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateNodeWrapper
      extended by info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper<PropertyAndChildWrappingContentDecorator>
          extended by info.magnolia.jcr.wrapper.PropertyAndChildWrappingNodeWrapper
              extended by info.magnolia.cms.core.version.VersionedNodeChild
All Implemented Interfaces:
Cloneable, javax.jcr.Item, javax.jcr.Node

public class VersionedNodeChild
extends PropertyAndChildWrappingNodeWrapper

Wrapper for version of the node.


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
VersionedNodeChild(VersionedNodeChild versionedNode, javax.jcr.Node node)
           
VersionedNodeChild(VersionedNode versionedNode, javax.jcr.Node node)
           
 
Method Summary
 javax.jcr.Item getAncestor(int depth)
           
 int getDepth()
           
 javax.jcr.Node getParent()
           
 String getPath()
           
 javax.jcr.nodetype.NodeType getPrimaryNodeType()
           
 boolean isNodeType(String nodeTypeName)
           
 
Methods inherited from class info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper
addNode, addNode, equals, getContentDecorator, getNode, getNodes, getNodes, getNodes, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSession, getWeakReferences, getWeakReferences, hashCode, hasNode, 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, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getPrimaryItem, getSharedSet, getUUID, getVersionHistory, getWrappedNode, hasProperties, hasProperty, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, 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
 

Constructor Detail

VersionedNodeChild

public VersionedNodeChild(VersionedNode versionedNode,
                          javax.jcr.Node node)

VersionedNodeChild

public VersionedNodeChild(VersionedNodeChild versionedNode,
                          javax.jcr.Node node)
Method Detail

getDepth

public int getDepth()
             throws javax.jcr.RepositoryException
Specified by:
getDepth in interface javax.jcr.Item
Overrides:
getDepth in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getAncestor

public javax.jcr.Item getAncestor(int depth)
                           throws javax.jcr.ItemNotFoundException,
                                  javax.jcr.AccessDeniedException,
                                  javax.jcr.RepositoryException
Specified by:
getAncestor in interface javax.jcr.Item
Overrides:
getAncestor in class ContentDecoratorNodeWrapper<PropertyAndChildWrappingContentDecorator>
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getParent

public javax.jcr.Node getParent()
                         throws javax.jcr.ItemNotFoundException,
                                javax.jcr.AccessDeniedException,
                                javax.jcr.RepositoryException
Specified by:
getParent in interface javax.jcr.Item
Overrides:
getParent in class ContentDecoratorNodeWrapper<PropertyAndChildWrappingContentDecorator>
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getPath

public String getPath()
               throws javax.jcr.RepositoryException
Specified by:
getPath in interface javax.jcr.Item
Overrides:
getPath in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getPrimaryNodeType

public javax.jcr.nodetype.NodeType getPrimaryNodeType()
                                               throws javax.jcr.RepositoryException
Specified by:
getPrimaryNodeType in interface javax.jcr.Node
Overrides:
getPrimaryNodeType in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

isNodeType

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


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