org.apache.jackrabbit.core.version
Class InternalFrozenVHImpl

java.lang.Object
  extended byorg.apache.jackrabbit.core.version.InternalVersionItemImpl
      extended byorg.apache.jackrabbit.core.version.InternalFreezeImpl
          extended byorg.apache.jackrabbit.core.version.InternalFrozenVHImpl
All Implemented Interfaces:
InternalFreeze, InternalFrozenVersionHistory, InternalVersionItem

public class InternalFrozenVHImpl
extends org.apache.jackrabbit.core.version.InternalFreezeImpl
implements InternalFrozenVersionHistory

Implements a InternalFrozenVersionHistory


Constructor Summary
InternalFrozenVHImpl(VersionManagerImpl vMgr, org.apache.jackrabbit.core.version.NodeStateEx node, InternalVersionItem parent)
          Creates a new frozen version history.
 
Method Summary
 String getBaseVersionId()
          Returns the id of the base version that was assigned to the node at the time it was versioned.
 InternalVersion getBaseVesion()
          Returns the base version that was assigned to the node at the time it was versioned.
 String getId()
          Returns the external id of this item
 QName getName()
          returns the name of the node.
 InternalVersionItem getParent()
          returns the parent version item or null
 InternalVersionHistory getVersionHistory()
          Returns the version history that was assigned to the node at the time it was versioned.
 String getVersionHistoryId()
          Returns the id of the version history that was assigned to the node at the time it was versioned.
protected  VersionManagerImpl getVersionManager()
          Returns the persistent version manager for this item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.core.version.InternalVersionItem
getParent
 

Constructor Detail

InternalFrozenVHImpl

public InternalFrozenVHImpl(VersionManagerImpl vMgr,
                            org.apache.jackrabbit.core.version.NodeStateEx node,
                            InternalVersionItem parent)
Creates a new frozen version history.

Parameters:
node -
Method Detail

getName

public QName getName()
returns the name of the node.

Specified by:
getName in interface InternalFreeze
Returns:
the name of the node.

getId

public String getId()
Returns the external id of this item

Specified by:
getId in interface InternalVersionItem
Returns:

getVersionHistoryId

public String getVersionHistoryId()
Returns the id of the version history that was assigned to the node at the time it was versioned.

Specified by:
getVersionHistoryId in interface InternalFrozenVersionHistory
Returns:
the id of the version history

getVersionHistory

public InternalVersionHistory getVersionHistory()
                                         throws VersionException
Returns the version history that was assigned to the node at the time it was versioned.

Specified by:
getVersionHistory in interface InternalFrozenVersionHistory
Returns:
the internal version history.
Throws:
VersionException - if the history cannot be retrieved.

getBaseVersionId

public String getBaseVersionId()
Returns the id of the base version that was assigned to the node at the time it was versioned.

Specified by:
getBaseVersionId in interface InternalFrozenVersionHistory
Returns:
the id of the base version

getBaseVesion

public InternalVersion getBaseVesion()
                              throws VersionException
Returns the base version that was assigned to the node at the time it was versioned.

Specified by:
getBaseVesion in interface InternalFrozenVersionHistory
Returns:
the inernal base version
Throws:
VersionException - if the version could not be retrieved

getParent

public InternalVersionItem getParent()
returns the parent version item or null

Specified by:
getParent in interface InternalVersionItem
Returns:

getVersionManager

protected VersionManagerImpl getVersionManager()
Returns the persistent version manager for this item

Returns:


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.