public class VersionHistoryImpl extends NodeImpl implements VersionHistory
VersionHistory interface.id, itemMgr, sessionContext, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMALJCR_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, 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, unlockaccept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, savepublic 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 VersionHistoryRepositoryExceptionVersionHistory.getRootVersion()public VersionIterator getAllVersions() throws RepositoryException
getAllVersions in interface VersionHistoryRepositoryExceptionVersionHistory.getAllVersions()public NodeIterator getAllFrozenNodes() throws RepositoryException
getAllFrozenNodes in interface VersionHistoryRepositoryExceptionVersionHistory.getAllFrozenNodes()public VersionIterator getAllLinearVersions() throws RepositoryException
getAllLinearVersions in interface VersionHistoryRepositoryExceptionVersionHistory.getAllLinearVersions()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 move) throws VersionException, RepositoryException
addVersionLabel in interface VersionHistoryVersionExceptionRepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)public void removeVersionLabel(String label) throws RepositoryException
removeVersionLabel in interface VersionHistoryRepositoryExceptionVersionHistory.removeVersionLabel(String)public String[] getVersionLabels() throws RepositoryException
getVersionLabels in interface VersionHistoryRepositoryExceptionVersionHistory.getVersionLabels()public String[] getVersionLabels(Version version) throws VersionException, RepositoryException
getVersionLabels in interface VersionHistoryVersionExceptionRepositoryExceptionVersionHistory.getVersionLabels(javax.jcr.version.Version)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(javax.jcr.version.Version, String)public void removeVersion(String versionName) throws UnsupportedRepositoryOperationException, VersionException, RepositoryException
removeVersion in interface VersionHistoryUnsupportedRepositoryOperationExceptionVersionExceptionRepositoryExceptionVersionHistory.removeVersion(String)public void removeVersionHistory()
throws RepositoryException
RepositoryException - if an error occurs.public boolean isSame(Item otherItem)
ItemImplisSame in interface ItemisSame in class ItemImplItem.isSame(javax.jcr.Item)public String getVersionableUUID() throws RepositoryException
getVersionableUUID in interface VersionHistoryRepositoryExceptionpublic String getVersionableIdentifier() throws RepositoryException
getVersionableIdentifier in interface VersionHistoryRepositoryExceptionpublic void update(String srcWorkspaceName) throws ConstraintViolationException
ConstraintViolationException since this node
is protected.update in interface Nodeupdate in class NodeImplConstraintViolationExceptionpublic NodeIterator merge(String srcWorkspace, boolean bestEffort) throws ConstraintViolationException
ConstraintViolationException since this node
is protected.merge in interface Nodemerge in class NodeImplConstraintViolationExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.