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(javax.jcr.version.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(javax.jcr.version.Version version, RemoteAdapterFactory factory) throws RemoteException
version
- local versionfactory
- remote adapter factoryRemoteException
- on RMI errorspublic RemoteVersionHistory getContainingHistory() throws javax.jcr.RepositoryException, RemoteException
Version.getContainingHistory()
method.getContainingHistory
in interface RemoteVersion
RemoteVersionHistory
object.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic Calendar getCreated() throws javax.jcr.RepositoryException
Version.getCreated()
method.getCreated
in interface RemoteVersion
Calendar
object.javax.jcr.RepositoryException
- on repository errorspublic RemoteVersion getLinearSuccessor() throws javax.jcr.RepositoryException, RemoteException
Version.getLinearSuccessor()
method.getLinearSuccessor
in interface RemoteVersion
RemoteVersion
or null
if no linear
successor exists.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteVersionHistory.getAllLinearVersions()
public RemoteVersion[] getSuccessors() throws javax.jcr.RepositoryException, RemoteException
Version.getSuccessors()
method.getSuccessors
in interface RemoteVersion
RemoteVersion
array.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteVersion getLinearPredecessor() throws javax.jcr.RepositoryException, RemoteException
Version.getLinearPredecessor()
method.getLinearPredecessor
in interface RemoteVersion
RemoteVersion
or null
if no linear
predecessor exists.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsRemoteVersionHistory.getAllLinearVersions()
public RemoteVersion[] getPredecessors() throws javax.jcr.RepositoryException, RemoteException
Version.getPredecessors()
method.getPredecessors
in interface RemoteVersion
RemoteVersion
array.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic RemoteNode getFrozenNode() throws javax.jcr.RepositoryException, RemoteException
Version.getFrozenNode()
method.getFrozenNode
in interface RemoteVersion
RemoteNode
object.javax.jcr.RepositoryException
- on repository errorsRemoteException
- on RMI errorsCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.