Package org.apache.jackrabbit.rmi.remote
Interface RemoteVersionHistory
-
- All Superinterfaces:
Remote
,RemoteItem
,RemoteNode
- All Known Implementing Classes:
ServerVersionHistory
@Deprecated(forRemoval=true) public interface RemoteVersionHistory extends RemoteNode
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JC
VersionHistory
interface. Used by theServerVersionHistory
andClientVersionHistory
adapters to provide transparent RMI access to remote version histories.The methods in this interface are documented only with a reference to a corresponding VersionHistory method. The remote object will simply forward the method call to the underlying VersionHistory instance. Argument and return values, as well as possible exceptions, are copied over the network. Complex return values (like Versions) are returned as remote references to the corresponding remote interfaces. Iterator values are transmitted as object arrays. RMI errors are signaled with RemoteExceptions.
- See Also:
Version
,ClientVersionHistory
,ServerVersionHistory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addVersionLabel(String versionName, String label, boolean moveLabel)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.addVersionLabel(String, String, boolean)
method.RemoteIterator
getAllFrozenNodes()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getAllFrozenNodes()
method.RemoteIterator
getAllLinearFrozenNodes()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getAllLinearFrozenNodes()
method.RemoteIterator
getAllLinearVersions()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getAllLinearVersions()
method.RemoteIterator
getAllVersions()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getAllVersions()
method.RemoteVersion
getRootVersion()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getRootVersion()
method.RemoteVersion
getVersion(String versionName)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersion(String)
method.String
getVersionableIdentifier()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionableIdentifier()
VersionHistory.getVersionableIdentifier()} method.String
getVersionableUUID()
Deprecated.As of JCR 2.0,getVersionableIdentifier()
should be used instead.RemoteVersion
getVersionByLabel(String label)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionByLabel(String)
method.String[]
getVersionLabels()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionLabels()
method.String[]
getVersionLabels(String versionUUID)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionLabels(Version)
method.boolean
hasVersionLabel(String label)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.hasVersionLabel(String)
method.boolean
hasVersionLabel(String versionUUID, String label)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of thehasVersionLabel(Version, String)
method.void
removeVersion(String versionName)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.removeVersion(String)
method.void
removeVersionLabel(String label)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.removeVersionLabel(String)
method.-
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
-
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteNode
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
-
-
-
-
Method Detail
-
getVersionableUUID
String getVersionableUUID() throws RepositoryException, RemoteException
Deprecated.As of JCR 2.0,getVersionableIdentifier()
should be used instead.Remote version of theVersionHistory.getVersionableUUID()
VersionHistory.getVersionableUUID()} method.- Returns:
- the uuid of the versionable node
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getVersionableIdentifier
String getVersionableIdentifier() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionableIdentifier()
VersionHistory.getVersionableIdentifier()} method.- Returns:
- the identifier of the versionable node
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getRootVersion
RemoteVersion getRootVersion() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getRootVersion()
method.- Returns:
- a
Version
object. - Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getAllLinearVersions
RemoteIterator getAllLinearVersions() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getAllLinearVersions()
method.- Returns:
- linear remote versions
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getAllVersions
RemoteIterator getAllVersions() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getAllVersions()
method.- Returns:
- remote versions
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getAllLinearFrozenNodes
RemoteIterator getAllLinearFrozenNodes() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getAllLinearFrozenNodes()
method.- Returns:
- linear remote frozen nodes
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getAllFrozenNodes
RemoteIterator getAllFrozenNodes() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getAllFrozenNodes()
method.- Returns:
- remote frozen nodes
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getVersion
RemoteVersion getVersion(String versionName) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersion(String)
method.- Parameters:
versionName
- a version name- Returns:
- a
Version
object. - Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getVersionByLabel
RemoteVersion getVersionByLabel(String label) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionByLabel(String)
method.- Parameters:
label
- a version label- Returns:
- a
Version
object. - Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
addVersionLabel
void addVersionLabel(String versionName, String label, boolean moveLabel) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.addVersionLabel(String, String, boolean)
method.- Parameters:
versionName
- the name of the version to which the label is to be added.label
- the label to be added.moveLabel
- iftrue
, then iflabel
is already assigned to a version in this version history, it is moved to the new version specified; iffalse
, then attempting to assign an already used label will throw aVersionException
.- Throws:
RepositoryException
- if another error occurs.RemoteException
- on RMI errors
-
removeVersionLabel
void removeVersionLabel(String label) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.removeVersionLabel(String)
method.- Parameters:
label
- a version label- Throws:
RepositoryException
- if another error occurs.RemoteException
- on RMI errors
-
hasVersionLabel
boolean hasVersionLabel(String label) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.hasVersionLabel(String)
method.- Parameters:
label
- a version label- Returns:
- a
boolean
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
hasVersionLabel
boolean hasVersionLabel(String versionUUID, String label) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of thehasVersionLabel(Version, String)
method.- Parameters:
versionUUID
- The UUID of the version whose labels are to be returned.label
- a version label- Returns:
- a
boolean
. - Throws:
RepositoryException
- if another error occurs.RemoteException
- on RMI errors
-
getVersionLabels
String[] getVersionLabels() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionLabels()
method.- Returns:
- a
String
array containing all the labels of the version history - Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getVersionLabels
String[] getVersionLabels(String versionUUID) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionLabels(Version)
method.- Parameters:
versionUUID
- The UUID of the version whose labels are to be returned.- Returns:
- a
String
array containing all the labels of the given version - Throws:
RepositoryException
- if another error occurs.RemoteException
- on RMI errors
-
removeVersion
void removeVersion(String versionName) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.removeVersion(String)
method.- Parameters:
versionName
- the name of a version in this version history.- Throws:
RepositoryException
- if another error occurs.RemoteException
- on RMI errors
-
-