Remote adapter for the JCR VersionHistory
interface. This class makes a local version history available as an RMI
service using the
RemoteVersionHistory
interface.
@Deprecated public class ServerVersionHistory extends ServerNode implements RemoteVersionHistory
VersionHistory
,
RemoteVersionHistory
,
Serialized Formref
Constructor and Description |
---|
ServerVersionHistory(VersionHistory versionHistory,
RemoteAdapterFactory factory)
Deprecated.
Creates a remote adapter for the given local version history.
|
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 ServerVersionHistory(VersionHistory versionHistory, RemoteAdapterFactory factory) throws RemoteException
versionHistory
- local version historyfactory
- remote adapter factoryRemoteException
- on RMI errorspublic String getVersionableIdentifier() throws RepositoryException, RemoteException
VersionHistory.getVersionableIdentifier()
VersionHistory.getVersionableIdentifier()}
method.getVersionableIdentifier
in interface RemoteVersionHistory
RepositoryException
- if an error occurs.RemoteException
- on RMI errorspublic RemoteVersion getRootVersion() throws RepositoryException, RemoteException
VersionHistory.getRootVersion()
method.getRootVersion
in interface RemoteVersionHistory
Version
object.RepositoryException
- if an error occurs.RemoteException
- on RMI errorspublic RemoteIterator getAllLinearVersions() throws RepositoryException, RemoteException
VersionHistory.getAllLinearVersions()
method.getAllLinearVersions
in interface RemoteVersionHistory
RepositoryException
- if an error occurs.RemoteException
- on RMI errorspublic RemoteIterator getAllVersions() throws RepositoryException, RemoteException
VersionHistory.getAllVersions()
method.getAllVersions
in interface RemoteVersionHistory
RepositoryException
- if an error occurs.RemoteException
- on RMI errorspublic RemoteIterator getAllLinearFrozenNodes() throws RepositoryException, RemoteException
VersionHistory.getAllLinearFrozenNodes()
method.getAllLinearFrozenNodes
in interface RemoteVersionHistory
RepositoryException
- if an error occurs.RemoteException
- on RMI errorspublic RemoteIterator getAllFrozenNodes() throws RepositoryException, RemoteException
VersionHistory.getAllFrozenNodes()
method.getAllFrozenNodes
in interface RemoteVersionHistory
RepositoryException
- if an error occurs.RemoteException
- on RMI errorspublic RemoteVersion getVersion(String versionName) throws RepositoryException, RemoteException
VersionHistory.getVersion(String)
method.getVersion
in interface RemoteVersionHistory
versionName
- a version nameVersion
object.RepositoryException
- if an error occurs.RemoteException
- on RMI errorspublic RemoteVersion getVersionByLabel(String label) throws RepositoryException, RemoteException
VersionHistory.getVersionByLabel(String)
method.getVersionByLabel
in interface RemoteVersionHistory
label
- a version labelVersion
object.RepositoryException
- if an error occurs.RemoteException
- on RMI errorspublic void addVersionLabel(String versionName, String label, boolean moveLabel) throws RepositoryException, RemoteException
VersionHistory.addVersionLabel(String, String, boolean)
method.addVersionLabel
in interface RemoteVersionHistory
versionName
- the name of the version to which the label is to be added.label
- the label to be added.moveLabel
- if true
, then if label
is already assigned to a version in
this version history, it is moved to the new version specified; if false
, then attempting
to assign an already used label will throw a VersionException
.RepositoryException
- if another error occurs.RemoteException
- on RMI errorspublic void removeVersionLabel(String label) throws RepositoryException, RemoteException
VersionHistory.removeVersionLabel(String)
method.removeVersionLabel
in interface RemoteVersionHistory
label
- a version labelRepositoryException
- if another error occurs.RemoteException
- on RMI errorspublic boolean hasVersionLabel(String label) throws RepositoryException, RemoteException
VersionHistory.hasVersionLabel(String)
method.hasVersionLabel
in interface RemoteVersionHistory
label
- a version labelboolean
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic boolean hasVersionLabel(String versionUUID, String label) throws RepositoryException, RemoteException
hasVersionLabel(Version, String)
method.hasVersionLabel
in interface RemoteVersionHistory
versionUUID
- The UUID of the version whose labels are to be returned.label
- a version labelboolean
.RepositoryException
- if another error occurs.RemoteException
- on RMI errorspublic String[] getVersionLabels() throws RepositoryException, RemoteException
VersionHistory.getVersionLabels()
method.getVersionLabels
in interface RemoteVersionHistory
String
array containing all the labels of the version historyRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String[] getVersionLabels(String versionUUID) throws RepositoryException, RemoteException
VersionHistory.getVersionLabels(Version)
method.getVersionLabels
in interface RemoteVersionHistory
versionUUID
- The UUID of the version whose labels are to be returned.String
array containing all the labels of the given versionRepositoryException
- if another error occurs.RemoteException
- on RMI errorspublic void removeVersion(String versionName) throws RepositoryException, RemoteException
VersionHistory.removeVersion(String)
method.removeVersion
in interface RemoteVersionHistory
versionName
- the name of a version in this version history.RepositoryException
- if another error occurs.RemoteException
- on RMI errorspublic String getVersionableUUID() throws RepositoryException, RemoteException
VersionHistory.getVersionableUUID()
VersionHistory.getVersionableUUID()}
method.getVersionableUUID
in interface RemoteVersionHistory
RepositoryException
- if an error occurs.RemoteException
- on RMI errorsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.