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, updateMixinscheckAlive, checkUpdate, save, updatepublic 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.VersionExceptionjavax.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.RepositoryExceptionpublic 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.LabelExistsVersionExceptionjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionpublic void removeVersionLabel(@Nonnull String oakVersionLabel) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
javax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionCopyright © 2012-2019 The Apache Software Foundation. All Rights Reserved.