org.apache.jackrabbit.rmi.client
Class ClientVersion

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.ClientItem
          extended by org.apache.jackrabbit.rmi.client.ClientNode
              extended by org.apache.jackrabbit.rmi.client.ClientVersion
All Implemented Interfaces:
Item, Node, Version

public class ClientVersion
extends ClientNode
implements Version

Local adapter for the JCR-RMI RemoteVersion interface. This class makes a remote version locally available using the JCR Version interface.

See Also:
Version, RemoteVersion

Field Summary
 
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
ClientVersion(Session session, RemoteVersion remote, LocalAdapterFactory factory)
          Creates a local adapter for the given remote version.
 
Method Summary
 VersionHistory getContainingHistory()
          
 Calendar getCreated()
          
 Node getFrozenNode()
           
 Version getLinearPredecessor()
           
 Version getLinearSuccessor()
           
 Version[] getPredecessors()
          
 Version[] getSuccessors()
          
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientNode
accept, 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, isNode, 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 class org.apache.jackrabbit.rmi.client.ClientItem
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

ClientVersion

public ClientVersion(Session session,
                     RemoteVersion remote,
                     LocalAdapterFactory factory)
Creates a local adapter for the given remote version.

Parameters:
session - current session
remote - remote version
factory - local adapter factory
Method Detail

getCreated

public Calendar getCreated()
                    throws RepositoryException

Specified by:
getCreated in interface Version
Throws:
RepositoryException

getSuccessors

public Version[] getSuccessors()
                        throws RepositoryException

Specified by:
getSuccessors in interface Version
Throws:
RepositoryException

getPredecessors

public Version[] getPredecessors()
                          throws RepositoryException

Specified by:
getPredecessors in interface Version
Throws:
RepositoryException

getContainingHistory

public VersionHistory getContainingHistory()
                                    throws RepositoryException

Specified by:
getContainingHistory in interface Version
Throws:
RepositoryException

getFrozenNode

public Node getFrozenNode()
                   throws RepositoryException
Specified by:
getFrozenNode in interface Version
Throws:
RepositoryException

getLinearPredecessor

public Version getLinearPredecessor()
                             throws RepositoryException
Specified by:
getLinearPredecessor in interface Version
Throws:
RepositoryException

getLinearSuccessor

public Version getLinearSuccessor()
                           throws RepositoryException
Specified by:
getLinearSuccessor in interface Version
Throws:
RepositoryException


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