public class VersionHistoryDelegate extends NodeDelegate
VersionHistoryDelegate
...sessionDelegate
Modifier and Type | Method and Description |
---|---|
void |
addVersionLabel(@NotNull VersionDelegate version,
@NotNull java.lang.String oakVersionLabel,
boolean moveLabel) |
@NotNull java.util.Iterator<VersionDelegate> |
getAllLinearVersions() |
@NotNull java.util.Iterator<VersionDelegate> |
getAllVersions() |
@NotNull VersionDelegate |
getRootVersion() |
@NotNull VersionDelegate |
getVersion(@NotNull java.lang.String versionName)
Gets the version with the given name.
|
java.lang.String |
getVersionableIdentifier() |
@NotNull VersionDelegate |
getVersionByLabel(@NotNull java.lang.String label) |
@NotNull java.lang.Iterable<java.lang.String> |
getVersionLabels() |
@NotNull java.lang.Iterable<java.lang.String> |
getVersionLabels(@NotNull java.lang.String identifier) |
void |
removeVersion(@NotNull java.lang.String oakVersionName) |
void |
removeVersionLabel(@NotNull java.lang.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 java.lang.String getVersionableIdentifier() throws InvalidItemStateException
InvalidItemStateException
@NotNull public @NotNull VersionDelegate getRootVersion() throws RepositoryException
RepositoryException
@NotNull public @NotNull VersionDelegate getVersion(@NotNull @NotNull java.lang.String versionName) throws VersionException, RepositoryException
versionName
- a version name.VersionException
- if there is no version with the given name.RepositoryException
- if another error occurs.@NotNull public @NotNull VersionDelegate getVersionByLabel(@NotNull @NotNull java.lang.String label) throws VersionException, RepositoryException
VersionException
RepositoryException
@NotNull public @NotNull java.lang.Iterable<java.lang.String> getVersionLabels() throws RepositoryException
RepositoryException
@NotNull public @NotNull java.lang.Iterable<java.lang.String> getVersionLabels(@NotNull @NotNull java.lang.String identifier) throws RepositoryException
RepositoryException
@NotNull public @NotNull java.util.Iterator<VersionDelegate> getAllVersions() throws RepositoryException
RepositoryException
@NotNull public @NotNull java.util.Iterator<VersionDelegate> getAllLinearVersions() throws RepositoryException
RepositoryException
public void addVersionLabel(@NotNull @NotNull VersionDelegate version, @NotNull @NotNull java.lang.String oakVersionLabel, boolean moveLabel) throws LabelExistsVersionException, VersionException, RepositoryException
public void removeVersionLabel(@NotNull @NotNull java.lang.String oakVersionLabel) throws VersionException, RepositoryException
VersionException
RepositoryException
public void removeVersion(@NotNull @NotNull java.lang.String oakVersionName) throws RepositoryException
RepositoryException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.