|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientObject
org.apache.jackrabbit.rmi.client.ClientItem
org.apache.jackrabbit.rmi.client.ClientNode
org.apache.jackrabbit.rmi.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(Session session,
RemoteVersionHistory remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote version history. |
Method Summary | |
---|---|
void |
addVersionLabel(String versionName,
String label,
boolean moveLabel)
|
VersionIterator |
getAllVersions()
|
Version |
getRootVersion()
|
Version |
getVersion(String versionName)
|
String |
getVersionableUUID()
|
Version |
getVersionByLabel(String label)
|
String[] |
getVersionLabels()
|
String[] |
getVersionLabels(Version version)
|
boolean |
hasVersionLabel(String label)
|
boolean |
hasVersionLabel(Version version,
String label)
|
void |
removeVersion(String versionName)
|
void |
removeVersionLabel(String label)
|
Methods inherited from class org.apache.jackrabbit.rmi.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, 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.apache.jackrabbit.rmi.client.ClientItem |
---|
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject |
---|
getFactory, getItem, getNode, getNodeTypeArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, 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(Session session, RemoteVersionHistory remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote version historyfactory
- local adapter factoryMethod Detail |
---|
public Version getRootVersion() throws RepositoryException
getRootVersion
in interface VersionHistory
RepositoryException
public VersionIterator getAllVersions() throws RepositoryException
getAllVersions
in interface VersionHistory
RepositoryException
public Version getVersion(String versionName) throws VersionException, RepositoryException
getVersion
in interface VersionHistory
VersionException
RepositoryException
public Version getVersionByLabel(String label) throws RepositoryException
getVersionByLabel
in interface VersionHistory
RepositoryException
public void addVersionLabel(String versionName, String label, boolean moveLabel) throws VersionException, RepositoryException
addVersionLabel
in interface VersionHistory
VersionException
RepositoryException
public void removeVersionLabel(String label) throws VersionException, RepositoryException
removeVersionLabel
in interface VersionHistory
VersionException
RepositoryException
public boolean hasVersionLabel(String label) throws RepositoryException
hasVersionLabel
in interface VersionHistory
RepositoryException
public boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException
hasVersionLabel
in interface VersionHistory
VersionException
RepositoryException
public String[] getVersionLabels() throws RepositoryException
getVersionLabels
in interface VersionHistory
RepositoryException
public String[] getVersionLabels(Version version) throws VersionException, RepositoryException
getVersionLabels
in interface VersionHistory
VersionException
RepositoryException
public void removeVersion(String versionName) throws UnsupportedRepositoryOperationException, VersionException, RepositoryException
removeVersion
in interface VersionHistory
UnsupportedRepositoryOperationException
VersionException
RepositoryException
public String getVersionableUUID() throws RepositoryException
getVersionableUUID
in interface VersionHistory
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |