public class VersionHistoryImpl extends NodeImpl implements VersionHistory
VersionHistoryImpl...JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS| Constructor and Description |
|---|
VersionHistoryImpl(SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(String versionName,
String label,
boolean moveLabel) |
protected void |
checkIsWritable()
Checks if the repository supports level 2 (writing) and the status of
this item.
|
NodeIterator |
getAllFrozenNodes() |
NodeIterator |
getAllLinearFrozenNodes() |
VersionIterator |
getAllLinearVersions() |
VersionIterator |
getAllVersions() |
Version |
getRootVersion() |
Version |
getVersion(String versionName) |
String |
getVersionableIdentifier() |
String |
getVersionableUUID() |
Version |
getVersionByLabel(String label) |
String[] |
getVersionLabels() |
String[] |
getVersionLabels(Version version) |
boolean |
hasVersionLabel(String label) |
boolean |
hasVersionLabel(Version version,
String label) |
boolean |
isSame(Item otherItem) |
protected boolean |
isWritable()
Always returns false
|
void |
removeVersion(String versionName) |
void |
removeVersionLabel(String label) |
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getNode, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNode, isNodeType, lock, lock, merge, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, updatecheckStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, refresh, remove, save, statusChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, updateaccept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, savepublic VersionHistoryImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners) throws VersionException, RepositoryException
VersionExceptionRepositoryExceptionpublic String getVersionableUUID() throws RepositoryException
getVersionableUUID in interface VersionHistoryRepositoryExceptionVersionHistory.getVersionableUUID()public Version getRootVersion() throws RepositoryException
getRootVersion in interface VersionHistoryRepositoryExceptionVersionHistory.getRootVersion()public VersionIterator getAllVersions() throws RepositoryException
getAllVersions in interface VersionHistoryRepositoryExceptionVersionHistory.getAllVersions()public VersionIterator getAllLinearVersions() throws RepositoryException
getAllLinearVersions in interface VersionHistoryRepositoryExceptionVersionHistory.getAllLinearVersions()public NodeIterator getAllFrozenNodes() throws RepositoryException
getAllFrozenNodes in interface VersionHistoryRepositoryExceptionVersionHistory.getAllFrozenNodes()public NodeIterator getAllLinearFrozenNodes() throws RepositoryException
getAllLinearFrozenNodes in interface VersionHistoryRepositoryExceptionVersionHistory.getAllLinearFrozenNodes()public Version getVersion(String versionName) throws VersionException, RepositoryException
getVersion in interface VersionHistoryVersionExceptionRepositoryExceptionVersionHistory.getVersion(String)public Version getVersionByLabel(String label) throws RepositoryException
getVersionByLabel in interface VersionHistoryRepositoryExceptionVersionHistory.getVersionByLabel(String)public void addVersionLabel(String versionName, String label, boolean moveLabel) throws VersionException, RepositoryException
addVersionLabel in interface VersionHistoryVersionExceptionRepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)public void removeVersionLabel(String label) throws VersionException, RepositoryException
removeVersionLabel in interface VersionHistoryVersionExceptionRepositoryExceptionVersionHistory.removeVersionLabel(String)public boolean hasVersionLabel(String label) throws RepositoryException
hasVersionLabel in interface VersionHistoryRepositoryExceptionVersionHistory.hasVersionLabel(String)public boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException
hasVersionLabel in interface VersionHistoryVersionExceptionRepositoryExceptionVersionHistory.hasVersionLabel(Version, String)public String[] getVersionLabels() throws RepositoryException
getVersionLabels in interface VersionHistoryRepositoryExceptionVersionHistory.getVersionLabels()public String[] getVersionLabels(Version version) throws VersionException, RepositoryException
getVersionLabels in interface VersionHistoryVersionExceptionRepositoryExceptionVersionHistory.getVersionLabels(Version)public void removeVersion(String versionName) throws ReferentialIntegrityException, AccessDeniedException, UnsupportedRepositoryOperationException, VersionException, RepositoryException
removeVersion in interface VersionHistoryReferentialIntegrityExceptionAccessDeniedExceptionUnsupportedRepositoryOperationExceptionVersionExceptionRepositoryExceptionVersionHistory.removeVersion(String)public String getVersionableIdentifier() throws RepositoryException
getVersionableIdentifier in interface VersionHistoryRepositoryExceptionVersionHistory.getVersionableIdentifier()public boolean isSame(Item otherItem) throws RepositoryException
isSame in interface ItemisSame in class ItemImplotherItem - RepositoryExceptionItem.isSame(Item)protected void checkIsWritable()
throws UnsupportedRepositoryOperationException,
ConstraintViolationException,
RepositoryException
ItemImplcheckIsWritable in class ItemImplUnsupportedRepositoryOperationExceptionConstraintViolationExceptionRepositoryExceptionItemStateValidatorprotected boolean isWritable()
throws RepositoryException
isWritable in class ItemImplRepositoryExceptionUnsupportedRepositoryOperationExceptionItemImpl.isWritable()Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.