|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.exoplatform.services.jcr.rmi.impl.server.ServerObject
org.exoplatform.services.jcr.rmi.impl.server.ServerItem
org.exoplatform.services.jcr.rmi.impl.server.ServerNode
org.exoplatform.services.jcr.rmi.impl.server.ServerVersionHistory
public class ServerVersionHistory
Remote adapter for the JCR VersionHistory interface.
This class makes a local version history available as an RMI service using the
RemoteVersionHistory
interface.
VersionHistory,
RemoteVersionHistory,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
ServerVersionHistory(javax.jcr.version.VersionHistory versionHistory,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local version history. |
|
| Method Summary | |
|---|---|
void |
addVersionLabel(java.lang.String versionName,
java.lang.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(java.lang.String versionName)
Remote version of the VersionHistory.getVersion(String) method. |
java.lang.String |
getVersionableUUID()
Remote version of the VersionHistory.getVersionableUUID()
VersionHistory.getVersionableUUID()} method. |
RemoteVersion |
getVersionByLabel(java.lang.String label)
Remote version of the VersionHistory.getVersionByLabel(String) method. |
java.lang.String[] |
getVersionLabels()
Remote version of the VersionHistory.getVersionLabels() method. |
java.lang.String[] |
getVersionLabels(java.lang.String versionUUID)
Remote version of the VersionHistory.getVersionLabels(Version) method. |
boolean |
hasVersionLabel(java.lang.String label)
Remote version of the VersionHistory.hasVersionLabel(String) method. |
boolean |
hasVersionLabel(java.lang.String versionUUID,
java.lang.String label)
Remote version of the hasVersionLabel(Version, String) method. |
void |
removeVersion(java.lang.String versionName)
Remote version of the VersionHistory.removeVersion(String) method. |
void |
removeVersionLabel(java.lang.String label)
Remote version of the VersionHistory.removeVersionLabel(String) method. |
| Methods inherited from class org.exoplatform.services.jcr.rmi.impl.server.ServerNode |
|---|
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperty, getReferences, getUUID, getVersionByUUID, 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 class org.exoplatform.services.jcr.rmi.impl.server.ServerItem |
|---|
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save |
| Methods inherited from class org.exoplatform.services.jcr.rmi.impl.server.ServerObject |
|---|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException |
| 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.exoplatform.services.jcr.rmi.api.remote.RemoteNode |
|---|
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperty, 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.exoplatform.services.jcr.rmi.api.remote.RemoteItem |
|---|
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save |
| Constructor Detail |
|---|
public ServerVersionHistory(javax.jcr.version.VersionHistory versionHistory,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
versionHistory - local version historyfactory - remote adapter factory
java.rmi.RemoteException - on RMI errors| Method Detail |
|---|
public RemoteVersion getRootVersion()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.getRootVersion() method.
getRootVersion in interface RemoteVersionHistoryVersion object.
javax.jcr.RepositoryException - if an error occurs.
java.rmi.RemoteException - on RMI errors
public RemoteIterator getAllVersions()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.getAllVersions() method.
getAllVersions in interface RemoteVersionHistoryjavax.jcr.RepositoryException - if an error occurs.
java.rmi.RemoteException - on RMI errors
public RemoteVersion getVersion(java.lang.String versionName)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.getVersion(String) method.
getVersion in interface RemoteVersionHistoryversionName - a version name
Version object.
javax.jcr.RepositoryException - if an error occurs.
java.rmi.RemoteException - on RMI errors
public RemoteVersion getVersionByLabel(java.lang.String label)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.getVersionByLabel(String) method.
getVersionByLabel in interface RemoteVersionHistorylabel - a version label
Version object.
javax.jcr.RepositoryException - if an error occurs.
java.rmi.RemoteException - on RMI errors
public void addVersionLabel(java.lang.String versionName,
java.lang.String label,
boolean moveLabel)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.addVersionLabel(String, String, boolean) method.
addVersionLabel in interface RemoteVersionHistoryversionName - 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.
java.rmi.RemoteException - on RMI errors
public void removeVersionLabel(java.lang.String label)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.removeVersionLabel(String) method.
removeVersionLabel in interface RemoteVersionHistorylabel - a version label
javax.jcr.RepositoryException - if another error occurs.
java.rmi.RemoteException - on RMI errors
public boolean hasVersionLabel(java.lang.String label)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.hasVersionLabel(String) method.
hasVersionLabel in interface RemoteVersionHistorylabel - a version label
boolean
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public boolean hasVersionLabel(java.lang.String versionUUID,
java.lang.String label)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
hasVersionLabel(Version, String) method.
hasVersionLabel in interface RemoteVersionHistoryversionUUID - The UUID of the version whose labels are to be returned.label - a version label
boolean.
javax.jcr.RepositoryException - if another error occurs.
java.rmi.RemoteException - on RMI errors
public java.lang.String[] getVersionLabels()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.getVersionLabels() method.
getVersionLabels in interface RemoteVersionHistoryString array containing all the labels of the version history
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public java.lang.String[] getVersionLabels(java.lang.String versionUUID)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.getVersionLabels(Version) method.
getVersionLabels in interface RemoteVersionHistoryversionUUID - 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.
java.rmi.RemoteException - on RMI errors
public void removeVersion(java.lang.String versionName)
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.removeVersion(String) method.
removeVersion in interface RemoteVersionHistoryversionName - the name of a version in this version history.
javax.jcr.RepositoryException - if another error occurs.
java.rmi.RemoteException - on RMI errors
public java.lang.String getVersionableUUID()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
VersionHistory.getVersionableUUID()
VersionHistory.getVersionableUUID()} method.
getVersionableUUID in interface RemoteVersionHistoryjavax.jcr.RepositoryException - if another error occurs.
java.rmi.RemoteException - on RMI errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||