|
||||||||||
| 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| Field Summary |
|---|
| Fields inherited from interface javax.jcr.Node |
|---|
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS |
| 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)
|
NodeIterator |
getAllFrozenNodes()
|
NodeIterator |
getAllLinearFrozenNodes()
|
VersionIterator |
getAllLinearVersions()
|
VersionIterator |
getAllVersions()
|
Version |
getRootVersion()
|
Version |
getVersion(String versionName)
|
String |
getVersionableIdentifier()
|
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.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.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 factory| Method Detail |
|---|
public Version getRootVersion()
throws RepositoryException
getRootVersion in interface VersionHistoryRepositoryException
public VersionIterator getAllVersions()
throws RepositoryException
getAllVersions in interface VersionHistoryRepositoryException
public Version getVersion(String versionName)
throws VersionException,
RepositoryException
getVersion in interface VersionHistoryVersionException
RepositoryException
public Version getVersionByLabel(String label)
throws RepositoryException
getVersionByLabel in interface VersionHistoryRepositoryException
public void addVersionLabel(String versionName,
String label,
boolean moveLabel)
throws VersionException,
RepositoryException
addVersionLabel in interface VersionHistoryVersionException
RepositoryException
public void removeVersionLabel(String label)
throws VersionException,
RepositoryException
removeVersionLabel in interface VersionHistoryVersionException
RepositoryException
public boolean hasVersionLabel(String label)
throws RepositoryException
hasVersionLabel in interface VersionHistoryRepositoryException
public boolean hasVersionLabel(Version version,
String label)
throws VersionException,
RepositoryException
hasVersionLabel in interface VersionHistoryVersionException
RepositoryException
public String[] getVersionLabels()
throws RepositoryException
getVersionLabels in interface VersionHistoryRepositoryException
public String[] getVersionLabels(Version version)
throws VersionException,
RepositoryException
getVersionLabels in interface VersionHistoryVersionException
RepositoryException
public void removeVersion(String versionName)
throws UnsupportedRepositoryOperationException,
VersionException,
RepositoryException
removeVersion in interface VersionHistoryUnsupportedRepositoryOperationException
VersionException
RepositoryException
public String getVersionableUUID()
throws RepositoryException
getVersionableUUID in interface VersionHistoryRepositoryException
public NodeIterator getAllFrozenNodes()
throws RepositoryException
getAllFrozenNodes in interface VersionHistoryRepositoryException
public NodeIterator getAllLinearFrozenNodes()
throws RepositoryException
getAllLinearFrozenNodes in interface VersionHistoryRepositoryException
public VersionIterator getAllLinearVersions()
throws RepositoryException
getAllLinearVersions in interface VersionHistoryRepositoryException
public String getVersionableIdentifier()
throws RepositoryException
getVersionableIdentifier in interface VersionHistoryRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||