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 InvalidItemStateException
InvalidItemStateException
@Nonnull public VersionDelegate getRootVersion() throws RepositoryException
RepositoryException
@Nonnull public VersionDelegate getVersion(@Nonnull String versionName) throws VersionException, RepositoryException
versionName
- a version name.VersionException
- if there is no version with the given name.RepositoryException
- if another error occurs.@Nonnull public VersionDelegate getVersionByLabel(@Nonnull String label) throws VersionException, RepositoryException
VersionException
RepositoryException
@Nonnull public Iterable<String> getVersionLabels() throws RepositoryException
RepositoryException
@Nonnull public Iterable<String> getVersionLabels(@Nonnull String identifier) throws RepositoryException
RepositoryException
@Nonnull public Iterator<VersionDelegate> getAllVersions() throws RepositoryException
RepositoryException
@Nonnull public Iterator<VersionDelegate> getAllLinearVersions() throws RepositoryException
RepositoryException
public void addVersionLabel(@Nonnull VersionDelegate version, @Nonnull String oakVersionLabel, boolean moveLabel) throws LabelExistsVersionException, VersionException, RepositoryException
public void removeVersionLabel(@Nonnull String oakVersionLabel) throws VersionException, RepositoryException
VersionException
RepositoryException
public void removeVersion(@Nonnull String oakVersionName) throws RepositoryException
RepositoryException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.