org.apache.jackrabbit.core.version
Class InternalFrozenNodeImpl

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

public class InternalFrozenNodeImpl
extends org.apache.jackrabbit.core.version.InternalFreezeImpl
implements InternalFrozenNode

Implements a InternalFrozenNode


Constructor Summary
InternalFrozenNodeImpl(VersionManagerImpl vMgr, org.apache.jackrabbit.core.version.NodeStateEx node, InternalVersionItem parent)
          Creates a new frozen node based on the given persistance node.
 
Method Summary
protected static org.apache.jackrabbit.core.version.NodeStateEx checkin(org.apache.jackrabbit.core.version.NodeStateEx parent, QName name, NodeImpl src)
          Checks-in a src node.
 InternalFreeze[] getFrozenChildNodes()
          Returns the list of frozen child nodes
 QName[] getFrozenMixinTypes()
          Returns the list of names of the frozen mixin types.
 QName getFrozenPrimaryType()
          Returns the name of frozen primary type.
 PropertyState[] getFrozenProperties()
          Returns the list of frozen properties.
 String getFrozenUUID()
          Returns the frozen UUID.
 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
protected  VersionManagerImpl getVersionManager()
          Returns the persistent version manager for this item
 boolean hasFrozenHistory(String uuid)
          Checks if this frozen node has the frozen version history
 
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

InternalFrozenNodeImpl

public InternalFrozenNodeImpl(VersionManagerImpl vMgr,
                              org.apache.jackrabbit.core.version.NodeStateEx node,
                              InternalVersionItem parent)
                       throws RepositoryException
Creates a new frozen node based on the given persistance node.

Parameters:
node -
Throws:
RepositoryException
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:

getFrozenChildNodes

public InternalFreeze[] getFrozenChildNodes()
                                     throws VersionException
Returns the list of frozen child nodes

Specified by:
getFrozenChildNodes in interface InternalFrozenNode
Returns:
an array of internal freezes
Throws:
VersionException - if the freezes cannot be retrieved

hasFrozenHistory

public boolean hasFrozenHistory(String uuid)
Checks if this frozen node has the frozen version history

Specified by:
hasFrozenHistory in interface InternalFrozenNode
Parameters:
uuid -
Returns:

getFrozenProperties

public PropertyState[] getFrozenProperties()
Returns the list of frozen properties.

Specified by:
getFrozenProperties in interface InternalFrozenNode
Returns:
an array of property states

getFrozenUUID

public String getFrozenUUID()
Returns the frozen UUID.

Specified by:
getFrozenUUID in interface InternalFrozenNode
Returns:
the frozen uuid.

getFrozenPrimaryType

public QName getFrozenPrimaryType()
Returns the name of frozen primary type.

Specified by:
getFrozenPrimaryType in interface InternalFrozenNode
Returns:
the name of the frozen primary type.

getFrozenMixinTypes

public QName[] getFrozenMixinTypes()
Returns the list of names of the frozen mixin types.

Specified by:
getFrozenMixinTypes in interface InternalFrozenNode
Returns:
the list of names of the frozen mixin types.

checkin

protected static org.apache.jackrabbit.core.version.NodeStateEx checkin(org.apache.jackrabbit.core.version.NodeStateEx parent,
                                                                        QName name,
                                                                        NodeImpl src)
                                                                 throws RepositoryException
Checks-in a src node. It creates a new child node of parent with the given name and adds the source nodes properties according to their OPV value to the list of frozen properties. It creates frozen child nodes for each child node of src according to its OPV value.

Parameters:
parent -
name -
src -
Returns:
Throws:
RepositoryException

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.