Package org.apache.jackrabbit.rmi.server
Class ServerVersionHistory
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerItem
-
- org.apache.jackrabbit.rmi.server.ServerNode
-
- org.apache.jackrabbit.rmi.server.ServerVersionHistory
-
- All Implemented Interfaces:
Serializable
,Remote
,RemoteItem
,RemoteNode
,RemoteVersionHistory
@Deprecated(forRemoval=true) public class ServerVersionHistory extends ServerNode implements RemoteVersionHistory
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 adapter for the JCR
VersionHistory
interface. This class makes a local version history available as an RMI service using theRemoteVersionHistory
interface.- See Also:
VersionHistory
,RemoteVersionHistory
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerVersionHistory(VersionHistory versionHistory, RemoteAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given local version history.
-
Method Summary
All Methods Instance Methods Concrete 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, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionableUUID()
VersionHistory.getVersionableUUID()} method.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 class org.apache.jackrabbit.rmi.server.ServerNode
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
-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
ServerVersionHistory
public ServerVersionHistory(VersionHistory versionHistory, RemoteAdapterFactory factory) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given local version history.- Parameters:
versionHistory
- local version historyfactory
- remote adapter factory- Throws:
RemoteException
- on RMI errors
-
-
Method Detail
-
getVersionableIdentifier
public 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.- Specified by:
getVersionableIdentifier
in interfaceRemoteVersionHistory
- Returns:
- the identifier of the versionable node
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getRootVersion
public 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.- Specified by:
getRootVersion
in interfaceRemoteVersionHistory
- Returns:
- a
Version
object. - Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getAllLinearVersions
public 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.- Specified by:
getAllLinearVersions
in interfaceRemoteVersionHistory
- Returns:
- linear remote versions
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getAllVersions
public 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.- Specified by:
getAllVersions
in interfaceRemoteVersionHistory
- Returns:
- remote versions
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getAllLinearFrozenNodes
public 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.- Specified by:
getAllLinearFrozenNodes
in interfaceRemoteVersionHistory
- Returns:
- linear remote frozen nodes
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getAllFrozenNodes
public 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.- Specified by:
getAllFrozenNodes
in interfaceRemoteVersionHistory
- Returns:
- remote frozen nodes
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getVersion
public 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.- Specified by:
getVersion
in interfaceRemoteVersionHistory
- Parameters:
versionName
- a version name- Returns:
- a
Version
object. - Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
getVersionByLabel
public 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.- Specified by:
getVersionByLabel
in interfaceRemoteVersionHistory
- Parameters:
label
- a version label- Returns:
- a
Version
object. - Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
addVersionLabel
public 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.- Specified by:
addVersionLabel
in interfaceRemoteVersionHistory
- 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
public 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.- Specified by:
removeVersionLabel
in interfaceRemoteVersionHistory
- Parameters:
label
- a version label- Throws:
RepositoryException
- if another error occurs.RemoteException
- on RMI errors
-
hasVersionLabel
public 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.- Specified by:
hasVersionLabel
in interfaceRemoteVersionHistory
- Parameters:
label
- a version label- Returns:
- a
boolean
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
hasVersionLabel
public 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.- Specified by:
hasVersionLabel
in interfaceRemoteVersionHistory
- 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
public 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.- Specified by:
getVersionLabels
in interfaceRemoteVersionHistory
- Returns:
- a
String
array containing all the labels of the version history - Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getVersionLabels
public 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.- Specified by:
getVersionLabels
in interfaceRemoteVersionHistory
- 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
public 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.- Specified by:
removeVersion
in interfaceRemoteVersionHistory
- Parameters:
versionName
- the name of a version in this version history.- Throws:
RepositoryException
- if another error occurs.RemoteException
- on RMI errors
-
getVersionableUUID
public String getVersionableUUID() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theVersionHistory.getVersionableUUID()
VersionHistory.getVersionableUUID()} method.- Specified by:
getVersionableUUID
in interfaceRemoteVersionHistory
- Returns:
- the uuid of the versionable node
- Throws:
RepositoryException
- if an error occurs.RemoteException
- on RMI errors
-
-