Package org.apache.jackrabbit.rmi.remote
Interface RemoteVersionHistory
-
- All Superinterfaces:
Remote,RemoteItem,RemoteNode
- All Known Implementing Classes:
ServerVersionHistory
@Deprecated public interface RemoteVersionHistory extends RemoteNode
Deprecated.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
VersionHistoryinterface. Used by theServerVersionHistoryandClientVersionHistoryadapters 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
-
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.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.Remote version of theVersionHistory.getRootVersion()method.- Returns:
- a
Versionobject. - Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
getAllLinearVersions
RemoteIterator getAllLinearVersions() throws RepositoryException, RemoteException
Deprecated.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.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.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.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.Remote version of theVersionHistory.getVersion(String)method.- Parameters:
versionName- a version name- Returns:
- a
Versionobject. - Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
getVersionByLabel
RemoteVersion getVersionByLabel(String label) throws RepositoryException, RemoteException
Deprecated.Remote version of theVersionHistory.getVersionByLabel(String)method.- Parameters:
label- a version label- Returns:
- a
Versionobject. - Throws:
RepositoryException- if an error occurs.RemoteException- on RMI errors
-
addVersionLabel
void addVersionLabel(String versionName, String label, boolean moveLabel) throws RepositoryException, RemoteException
Deprecated.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 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
void removeVersionLabel(String label) throws RepositoryException, RemoteException
Deprecated.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.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.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.Remote version of theVersionHistory.getVersionLabels()method.- Returns:
- a
Stringarray 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.Remote version of theVersionHistory.getVersionLabels(Version)method.- 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
void removeVersion(String versionName) throws RepositoryException, RemoteException
Deprecated.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
-
-