public class VersionHistoryDelegate extends NodeDelegate
VersionHistoryDelegate...sessionDelegate| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(@NotNull VersionDelegate version,
@NotNull String oakVersionLabel,
boolean moveLabel) |
@NotNull Iterator<VersionDelegate> |
getAllLinearVersions() |
@NotNull Iterator<VersionDelegate> |
getAllVersions() |
@NotNull VersionDelegate |
getRootVersion() |
@NotNull VersionDelegate |
getVersion(@NotNull String versionName)
Gets the version with the given name.
|
String |
getVersionableIdentifier() |
@NotNull VersionDelegate |
getVersionByLabel(@NotNull String label) |
@NotNull Iterable<String> |
getVersionLabels() |
@NotNull Iterable<String> |
getVersionLabels(@NotNull String identifier) |
void |
removeVersion(@NotNull String oakVersionName) |
void |
removeVersionLabel(@NotNull 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 InvalidItemStateException
InvalidItemStateException@NotNull public @NotNull VersionDelegate getRootVersion() throws RepositoryException
RepositoryException@NotNull public @NotNull VersionDelegate getVersion(@NotNull @NotNull 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 String label) throws VersionException, RepositoryException
VersionExceptionRepositoryException@NotNull public @NotNull Iterable<String> getVersionLabels() throws RepositoryException
RepositoryException@NotNull public @NotNull Iterable<String> getVersionLabels(@NotNull @NotNull String identifier) throws RepositoryException
RepositoryException@NotNull public @NotNull Iterator<VersionDelegate> getAllVersions() throws RepositoryException
RepositoryException@NotNull public @NotNull Iterator<VersionDelegate> getAllLinearVersions() throws RepositoryException
RepositoryExceptionpublic void addVersionLabel(@NotNull
@NotNull VersionDelegate version,
@NotNull
@NotNull String oakVersionLabel,
boolean moveLabel)
throws LabelExistsVersionException,
VersionException,
RepositoryException
public void removeVersionLabel(@NotNull
@NotNull String oakVersionLabel)
throws VersionException,
RepositoryException
VersionExceptionRepositoryExceptionpublic void removeVersion(@NotNull
@NotNull String oakVersionName)
throws RepositoryException
RepositoryExceptionCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.