public class VersionImpl extends NodeImpl implements javax.jcr.version.Version
Version interface.id, itemMgr, sessionContext, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL| Constructor and Description |
|---|
VersionImpl(ItemManager itemMgr,
SessionContext sessionContext,
AbstractNodeData data)
Create a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.version.VersionHistory |
getContainingHistory() |
Calendar |
getCreated() |
javax.jcr.Node |
getFrozenNode() |
InternalFrozenNode |
getInternalFrozenNode()
Returns the frozen node of this version
|
protected InternalVersion |
getInternalVersion()
Returns the internal version.
|
javax.jcr.version.Version |
getLinearPredecessor() |
javax.jcr.version.Version |
getLinearSuccessor() |
javax.jcr.version.Version[] |
getPredecessors() |
javax.jcr.version.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(javax.jcr.Item otherItem) |
javax.jcr.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, unlockpublic VersionImpl(ItemManager itemMgr, SessionContext sessionContext, AbstractNodeData data)
itemMgr - item managersessionContext - component context of the associated sessiondata - node dataprotected InternalVersion getInternalVersion() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if the internal version is not availablepublic Calendar getCreated() throws javax.jcr.RepositoryException
getCreated in interface javax.jcr.version.Versionjavax.jcr.RepositoryExceptionpublic javax.jcr.version.Version[] getSuccessors()
throws javax.jcr.RepositoryException
getSuccessors in interface javax.jcr.version.Versionjavax.jcr.RepositoryExceptionpublic javax.jcr.version.Version[] getPredecessors()
throws javax.jcr.RepositoryException
getPredecessors in interface javax.jcr.version.Versionjavax.jcr.RepositoryExceptionpublic javax.jcr.version.Version getLinearSuccessor()
throws javax.jcr.RepositoryException
getLinearSuccessor in interface javax.jcr.version.Versionjavax.jcr.RepositoryExceptionpublic javax.jcr.version.Version getLinearPredecessor()
throws javax.jcr.RepositoryException
getLinearPredecessor in interface javax.jcr.version.Versionjavax.jcr.RepositoryExceptionpublic javax.jcr.version.VersionHistory getContainingHistory()
throws javax.jcr.RepositoryException
getContainingHistory in interface javax.jcr.version.Versionjavax.jcr.RepositoryExceptionpublic InternalFrozenNode getInternalFrozenNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if an error occurspublic javax.jcr.Node getFrozenNode()
throws javax.jcr.RepositoryException
getFrozenNode in interface javax.jcr.version.Versionjavax.jcr.RepositoryExceptionpublic boolean isSame(javax.jcr.Item otherItem)
public boolean isMoreRecent(VersionImpl v) throws javax.jcr.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.javax.jcr.RepositoryException - if a repository error occurspublic boolean isRootVersion()
throws javax.jcr.RepositoryException
true if this version is the root version;
false otherwise.javax.jcr.RepositoryException - if a repository error occurspublic 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.