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:
javax.jcr.Item, javax.jcr.Node, javax.jcr.version.Version

public class ClientVersion
extends ClientNode
implements javax.jcr.version.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(javax.jcr.Session session, RemoteVersion remote, LocalAdapterFactory factory)
          Creates a local adapter for the given remote version.
 
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()
          
 
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(javax.jcr.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 javax.jcr.RepositoryException

Specified by:
getCreated 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

getPredecessors

public javax.jcr.version.Version[] getPredecessors()
                                            throws javax.jcr.RepositoryException

Specified by:
getPredecessors in interface javax.jcr.version.Version
Throws:
javax.jcr.RepositoryException

getContainingHistory

public javax.jcr.version.VersionHistory getContainingHistory()
                                                      throws javax.jcr.RepositoryException

Specified by:
getContainingHistory 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


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