public class VersionHistoryDelegate extends NodeDelegate
VersionHistoryDelegate
...sessionDelegate
Modifier and Type | Method and Description |
---|---|
void |
addVersionLabel(VersionDelegate version,
String oakVersionLabel,
boolean moveLabel) |
Iterator<VersionDelegate> |
getAllLinearVersions() |
Iterator<VersionDelegate> |
getAllVersions() |
VersionDelegate |
getRootVersion() |
VersionDelegate |
getVersion(String versionName)
Gets the version with the given name.
|
String |
getVersionableIdentifier() |
VersionDelegate |
getVersionByLabel(String label) |
Iterable<String> |
getVersionLabels() |
Iterable<String> |
getVersionLabels(String identifier) |
void |
removeVersion(String oakVersionName) |
void |
removeVersionLabel(String oakVersionLabel) |
addChild, addMixin, canAddMixin, exists, getChild, getChildCount, getChildren, getIdentifier, getLock, getLockOwner, getName, getParent, getPath, getProperties, getProperty, getPropertyCount, getPropertyOrNull, getStatus, getTree, holdsLock, isLocked, isLockOwner, isProtected, isRoot, lock, orderBefore, remove, removeMixin, setMixins, setOrderableChildren, setProperty, toString, unlock, updateMixins
checkAlive, checkUpdate, save, update
public String getVersionableIdentifier() throws javax.jcr.InvalidItemStateException
javax.jcr.InvalidItemStateException
@Nonnull public VersionDelegate getRootVersion() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public VersionDelegate getVersion(@Nonnull String versionName) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
versionName
- a version name.javax.jcr.version.VersionException
- if there is no version with the given name.javax.jcr.RepositoryException
- if another error occurs.@Nonnull public VersionDelegate getVersionByLabel(@Nonnull String label) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
@Nonnull public Iterable<String> getVersionLabels() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public Iterable<String> getVersionLabels(@Nonnull String identifier) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public Iterator<VersionDelegate> getAllVersions() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nonnull public Iterator<VersionDelegate> getAllLinearVersions() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void addVersionLabel(@Nonnull VersionDelegate version, @Nonnull String oakVersionLabel, boolean moveLabel) throws javax.jcr.version.LabelExistsVersionException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
javax.jcr.version.LabelExistsVersionException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
public void removeVersionLabel(@Nonnull String oakVersionLabel) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.