public class ServerVersion extends ServerNode implements RemoteVersion
Version
interface.
This class makes a local version available as an RMI service using
the RemoteVersion
interface.Version
,
RemoteVersion
,
Serialized Formref
Constructor and Description |
---|
ServerVersion(Version version,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local version.
|
Modifier and Type | Method and Description |
---|---|
RemoteVersionHistory |
getContainingHistory()
Remote version of the
Version.getContainingHistory() method. |
Calendar |
getCreated()
Remote version of the
Version.getCreated() method. |
RemoteNode |
getFrozenNode()
Remote version of the
Version.getFrozenNode() method. |
RemoteVersion |
getLinearPredecessor()
Remote version of the
Version.getLinearPredecessor() method. |
RemoteVersion |
getLinearSuccessor()
Remote version of the
Version.getLinearSuccessor() method. |
RemoteVersion[] |
getPredecessors()
Remote version of the
Version.getPredecessors() method. |
RemoteVersion[] |
getSuccessors()
Remote version of the
Version.getSuccessors() method. |
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, getVersionByUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restoreByLabel, restoreByUUID, setPrimaryType, setProperty, setProperty, setProperty, setProperty, unlock, update
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
equals, getRef, hashCode, toString, toStub
finalize, getClass, notify, notifyAll, wait, wait, wait
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, restoreByLabel, restoreByUUID, setPrimaryType, setProperty, setProperty, setProperty, setProperty, unlock, update
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
public ServerVersion(Version version, RemoteAdapterFactory factory) throws RemoteException
version
- local versionfactory
- remote adapter factoryRemoteException
- on RMI errorspublic RemoteVersionHistory getContainingHistory() throws RepositoryException, RemoteException
Version.getContainingHistory()
method.getContainingHistory
in interface RemoteVersion
RemoteVersionHistory
object.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic Calendar getCreated() throws RepositoryException
Version.getCreated()
method.getCreated
in interface RemoteVersion
Calendar
object.RepositoryException
- on repository errorspublic RemoteVersion getLinearSuccessor() throws RepositoryException, RemoteException
Version.getLinearSuccessor()
method.getLinearSuccessor
in interface RemoteVersion
RemoteVersion
or null
if no linear
successor exists.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteVersionHistory.getAllLinearVersions()
public RemoteVersion[] getSuccessors() throws RepositoryException, RemoteException
Version.getSuccessors()
method.getSuccessors
in interface RemoteVersion
RemoteVersion
array.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteVersion getLinearPredecessor() throws RepositoryException, RemoteException
Version.getLinearPredecessor()
method.getLinearPredecessor
in interface RemoteVersion
RemoteVersion
or null
if no linear
predecessor exists.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteVersionHistory.getAllLinearVersions()
public RemoteVersion[] getPredecessors() throws RepositoryException, RemoteException
Version.getPredecessors()
method.getPredecessors
in interface RemoteVersion
RemoteVersion
array.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNode getFrozenNode() throws RepositoryException, RemoteException
Version.getFrozenNode()
method.getFrozenNode
in interface RemoteVersion
RemoteNode
object.RepositoryException
- on repository errorsRemoteException
- on RMI errorsCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.