org.apache.jackrabbit.rmi.server
Class ServerVersion

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byorg.apache.jackrabbit.rmi.server.ServerObject
                  extended byorg.apache.jackrabbit.rmi.server.ServerItem
                      extended byorg.apache.jackrabbit.rmi.server.ServerNode
                          extended byorg.apache.jackrabbit.rmi.server.ServerVersion
All Implemented Interfaces:
Remote, RemoteItem, RemoteNode, RemoteVersion, Serializable

public class ServerVersion
extends ServerNode
implements RemoteVersion

Remote adapter for the JCR Version interface. This class makes a local version available as an RMI service using the RemoteVersion interface.

Author:
Felix Meschberger
See Also:
Version, RemoteVersion, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerVersion(Version version, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local version.
 
Method Summary
 RemoteVersionHistory getContainingHistory()
          Remote version of the Version.getContainingHistory() Version.getContainingHistory()} method.
 Calendar getCreated()
          Remote version of the Version.getCreated() method.
 RemoteVersion[] getPredecessors()
          Remote version of the Version.getPredecessors() method.
 RemoteVersion[] getSuccessors()
          Remote version of the Version.getSuccessors() method.
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerNode
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperty, getReferences, getUUID, getVersionByUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, restore, restore, restoreByLabel, restoreByUUID, setProperty, setProperty, setProperty, setProperty, unlock, update
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteNode
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperty, getReferences, getUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, restore, restore, restoreByLabel, restoreByUUID, setProperty, setProperty, setProperty, setProperty, unlock, update
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
 

Constructor Detail

ServerVersion

public ServerVersion(Version version,
                     RemoteAdapterFactory factory)
              throws RemoteException
Creates a remote adapter for the given local version.

Parameters:
version - local version
factory - remote adapter factory
Throws:
RemoteException - on RMI errors
Method Detail

getCreated

public Calendar getCreated()
                    throws RepositoryException
Remote version of the Version.getCreated() method.

Specified by:
getCreated in interface RemoteVersion
Returns:
a Calendar object.
Throws:
RepositoryException - on repository errors

getSuccessors

public RemoteVersion[] getSuccessors()
                              throws RepositoryException,
                                     RemoteException
Remote version of the Version.getSuccessors() method.

Specified by:
getSuccessors in interface RemoteVersion
Returns:
a RemoteVersion array.
Throws:
RemoteException - on RMI errors
RepositoryException - on repository errors

getPredecessors

public RemoteVersion[] getPredecessors()
                                throws RepositoryException,
                                       RemoteException
Remote version of the Version.getPredecessors() method.

Specified by:
getPredecessors in interface RemoteVersion
Returns:
a RemoteVersion array.
Throws:
RemoteException - on RMI errors
RepositoryException - on repository errors

getContainingHistory

public RemoteVersionHistory getContainingHistory()
                                          throws RepositoryException,
                                                 RemoteException
Remote version of the Version.getContainingHistory() Version.getContainingHistory()} method.

Specified by:
getContainingHistory in interface RemoteVersion
Returns:
a RemoteVersionHistory.
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors


Copyright © 2004-2006 . All Rights Reserved.