JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
Constructor and Description |
---|
VersionImpl(SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkIsWritable()
Always throws ConstraintViolationException since the version storage is
protected.
|
VersionHistory |
getContainingHistory() |
Calendar |
getCreated() |
Node |
getFrozenNode() |
Version |
getLinearPredecessor() |
Version |
getLinearSuccessor() |
Version[] |
getPredecessors() |
Version[] |
getSuccessors() |
boolean |
isSame(Item otherItem) |
protected boolean |
isWritable()
Always returns false
|
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getNode, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNode, isNodeType, lock, lock, merge, merge, 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, update
checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, refresh, remove, save, statusChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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, merge, 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, update
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, save
public VersionImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners)
public VersionHistory getContainingHistory() throws RepositoryException
getContainingHistory
in interface Version
RepositoryException
Version.getContainingHistory()
public Calendar getCreated() throws RepositoryException
getCreated
in interface Version
RepositoryException
Version.getCreated()
public Version[] getSuccessors() throws RepositoryException
getSuccessors
in interface Version
RepositoryException
Version.getSuccessors()
public Version getLinearSuccessor() throws RepositoryException
getLinearSuccessor
in interface Version
RepositoryException
Version.getLinearSuccessor()
public Version[] getPredecessors() throws RepositoryException
getPredecessors
in interface Version
RepositoryException
Version.getPredecessors()
public Version getLinearPredecessor() throws RepositoryException
getLinearPredecessor
in interface Version
RepositoryException
Version.getLinearPredecessor()
public Node getFrozenNode() throws RepositoryException
getFrozenNode
in interface Version
RepositoryException
Version.getFrozenNode()
public boolean isSame(Item otherItem) throws RepositoryException
isSame
in interface Item
isSame
in class ItemImpl
otherItem
- RepositoryException
Item.isSame(Item)
protected void checkIsWritable() throws UnsupportedRepositoryOperationException, ConstraintViolationException, RepositoryException
checkIsWritable
in class ItemImpl
UnsupportedRepositoryOperationException
ConstraintViolationException
RepositoryException
ItemStateValidator
protected boolean isWritable() throws RepositoryException
isWritable
in class ItemImpl
RepositoryException
UnsupportedRepositoryOperationException
ItemImpl.isWritable()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.