public class VersionHistoryImpl extends NodeImpl implements javax.jcr.version.VersionHistory
VersionHistory interface.id, itemMgr, sessionContext, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL| Constructor and Description |
|---|
VersionHistoryImpl(ItemManager itemMgr,
SessionContext sessionContext,
AbstractNodeData data)
Create a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(String versionName,
String label,
boolean move) |
javax.jcr.NodeIterator |
getAllFrozenNodes() |
javax.jcr.NodeIterator |
getAllLinearFrozenNodes() |
javax.jcr.version.VersionIterator |
getAllLinearVersions() |
javax.jcr.version.VersionIterator |
getAllVersions() |
protected InternalVersionHistory |
getInternalVersionHistory()
Returns the internal version history.
|
javax.jcr.version.Version |
getRootVersion() |
javax.jcr.version.Version |
getVersion(String versionName) |
String |
getVersionableIdentifier() |
String |
getVersionableUUID() |
javax.jcr.version.Version |
getVersionByLabel(String label) |
String[] |
getVersionLabels() |
String[] |
getVersionLabels(javax.jcr.version.Version version) |
boolean |
hasVersionLabel(String label) |
boolean |
hasVersionLabel(javax.jcr.version.Version version,
String label) |
boolean |
isSame(javax.jcr.Item otherItem) |
javax.jcr.NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
Always throws a
ConstraintViolationException since this node
is protected. |
void |
removeVersion(String versionName) |
void |
removeVersionHistory()
Removes this VersionHistory from storage.
|
void |
removeVersionLabel(String label) |
String |
toString()
Return a string representation of this version history node
for diagnostic purposes.
|
void |
update(String srcWorkspaceName)
Always throws a
ConstraintViolationException since this node
is protected. |
accept, addMixin, addMixin, addNode, addNode, addNode, addNodeWithUuid, addNodeWithUuid, assignLifecyclePolicy, canAddMixin, cancelMerge, checkin, checkin, checkLock, checkout, checkSetProperty, clone, createChildNode, createChildProperty, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getApplicableChildNodeDefinition, getApplicablePropertyDefinition, getBaseVersion, getCorrespondingNodePath, getDefinition, getEffectiveNodeType, getIdentifier, getIndex, getLock, getMixinNodeTypes, getMixinTypeNames, getName, getNode, getNode, getNode, getNodeId, getNodes, getNodes, getNodes, getOrCreateProperty, getOrCreateProperty, getOrCreateTransientItemState, getParent, getParentId, getPrimaryItem, getPrimaryNodeType, getPrimaryNodeTypeName, getPrimaryPath, getProperties, getProperties, getProperties, getProperty, getProperty, getQName, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNode, hasNode, hasNodes, hasPendingChanges, hasProperties, hasProperty, hasProperty, holdsLock, internalSetProperty, internalSetProperty, internalSetProperty, isAccessControllable, isCheckedOut, isLocked, isNode, isNodeType, isNodeType, lock, makePersistent, onRedefine, onRemove, orderBefore, orderBefore, removeChildNode, removeChildProperty, removeMixin, removeMixin, removeShare, removeSharedSet, rename, renameChildNode, renameChildNode, replaceChildNode, resolveRelativeNodePath, resolveRelativePropertyPath, restore, restore, restore, restoreByLabel, restoreTransient, setMixins, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlockgetAncestor, getDepth, getId, getPath, getQName, getSession, getType, getValueFactory, getValues, isModified, isNew, isTransactionalNew, isTransient, itemSanityCheck, perform, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, 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, unlockpublic VersionHistoryImpl(ItemManager itemMgr, SessionContext sessionContext, AbstractNodeData data)
itemMgr - item managersessionContext - component context of the associated sessiondata - node dataprotected InternalVersionHistory getInternalVersionHistory() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if the internal version history is not availablepublic javax.jcr.version.Version getRootVersion()
throws javax.jcr.RepositoryException
getRootVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getRootVersion()public javax.jcr.version.VersionIterator getAllVersions()
throws javax.jcr.RepositoryException
getAllVersions in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getAllVersions()public javax.jcr.NodeIterator getAllFrozenNodes()
throws javax.jcr.RepositoryException
getAllFrozenNodes in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getAllFrozenNodes()public javax.jcr.version.VersionIterator getAllLinearVersions()
throws javax.jcr.RepositoryException
getAllLinearVersions in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getAllLinearVersions()public javax.jcr.NodeIterator getAllLinearFrozenNodes()
throws javax.jcr.RepositoryException
getAllLinearFrozenNodes in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getAllLinearFrozenNodes()public javax.jcr.version.Version getVersion(String versionName) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
getVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.getVersion(String)public javax.jcr.version.Version getVersionByLabel(String label) throws javax.jcr.RepositoryException
getVersionByLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getVersionByLabel(String)public void addVersionLabel(String versionName, String label, boolean move) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
addVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)public void removeVersionLabel(String label) throws javax.jcr.RepositoryException
removeVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.removeVersionLabel(String)public String[] getVersionLabels() throws javax.jcr.RepositoryException
getVersionLabels in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getVersionLabels()public String[] getVersionLabels(javax.jcr.version.Version version) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
getVersionLabels in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.getVersionLabels(javax.jcr.version.Version)public boolean hasVersionLabel(String label) throws javax.jcr.RepositoryException
hasVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.hasVersionLabel(String)public boolean hasVersionLabel(javax.jcr.version.Version version,
String label)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
hasVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.hasVersionLabel(javax.jcr.version.Version, String)public void removeVersion(String versionName) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
removeVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.removeVersion(String)public void removeVersionHistory()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if an error occurs.public boolean isSame(javax.jcr.Item otherItem)
ItemImplpublic String getVersionableUUID() throws javax.jcr.RepositoryException
getVersionableUUID in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionpublic String getVersionableIdentifier() throws javax.jcr.RepositoryException
getVersionableIdentifier in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionpublic void update(String srcWorkspaceName) throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException since this node
is protected.public javax.jcr.NodeIterator merge(String srcWorkspace, boolean bestEffort) throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException since this node
is protected.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.