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 |
|---|
VersionImpl(ItemManager itemMgr,
SessionContext sessionContext,
AbstractNodeData data)
Create a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
VersionHistory |
getContainingHistory() |
Calendar |
getCreated() |
Node |
getFrozenNode() |
InternalFrozenNode |
getInternalFrozenNode()
Returns the frozen node of this version
|
protected InternalVersion |
getInternalVersion()
Returns the internal version.
|
Version |
getLinearPredecessor() |
Version |
getLinearSuccessor() |
Version[] |
getPredecessors() |
Version[] |
getSuccessors() |
boolean |
isMoreRecent(VersionImpl v)
Checks if this version is more recent than the given version
v. |
boolean |
isRootVersion()
Checks if this is the root version.
|
boolean |
isSame(Item otherItem) |
NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
Always throws a
ConstraintViolationException since this node
is protected. |
String |
toString()
Return a string representation of this version 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, unlockaccept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, savepublic VersionImpl(ItemManager itemMgr, SessionContext sessionContext, AbstractNodeData data)
itemMgr - item managersessionContext - component context of the associated sessiondata - node dataprotected InternalVersion getInternalVersion() throws RepositoryException
RepositoryException - if the internal version is not availablepublic Calendar getCreated() throws RepositoryException
getCreated in interface VersionRepositoryExceptionpublic Version[] getSuccessors() throws RepositoryException
getSuccessors in interface VersionRepositoryExceptionpublic Version[] getPredecessors() throws RepositoryException
getPredecessors in interface VersionRepositoryExceptionpublic Version getLinearSuccessor() throws RepositoryException
getLinearSuccessor in interface VersionRepositoryExceptionpublic Version getLinearPredecessor() throws RepositoryException
getLinearPredecessor in interface VersionRepositoryExceptionpublic VersionHistory getContainingHistory() throws RepositoryException
getContainingHistory in interface VersionRepositoryExceptionpublic InternalFrozenNode getInternalFrozenNode() throws RepositoryException
RepositoryException - if an error occurspublic Node getFrozenNode() throws RepositoryException
getFrozenNode in interface VersionRepositoryExceptionpublic boolean isSame(Item otherItem)
public boolean isMoreRecent(VersionImpl v) throws RepositoryException
v.
A version is more recent if and only if it is a successor (or a successor
of a successor, etc., to any degree of separation) of the compared one.v - the version to checktrue if the version is more recent;
false otherwise.RepositoryException - if a repository error occurspublic boolean isRootVersion()
throws RepositoryException
true if this version is the root version;
false otherwise.RepositoryException - if a repository error occurspublic 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–2024 The Apache Software Foundation. All rights reserved.