public class ServerVersionHistory extends ServerNode implements RemoteVersionHistory
VersionHistory
interface. This class makes a local version history available as an RMI
service using the
RemoteVersionHistory
interface.VersionHistory,
RemoteVersionHistory,
Serialized Formref| Constructor and Description |
|---|
ServerVersionHistory(javax.jcr.version.VersionHistory versionHistory,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local version history.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(String versionName,
String label,
boolean moveLabel)
Remote version of the
VersionHistory.addVersionLabel(String, String, boolean)
method. |
RemoteIterator |
getAllFrozenNodes()
Remote version of the
VersionHistory.getAllFrozenNodes()
method. |
RemoteIterator |
getAllLinearFrozenNodes()
Remote version of the
VersionHistory.getAllLinearFrozenNodes()
method. |
RemoteIterator |
getAllLinearVersions()
Remote version of the
VersionHistory.getAllLinearVersions()
method. |
RemoteIterator |
getAllVersions()
Remote version of the
VersionHistory.getAllVersions()
method. |
RemoteVersion |
getRootVersion()
Remote version of the
VersionHistory.getRootVersion()
method. |
RemoteVersion |
getVersion(String versionName)
Remote version of the
VersionHistory.getVersion(String)
method. |
String |
getVersionableIdentifier()
Remote version of the
VersionHistory.getVersionableIdentifier() VersionHistory.getVersionableIdentifier()}
method. |
String |
getVersionableUUID()
Remote version of the
VersionHistory.getVersionableUUID() VersionHistory.getVersionableUUID()}
method. |
RemoteVersion |
getVersionByLabel(String label)
Remote version of the
VersionHistory.getVersionByLabel(String)
method. |
String[] |
getVersionLabels()
Remote version of the
VersionHistory.getVersionLabels()
method. |
String[] |
getVersionLabels(String versionUUID)
Remote version of the
VersionHistory.getVersionLabels(Version)
method. |
boolean |
hasVersionLabel(String label)
Remote version of the
VersionHistory.hasVersionLabel(String)
method. |
boolean |
hasVersionLabel(String versionUUID,
String label)
Remote version of the
hasVersionLabel(Version, String)
method. |
void |
removeVersion(String versionName)
Remote version of the
VersionHistory.removeVersion(String)
method. |
void |
removeVersionLabel(String label)
Remote version of the
VersionHistory.removeVersionLabel(String)
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, updategetAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, savegetFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValuesclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogequals, getRef, hashCode, toString, toStubfinalize, getClass, notify, notifyAll, wait, wait, waitaddMixin, 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, updategetAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, savepublic ServerVersionHistory(javax.jcr.version.VersionHistory versionHistory,
RemoteAdapterFactory factory)
throws RemoteException
versionHistory - local version historyfactory - remote adapter factoryRemoteException - on RMI errorspublic String getVersionableIdentifier() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionableIdentifier() VersionHistory.getVersionableIdentifier()}
method.getVersionableIdentifier in interface RemoteVersionHistoryjavax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorspublic RemoteVersion getRootVersion() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getRootVersion()
method.getRootVersion in interface RemoteVersionHistoryVersion object.javax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorspublic RemoteIterator getAllLinearVersions() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getAllLinearVersions()
method.getAllLinearVersions in interface RemoteVersionHistoryjavax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorspublic RemoteIterator getAllVersions() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getAllVersions()
method.getAllVersions in interface RemoteVersionHistoryjavax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorspublic RemoteIterator getAllLinearFrozenNodes() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getAllLinearFrozenNodes()
method.getAllLinearFrozenNodes in interface RemoteVersionHistoryjavax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorspublic RemoteIterator getAllFrozenNodes() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getAllFrozenNodes()
method.getAllFrozenNodes in interface RemoteVersionHistoryjavax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorspublic RemoteVersion getVersion(String versionName) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersion(String)
method.getVersion in interface RemoteVersionHistoryversionName - a version nameVersion object.javax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorspublic RemoteVersion getVersionByLabel(String label) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionByLabel(String)
method.getVersionByLabel in interface RemoteVersionHistorylabel - a version labelVersion object.javax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorspublic void addVersionLabel(String versionName, String label, boolean moveLabel) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.addVersionLabel(String, String, boolean)
method.addVersionLabel in interface RemoteVersionHistoryversionName - 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.javax.jcr.RepositoryException - if another error occurs.RemoteException - on RMI errorspublic void removeVersionLabel(String label) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.removeVersionLabel(String)
method.removeVersionLabel in interface RemoteVersionHistorylabel - a version labeljavax.jcr.RepositoryException - if another error occurs.RemoteException - on RMI errorspublic boolean hasVersionLabel(String label) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.hasVersionLabel(String)
method.hasVersionLabel in interface RemoteVersionHistorylabel - a version labelbooleanjavax.jcr.RepositoryException - on repository errorsRemoteException - on RMI errorspublic boolean hasVersionLabel(String versionUUID, String label) throws javax.jcr.RepositoryException, RemoteException
hasVersionLabel(Version, String)
method.hasVersionLabel in interface RemoteVersionHistoryversionUUID - The UUID of the version whose labels are to be returned.label - a version labelboolean.javax.jcr.RepositoryException - if another error occurs.RemoteException - on RMI errorspublic String[] getVersionLabels() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionLabels()
method.getVersionLabels in interface RemoteVersionHistoryString array containing all the labels of the version historyjavax.jcr.RepositoryException - on repository errorsRemoteException - on RMI errorspublic String[] getVersionLabels(String versionUUID) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionLabels(Version)
method.getVersionLabels in interface RemoteVersionHistoryversionUUID - The UUID of the version whose labels are to be returned.String array containing all the labels of the given versionjavax.jcr.RepositoryException - if another error occurs.RemoteException - on RMI errorspublic void removeVersion(String versionName) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.removeVersion(String)
method.removeVersion in interface RemoteVersionHistoryversionName - the name of a version in this version history.javax.jcr.RepositoryException - if another error occurs.RemoteException - on RMI errorspublic String getVersionableUUID() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionableUUID() VersionHistory.getVersionableUUID()}
method.getVersionableUUID in interface RemoteVersionHistoryjavax.jcr.RepositoryException - if an error occurs.RemoteException - on RMI errorsCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.