public class ClientVersionHistory extends ClientNode
RemoteVersionHistory
interface. This class makes a remote version history locally available using
the JCR VersionHistory
interface.VersionHistory
,
RemoteVersionHistory
Constructor and Description |
---|
ClientVersionHistory(Session session,
RemoteVersionHistory remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote version history.
|
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
As of JCR 2.0,
getVersionableIdentifier() should be
used instead. |
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) |
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNode, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
public ClientVersionHistory(Session session, RemoteVersionHistory remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote version historyfactory
- local adapter factorypublic Version getRootVersion() throws RepositoryException
RepositoryException
public VersionIterator getAllVersions() throws RepositoryException
RepositoryException
public Version getVersion(String versionName) throws VersionException, RepositoryException
VersionException
RepositoryException
public Version getVersionByLabel(String label) throws RepositoryException
RepositoryException
public void addVersionLabel(String versionName, String label, boolean moveLabel) throws VersionException, RepositoryException
VersionException
RepositoryException
public void removeVersionLabel(String label) throws VersionException, RepositoryException
VersionException
RepositoryException
public boolean hasVersionLabel(String label) throws RepositoryException
RepositoryException
public boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException
VersionException
RepositoryException
public String[] getVersionLabels() throws RepositoryException
RepositoryException
public String[] getVersionLabels(Version version) throws VersionException, RepositoryException
VersionException
RepositoryException
public void removeVersion(String versionName) throws UnsupportedRepositoryOperationException, VersionException, RepositoryException
UnsupportedRepositoryOperationException
VersionException
RepositoryException
public String getVersionableUUID() throws RepositoryException
getVersionableIdentifier()
should be
used instead.RepositoryException
public NodeIterator getAllFrozenNodes() throws RepositoryException
RepositoryException
public NodeIterator getAllLinearFrozenNodes() throws RepositoryException
RepositoryException
public VersionIterator getAllLinearVersions() throws RepositoryException
RepositoryException
public String getVersionableIdentifier() throws RepositoryException
RepositoryException
"Copyright © 2010 - 2016 Adobe Systems Incorporated. All Rights Reserved"