|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.rmi.api.client.ClientObject
org.exoplatform.services.jcr.rmi.api.client.ClientItem
org.exoplatform.services.jcr.rmi.api.client.ClientNode
org.exoplatform.services.jcr.rmi.api.client.ClientVersionHistory
public class ClientVersionHistory
Local adapter for the JCR-RMI
RemoteVersionHistory
interface. This class makes a remote version history locally available using the JCR
VersionHistory interface.
VersionHistory,
RemoteVersionHistory| Constructor Summary | |
|---|---|
ClientVersionHistory(javax.jcr.Session session,
RemoteVersionHistory remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote version history. |
|
| Method Summary | |
|---|---|
void |
addVersionLabel(java.lang.String versionName,
java.lang.String label,
boolean moveLabel)
|
javax.jcr.version.VersionIterator |
getAllVersions()
|
javax.jcr.version.Version |
getRootVersion()
|
javax.jcr.version.Version |
getVersion(java.lang.String versionName)
|
java.lang.String |
getVersionableUUID()
|
javax.jcr.version.Version |
getVersionByLabel(java.lang.String label)
|
java.lang.String[] |
getVersionLabels()
|
java.lang.String[] |
getVersionLabels(javax.jcr.version.Version version)
|
boolean |
hasVersionLabel(java.lang.String label)
|
boolean |
hasVersionLabel(javax.jcr.version.Version version,
java.lang.String label)
|
void |
removeVersion(java.lang.String versionName)
|
void |
removeVersionLabel(java.lang.String label)
|
| Methods inherited from class org.exoplatform.services.jcr.rmi.api.client.ClientNode |
|---|
accept, 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, hashCode, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNode, isNodeType, lock, merge, orderBefore, removeMixin, restore, restore, restore, restoreByLabel, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update |
| Methods inherited from class org.exoplatform.services.jcr.rmi.api.client.ClientItem |
|---|
equals, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
| Methods inherited from class org.exoplatform.services.jcr.rmi.api.client.ClientObject |
|---|
getFactory, getItem, getNode, getNodeTypeArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jcr.Node |
|---|
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, restore, restoreByLabel, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update |
| Methods inherited from interface javax.jcr.Item |
|---|
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save |
| Constructor Detail |
|---|
public ClientVersionHistory(javax.jcr.Session session,
RemoteVersionHistory remote,
LocalAdapterFactory factory)
session - current sessionremote - remote version historyfactory - local adapter factory| Method Detail |
|---|
public javax.jcr.version.Version getRootVersion()
throws javax.jcr.RepositoryException
getRootVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryException
public javax.jcr.version.VersionIterator getAllVersions()
throws javax.jcr.RepositoryException
getAllVersions in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryException
public javax.jcr.version.Version getVersion(java.lang.String versionName)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
getVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryException
public javax.jcr.version.Version getVersionByLabel(java.lang.String label)
throws javax.jcr.RepositoryException
getVersionByLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryException
public void addVersionLabel(java.lang.String versionName,
java.lang.String label,
boolean moveLabel)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
addVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryException
public void removeVersionLabel(java.lang.String label)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
removeVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryException
public boolean hasVersionLabel(java.lang.String label)
throws javax.jcr.RepositoryException
hasVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryException
public boolean hasVersionLabel(javax.jcr.version.Version version,
java.lang.String label)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
hasVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryException
public java.lang.String[] getVersionLabels()
throws javax.jcr.RepositoryException
getVersionLabels in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryException
public java.lang.String[] getVersionLabels(javax.jcr.version.Version version)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
getVersionLabels in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryException
public void removeVersion(java.lang.String versionName)
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.version.VersionException,
javax.jcr.RepositoryException
removeVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
public java.lang.String getVersionableUUID()
throws javax.jcr.RepositoryException
getVersionableUUID in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||