|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteVersionHistory
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.
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 |
---|
RemoteVersion getRootVersion() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getRootVersion()
method.
Version
object.
javax.jcr.RepositoryException
- if an error occurs.
RemoteException
- on RMI errorsRemoteIterator getAllVersions() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getAllVersions()
method.
javax.jcr.RepositoryException
- if an error occurs.
RemoteException
- on RMI errorsRemoteVersion getVersion(String versionName) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersion(String)
method.
versionName
- a version name
Version
object.
javax.jcr.RepositoryException
- if an error occurs.
RemoteException
- on RMI errorsRemoteVersion getVersionByLabel(String label) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionByLabel(String)
method.
label
- a version label
Version
object.
javax.jcr.RepositoryException
- if an error occurs.
RemoteException
- on RMI errorsvoid addVersionLabel(String versionName, String label, boolean moveLabel) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.addVersionLabel(String, String, boolean)
method.
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
.
javax.jcr.RepositoryException
- if another error occurs.
RemoteException
- on RMI errorsvoid removeVersionLabel(String label) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.removeVersionLabel(String)
method.
label
- a version label
javax.jcr.RepositoryException
- if another error occurs.
RemoteException
- on RMI errorsboolean hasVersionLabel(String label) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.hasVersionLabel(String)
method.
label
- a version label
boolean
javax.jcr.RepositoryException
- on repository errors
RemoteException
- on RMI errorsboolean hasVersionLabel(String versionUUID, String label) throws javax.jcr.RepositoryException, RemoteException
hasVersionLabel(Version, String)
method.
versionUUID
- The UUID of the version whose labels are to be returned.label
- a version label
boolean
.
javax.jcr.RepositoryException
- if another error occurs.
RemoteException
- on RMI errorsString[] getVersionLabels() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionLabels()
method.
String
array containing all the labels of the version history
javax.jcr.RepositoryException
- on repository errors
RemoteException
- on RMI errorsString[] getVersionLabels(String versionUUID) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionLabels(Version)
method.
versionUUID
- The UUID of the version whose labels are to be returned.
String
array containing all the labels of the given version
javax.jcr.RepositoryException
- if another error occurs.
RemoteException
- on RMI errorsvoid removeVersion(String versionName) throws javax.jcr.RepositoryException, RemoteException
VersionHistory.removeVersion(String)
method.
versionName
- the name of a version in this version history.
javax.jcr.RepositoryException
- if another error occurs.
RemoteException
- on RMI errorsString getVersionableUUID() throws javax.jcr.RepositoryException, RemoteException
VersionHistory.getVersionableUUID()
VersionHistory.getVersionableUUID()}
method.
javax.jcr.RepositoryException
- if another error occurs.
RemoteException
- on RMI errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |