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, updateMixins
checkAlive, checkUpdate, save, update
public String getVersionableIdentifier() throws javax.jcr.InvalidItemStateException
javax.jcr.InvalidItemStateException
@NotNull public @NotNull VersionDelegate getRootVersion() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@NotNull public @NotNull VersionDelegate getVersion(@NotNull @NotNull 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.@NotNull public @NotNull VersionDelegate getVersionByLabel(@NotNull @NotNull String label) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
@NotNull public @NotNull Iterable<String> getVersionLabels() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@NotNull public @NotNull Iterable<String> getVersionLabels(@NotNull @NotNull String identifier) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@NotNull public @NotNull Iterator<VersionDelegate> getAllVersions() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@NotNull public @NotNull Iterator<VersionDelegate> getAllLinearVersions() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void addVersionLabel(@NotNull @NotNull VersionDelegate version, @NotNull @NotNull 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(@NotNull @NotNull String oakVersionLabel) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
public void removeVersion(@NotNull @NotNull String oakVersionName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.