info.magnolia.cms.core.version
Class VersionedNode

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateNodeWrapper
      extended by info.magnolia.cms.core.version.VersionedNode
All Implemented Interfaces:
Cloneable, javax.jcr.Item, javax.jcr.Node, javax.jcr.version.Version

public class VersionedNode
extends DelegateNodeWrapper
implements javax.jcr.version.Version

Wrapper for version of the node exposing frozen node content as its own as used to happen in old Content API.

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
VersionedNode(javax.jcr.version.Version versionedNode)
           
 
Method Summary
 javax.jcr.version.VersionHistory getContainingHistory()
           
 Calendar getCreated()
           
 javax.jcr.Node getFrozenNode()
           
 javax.jcr.version.Version getLinearPredecessor()
           
 javax.jcr.version.Version getLinearSuccessor()
           
 javax.jcr.version.Version[] getPredecessors()
           
 javax.jcr.version.Version[] getSuccessors()
           
 javax.jcr.version.Version unwrap()
           
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getAncestor, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getNode, getNodes, getNodes, getNodes, getParent, getPath, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSession, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, getWrappedNode, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, 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, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, 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

VersionedNode

public VersionedNode(javax.jcr.version.Version versionedNode)
              throws javax.jcr.PathNotFoundException,
                     javax.jcr.RepositoryException
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
Method Detail

unwrap

public javax.jcr.version.Version unwrap()

getContainingHistory

public javax.jcr.version.VersionHistory getContainingHistory()
                                                      throws javax.jcr.RepositoryException
Specified by:
getContainingHistory in interface javax.jcr.version.Version
Throws:
javax.jcr.RepositoryException

getCreated

public Calendar getCreated()
                    throws javax.jcr.RepositoryException
Specified by:
getCreated in interface javax.jcr.version.Version
Throws:
javax.jcr.RepositoryException

getFrozenNode

public javax.jcr.Node getFrozenNode()
                             throws javax.jcr.RepositoryException
Specified by:
getFrozenNode in interface javax.jcr.version.Version
Throws:
javax.jcr.RepositoryException

getLinearPredecessor

public javax.jcr.version.Version getLinearPredecessor()
                                               throws javax.jcr.RepositoryException
Specified by:
getLinearPredecessor in interface javax.jcr.version.Version
Throws:
javax.jcr.RepositoryException

getLinearSuccessor

public javax.jcr.version.Version getLinearSuccessor()
                                             throws javax.jcr.RepositoryException
Specified by:
getLinearSuccessor in interface javax.jcr.version.Version
Throws:
javax.jcr.RepositoryException

getPredecessors

public javax.jcr.version.Version[] getPredecessors()
                                            throws javax.jcr.RepositoryException
Specified by:
getPredecessors in interface javax.jcr.version.Version
Throws:
javax.jcr.RepositoryException

getSuccessors

public javax.jcr.version.Version[] getSuccessors()
                                          throws javax.jcr.RepositoryException
Specified by:
getSuccessors in interface javax.jcr.version.Version
Throws:
javax.jcr.RepositoryException


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