org.apache.jackrabbit.rmi.remote
Interface RemoteVersionHistory

All Superinterfaces:
Remote, RemoteItem, RemoteNode
All Known Implementing Classes:
ServerVersionHistory

public interface RemoteVersionHistory
extends RemoteNode

Remote version of the JC VersionHistory interface. Used by the ServerVersionHistory and ClientVersionHistory 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
 void addVersionLabel(String versionName, String label, boolean moveLabel)
          Remote version of the VersionHistory.addVersionLabel(String, String, boolean) method.
 RemoteIterator getAllVersions()
          Remote version of the VersionHistory.getAllVersions() method.
 RemoteVersion getRootVersion()
          Remote version of the VersionHistory.getRootVersion() method.
 RemoteVersion getVersion(String versionName)
          Remote version of the VersionHistory.getVersion(String) method.
 String getVersionableUUID()
          Remote version of the VersionHistory.getVersionableUUID() VersionHistory.getVersionableUUID()} method.
 RemoteVersion getVersionByLabel(String label)
          Remote version of the VersionHistory.getVersionByLabel(String) method.
 String[] getVersionLabels()
          Remote version of the VersionHistory.getVersionLabels() method.
 String[] getVersionLabels(String versionUUID)
          Remote version of the VersionHistory.getVersionLabels(Version) method.
 boolean hasVersionLabel(String label)
          Remote version of the VersionHistory.hasVersionLabel(String) method.
 boolean hasVersionLabel(String versionUUID, String label)
          Remote version of the hasVersionLabel(Version, String) method.
 void removeVersion(String versionName)
          Remote version of the VersionHistory.removeVersion(String) method.
 void removeVersionLabel(String label)
          Remote version of the VersionHistory.removeVersionLabel(String) method.
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteNode
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, restore, restore, restoreByLabel, restoreByUUID, setProperty, setProperty, setProperty, setProperty, unlock, update
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
 

Method Detail

getRootVersion

RemoteVersion getRootVersion()
                             throws RepositoryException,
                                    RemoteException
Remote version of the VersionHistory.getRootVersion() method.

Returns:
a Version object.
Throws:
RepositoryException - if an error occurs.
RemoteException - on RMI errors

getAllVersions

RemoteIterator getAllVersions()
                              throws RepositoryException,
                                     RemoteException
Remote version of the VersionHistory.getAllVersions() method.

Returns:
remote versions
Throws:
RepositoryException - if an error occurs.
RemoteException - on RMI errors

getVersion

RemoteVersion getVersion(String versionName)
                         throws RepositoryException,
                                RemoteException
Remote version of the VersionHistory.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
Remote version of the VersionHistory.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
Remote version of the VersionHistory.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 - 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.
Throws:
RepositoryException - if another error occurs.
RemoteException - on RMI errors

removeVersionLabel

void removeVersionLabel(String label)
                        throws RepositoryException,
                               RemoteException
Remote version of the VersionHistory.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
Remote version of the VersionHistory.hasVersionLabel(String) method.

Parameters:
label - a version label
Returns:
a boolean
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

hasVersionLabel

boolean hasVersionLabel(String versionUUID,
                        String label)
                        throws RepositoryException,
                               RemoteException
Remote version of the hasVersionLabel(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
Remote version of the VersionHistory.getVersionLabels() method.

Returns:
a String array containing all the labels of the version history
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getVersionLabels

String[] getVersionLabels(String versionUUID)
                          throws RepositoryException,
                                 RemoteException
Remote version of the VersionHistory.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
Remote version of the VersionHistory.removeVersion(String) method.

Parameters:
versionName - the name of a version in this version history.
Throws:
RepositoryException - if another error occurs.
RemoteException - on RMI errors

getVersionableUUID

String getVersionableUUID()
                          throws RepositoryException,
                                 RemoteException
Remote version of the VersionHistory.getVersionableUUID() VersionHistory.getVersionableUUID()} method.

Returns:
the uuid of the versionable node
Throws:
RepositoryException - if another error occurs.
RemoteException - on RMI errors


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.