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.javax.jcr.version.VersionHistory,
RemoteVersionHistory,
Serialized Form| Constructor and Description |
|---|
ServerVersionHistory(VersionHistory versionHistory,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local version history.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(java.lang.String versionName,
java.lang.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(java.lang.String versionName)
Remote version of the
VersionHistory.getVersion(String)
method. |
java.lang.String |
getVersionableIdentifier()
Remote version of the
javax.jcr.version.VersionHistory#getVersionableIdentifier() VersionHistory.getVersionableIdentifier()}
method. |
java.lang.String |
getVersionableUUID()
Remote version of the
javax.jcr.version.VersionHistory#getVersionableUUID() VersionHistory.getVersionableUUID()}
method. |
RemoteVersion |
getVersionByLabel(java.lang.String label)
Remote version of the
VersionHistory.getVersionByLabel(String)
method. |
java.lang.String[] |
getVersionLabels()
Remote version of the
VersionHistory.getVersionLabels()
method. |
java.lang.String[] |
getVersionLabels(java.lang.String versionUUID)
Remote version of the
VersionHistory.getVersionLabels(Version)
method. |
boolean |
hasVersionLabel(java.lang.String label)
Remote version of the
VersionHistory.hasVersionLabel(String)
method. |
boolean |
hasVersionLabel(java.lang.String versionUUID,
java.lang.String label)
Remote version of the
hasVersionLabel(Version, String)
method. |
void |
removeVersion(java.lang.String versionName)
Remote version of the
VersionHistory.removeVersion(String)
method. |
void |
removeVersionLabel(java.lang.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, 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, saveclone, exportObject, exportObject, exportObject, unexportObjectequals, getRef, hashCode, toString, toStubaddMixin, 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(VersionHistory versionHistory,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
versionHistory - local version historyfactory - remote adapter factoryjava.rmi.RemoteException - on RMI errorspublic java.lang.String getVersionableIdentifier()
throws RepositoryException,
java.rmi.RemoteException
javax.jcr.version.VersionHistory#getVersionableIdentifier() VersionHistory.getVersionableIdentifier()}
method.getVersionableIdentifier in interface RemoteVersionHistoryRepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errorspublic RemoteVersion getRootVersion() throws RepositoryException, java.rmi.RemoteException
VersionHistory.getRootVersion()
method.getRootVersion in interface RemoteVersionHistoryVersion object.RepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errorspublic RemoteIterator getAllLinearVersions() throws RepositoryException, java.rmi.RemoteException
VersionHistory.getAllLinearVersions()
method.getAllLinearVersions in interface RemoteVersionHistoryRepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errorspublic RemoteIterator getAllVersions() throws RepositoryException, java.rmi.RemoteException
VersionHistory.getAllVersions()
method.getAllVersions in interface RemoteVersionHistoryRepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errorspublic RemoteIterator getAllLinearFrozenNodes() throws RepositoryException, java.rmi.RemoteException
VersionHistory.getAllLinearFrozenNodes()
method.getAllLinearFrozenNodes in interface RemoteVersionHistoryRepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errorspublic RemoteIterator getAllFrozenNodes() throws RepositoryException, java.rmi.RemoteException
VersionHistory.getAllFrozenNodes()
method.getAllFrozenNodes in interface RemoteVersionHistoryRepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errorspublic RemoteVersion getVersion(java.lang.String versionName) throws RepositoryException, java.rmi.RemoteException
VersionHistory.getVersion(String)
method.getVersion in interface RemoteVersionHistoryversionName - a version nameVersion object.RepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errorspublic RemoteVersion getVersionByLabel(java.lang.String label) throws RepositoryException, java.rmi.RemoteException
VersionHistory.getVersionByLabel(String)
method.getVersionByLabel in interface RemoteVersionHistorylabel - a version labelVersion object.RepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errorspublic void addVersionLabel(java.lang.String versionName,
java.lang.String label,
boolean moveLabel)
throws RepositoryException,
java.rmi.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.RepositoryException - if another error occurs.java.rmi.RemoteException - on RMI errorspublic void removeVersionLabel(java.lang.String label)
throws RepositoryException,
java.rmi.RemoteException
VersionHistory.removeVersionLabel(String)
method.removeVersionLabel in interface RemoteVersionHistorylabel - a version labelRepositoryException - if another error occurs.java.rmi.RemoteException - on RMI errorspublic boolean hasVersionLabel(java.lang.String label)
throws RepositoryException,
java.rmi.RemoteException
VersionHistory.hasVersionLabel(String)
method.hasVersionLabel in interface RemoteVersionHistorylabel - a version labelbooleanRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorspublic boolean hasVersionLabel(java.lang.String versionUUID,
java.lang.String label)
throws RepositoryException,
java.rmi.RemoteException
hasVersionLabel(Version, String)
method.hasVersionLabel in interface RemoteVersionHistoryversionUUID - The UUID of the version whose labels are to be returned.label - a version labelboolean.RepositoryException - if another error occurs.java.rmi.RemoteException - on RMI errorspublic java.lang.String[] getVersionLabels()
throws RepositoryException,
java.rmi.RemoteException
VersionHistory.getVersionLabels()
method.getVersionLabels in interface RemoteVersionHistoryString array containing all the labels of the version historyRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorspublic java.lang.String[] getVersionLabels(java.lang.String versionUUID)
throws RepositoryException,
java.rmi.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 versionRepositoryException - if another error occurs.java.rmi.RemoteException - on RMI errorspublic void removeVersion(java.lang.String versionName)
throws RepositoryException,
java.rmi.RemoteException
VersionHistory.removeVersion(String)
method.removeVersion in interface RemoteVersionHistoryversionName - the name of a version in this version history.RepositoryException - if another error occurs.java.rmi.RemoteException - on RMI errorspublic java.lang.String getVersionableUUID()
throws RepositoryException,
java.rmi.RemoteException
javax.jcr.version.VersionHistory#getVersionableUUID() VersionHistory.getVersionableUUID()}
method.getVersionableUUID in interface RemoteVersionHistoryRepositoryException - if an error occurs.java.rmi.RemoteException - on RMI errors"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"