public class VersionImpl extends NodeImpl implements javax.jcr.version.Version
VersionImpl
...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.
|
javax.jcr.version.VersionHistory |
getContainingHistory() |
Calendar |
getCreated() |
javax.jcr.Node |
getFrozenNode() |
javax.jcr.version.Version |
getLinearPredecessor() |
javax.jcr.version.Version |
getLinearSuccessor() |
javax.jcr.version.Version[] |
getPredecessors() |
javax.jcr.version.Version[] |
getSuccessors() |
boolean |
isSame(javax.jcr.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
public VersionImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners)
public javax.jcr.version.VersionHistory getContainingHistory() throws javax.jcr.RepositoryException
getContainingHistory
in interface javax.jcr.version.Version
javax.jcr.RepositoryException
Version.getContainingHistory()
public Calendar getCreated() throws javax.jcr.RepositoryException
getCreated
in interface javax.jcr.version.Version
javax.jcr.RepositoryException
Version.getCreated()
public javax.jcr.version.Version[] getSuccessors() throws javax.jcr.RepositoryException
getSuccessors
in interface javax.jcr.version.Version
javax.jcr.RepositoryException
Version.getSuccessors()
public javax.jcr.version.Version getLinearSuccessor() throws javax.jcr.RepositoryException
getLinearSuccessor
in interface javax.jcr.version.Version
javax.jcr.RepositoryException
Version.getLinearSuccessor()
public javax.jcr.version.Version[] getPredecessors() throws javax.jcr.RepositoryException
getPredecessors
in interface javax.jcr.version.Version
javax.jcr.RepositoryException
Version.getPredecessors()
public javax.jcr.version.Version getLinearPredecessor() throws javax.jcr.RepositoryException
getLinearPredecessor
in interface javax.jcr.version.Version
javax.jcr.RepositoryException
Version.getLinearPredecessor()
public javax.jcr.Node getFrozenNode() throws javax.jcr.RepositoryException
getFrozenNode
in interface javax.jcr.version.Version
javax.jcr.RepositoryException
Version.getFrozenNode()
public boolean isSame(javax.jcr.Item otherItem) throws javax.jcr.RepositoryException
protected void checkIsWritable() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
checkIsWritable
in class ItemImpl
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
ItemStateValidator
protected boolean isWritable() throws javax.jcr.RepositoryException
isWritable
in class ItemImpl
javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationException
ItemImpl.isWritable()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.