org.apache.jackrabbit.rmi.server
Class ServerVersion

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

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.

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, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, 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, getSerialValue, getSerialValues
 
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, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, 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:
RepositoryException - on repository errors
RemoteException - on RMI 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:
RepositoryException - on repository errors
RemoteException - on RMI 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-2010 The Apache Software Foundation. All Rights Reserved.