public class VersionHistoryImpl extends NodeImpl implements VersionHistory
VersionHistory
interface.id, itemMgr, sessionContext, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
Constructor and Description |
---|
VersionHistoryImpl(ItemManager itemMgr,
SessionContext sessionContext,
AbstractNodeData data)
Create a new instance of this class.
|
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, unlock
getAncestor, getDepth, getId, getPath, getQName, getSession, getType, getValueFactory, getValues, isModified, isNew, isTransactionalNew, isTransient, itemSanityCheck, perform, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addMixin, 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, unlock
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, save
public VersionHistoryImpl(ItemManager itemMgr, SessionContext sessionContext, AbstractNodeData data)
itemMgr
- item managersessionContext
- component context of the associated sessiondata
- node dataprotected InternalVersionHistory getInternalVersionHistory() throws RepositoryException
RepositoryException
- if the internal version history is not availablepublic Version getRootVersion() throws RepositoryException
getRootVersion
in interface VersionHistory
RepositoryException
VersionHistory.getRootVersion()
public VersionIterator getAllVersions() throws RepositoryException
getAllVersions
in interface VersionHistory
RepositoryException
VersionHistory.getAllVersions()
public NodeIterator getAllFrozenNodes() throws RepositoryException
getAllFrozenNodes
in interface VersionHistory
RepositoryException
VersionHistory.getAllFrozenNodes()
public VersionIterator getAllLinearVersions() throws RepositoryException
getAllLinearVersions
in interface VersionHistory
RepositoryException
VersionHistory.getAllLinearVersions()
public NodeIterator getAllLinearFrozenNodes() throws RepositoryException
getAllLinearFrozenNodes
in interface VersionHistory
RepositoryException
VersionHistory.getAllLinearFrozenNodes()
public Version getVersion(String versionName) throws VersionException, RepositoryException
getVersion
in interface VersionHistory
VersionException
RepositoryException
VersionHistory.getVersion(String)
public Version getVersionByLabel(String label) throws RepositoryException
getVersionByLabel
in interface VersionHistory
RepositoryException
VersionHistory.getVersionByLabel(String)
public void addVersionLabel(String versionName, String label, boolean move) throws VersionException, RepositoryException
addVersionLabel
in interface VersionHistory
VersionException
RepositoryException
VersionHistory.addVersionLabel(String, String, boolean)
public void removeVersionLabel(String label) throws RepositoryException
removeVersionLabel
in interface VersionHistory
RepositoryException
VersionHistory.removeVersionLabel(String)
public String[] getVersionLabels() throws RepositoryException
getVersionLabels
in interface VersionHistory
RepositoryException
VersionHistory.getVersionLabels()
public String[] getVersionLabels(Version version) throws VersionException, RepositoryException
getVersionLabels
in interface VersionHistory
VersionException
RepositoryException
VersionHistory.getVersionLabels(javax.jcr.version.Version)
public boolean hasVersionLabel(String label) throws RepositoryException
hasVersionLabel
in interface VersionHistory
RepositoryException
VersionHistory.hasVersionLabel(String)
public boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException
hasVersionLabel
in interface VersionHistory
VersionException
RepositoryException
VersionHistory.hasVersionLabel(javax.jcr.version.Version, String)
public void removeVersion(String versionName) throws UnsupportedRepositoryOperationException, VersionException, RepositoryException
removeVersion
in interface VersionHistory
UnsupportedRepositoryOperationException
VersionException
RepositoryException
VersionHistory.removeVersion(String)
public void removeVersionHistory() throws RepositoryException
RepositoryException
- if an error occurs.public boolean isSame(Item otherItem)
ItemImpl
isSame
in interface Item
isSame
in class ItemImpl
Item.isSame(javax.jcr.Item)
public String getVersionableUUID() throws RepositoryException
getVersionableUUID
in interface VersionHistory
RepositoryException
public String getVersionableIdentifier() throws RepositoryException
getVersionableIdentifier
in interface VersionHistory
RepositoryException
public void update(String srcWorkspaceName) throws ConstraintViolationException
ConstraintViolationException
since this node
is protected.update
in interface Node
update
in class NodeImpl
ConstraintViolationException
public NodeIterator merge(String srcWorkspace, boolean bestEffort) throws ConstraintViolationException
ConstraintViolationException
since this node
is protected.merge
in interface Node
merge
in class NodeImpl
ConstraintViolationException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.