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 public class ServerVersionHistory extends ServerNode implements RemoteVersionHistory
Deprecated.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
VersionHistoryinterface. This class makes a local version history available as an RMI service using theRemoteVersionHistoryinterface.- 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.Creates a remote adapter for the given local version history.
-
Method Summary
-
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, 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.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.Remote version of theVersionHistory.getVersionableIdentifier()VersionHistory.getVersionableIdentifier()} method.- Specified by:
getVersionableIdentifierin 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.Remote version of theVersionHistory.getRootVersion()method.- Specified by:
getRootVersionin interfaceRemoteVersionHistory- Returns:
- a
Versionobject. - Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
getAllLinearVersions
public RemoteIterator getAllLinearVersions() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersionHistory.getAllLinearVersions()method.- Specified by:
getAllLinearVersionsin interfaceRemoteVersionHistory- Returns:
- linear remote versions
- Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
getAllVersions
public RemoteIterator getAllVersions() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersionHistory.getAllVersions()method.- Specified by:
getAllVersionsin interfaceRemoteVersionHistory- Returns:
- remote versions
- Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
getAllLinearFrozenNodes
public RemoteIterator getAllLinearFrozenNodes() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersionHistory.getAllLinearFrozenNodes()method.- Specified by:
getAllLinearFrozenNodesin interfaceRemoteVersionHistory- Returns:
- linear remote frozen nodes
- Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
getAllFrozenNodes
public RemoteIterator getAllFrozenNodes() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersionHistory.getAllFrozenNodes()method.- Specified by:
getAllFrozenNodesin 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.Remote version of theVersionHistory.getVersion(String)method.- Specified by:
getVersionin interfaceRemoteVersionHistory- Parameters:
versionName- a version name- Returns:
- a
Versionobject. - Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
getVersionByLabel
public RemoteVersion getVersionByLabel(String label) throws RepositoryException, RemoteException
Deprecated.Remote version of theVersionHistory.getVersionByLabel(String)method.- Specified by:
getVersionByLabelin interfaceRemoteVersionHistory- Parameters:
label- a version label- Returns:
- a
Versionobject. - Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
addVersionLabel
public void addVersionLabel(String versionName, String label, boolean moveLabel) throws RepositoryException, RemoteException
Deprecated.Remote version of theVersionHistory.addVersionLabel(String, String, boolean)method.- Specified by:
addVersionLabelin 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 iflabelis 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.Remote version of theVersionHistory.removeVersionLabel(String)method.- Specified by:
removeVersionLabelin 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.Remote version of theVersionHistory.hasVersionLabel(String)method.- Specified by:
hasVersionLabelin 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.Remote version of thehasVersionLabel(Version, String)method.- Specified by:
hasVersionLabelin 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.Remote version of theVersionHistory.getVersionLabels()method.- Specified by:
getVersionLabelsin interfaceRemoteVersionHistory- Returns:
- a
Stringarray 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.Remote version of theVersionHistory.getVersionLabels(Version)method.- Specified by:
getVersionLabelsin interfaceRemoteVersionHistory- Parameters:
versionUUID- The UUID of the version whose labels are to be returned.- Returns:
- a
Stringarray 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.Remote version of theVersionHistory.removeVersion(String)method.- Specified by:
removeVersionin 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.Remote version of theVersionHistory.getVersionableUUID()VersionHistory.getVersionableUUID()} method.- Specified by:
getVersionableUUIDin interfaceRemoteVersionHistory- Returns:
- the uuid of the versionable node
- Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
-