org.apache.jackrabbit.jcr2spi.version
Class VersionImpl
java.lang.Object
org.apache.jackrabbit.jcr2spi.ItemImpl
org.apache.jackrabbit.jcr2spi.NodeImpl
org.apache.jackrabbit.jcr2spi.version.VersionImpl
- All Implemented Interfaces:
- Item, Node, Version, ItemStateLifeCycleListener
public class VersionImpl
- extends NodeImpl
- implements Version
VersionImpl
...
Methods inherited from class org.apache.jackrabbit.jcr2spi.NodeImpl |
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getName, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperty, getProperty, getReferences, getUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNode, isNodeType, lock, lock, merge, orderBefore, removeMixin, restore, restore, restore, restoreByLabel, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update |
Methods inherited from class org.apache.jackrabbit.jcr2spi.ItemImpl |
checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, refresh, remove, save, statusChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jcr.Node |
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperty, getReferences, getUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, restore, restore, restore, restoreByLabel, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update |
Methods inherited from interface javax.jcr.Item |
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, save |
VersionImpl
public VersionImpl(SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners)
getContainingHistory
public VersionHistory getContainingHistory()
throws RepositoryException
- Specified by:
getContainingHistory
in interface Version
- Returns:
-
- Throws:
RepositoryException
- See Also:
Version.getContainingHistory()
getCreated
public Calendar getCreated()
throws RepositoryException
- Specified by:
getCreated
in interface Version
- Returns:
-
- Throws:
RepositoryException
- See Also:
Version.getCreated()
getSuccessors
public Version[] getSuccessors()
throws RepositoryException
- Specified by:
getSuccessors
in interface Version
- Returns:
-
- Throws:
RepositoryException
- See Also:
Version.getSuccessors()
getPredecessors
public Version[] getPredecessors()
throws RepositoryException
- Specified by:
getPredecessors
in interface Version
- Returns:
-
- Throws:
RepositoryException
- See Also:
Version.getPredecessors()
isSame
public boolean isSame(Item otherItem)
throws RepositoryException
- Specified by:
isSame
in interface Item
- Overrides:
isSame
in class ItemImpl
- Parameters:
otherItem
-
- Returns:
-
- Throws:
RepositoryException
- See Also:
Item.isSame(Item)
checkIsWritable
protected void checkIsWritable()
throws UnsupportedRepositoryOperationException,
ConstraintViolationException,
RepositoryException
- Always throws ConstraintViolationException since the version storage is
protected.
- Overrides:
checkIsWritable
in class ItemImpl
- Throws:
UnsupportedRepositoryOperationException
ConstraintViolationException
RepositoryException
- See Also:
ItemStateValidator
isWritable
protected boolean isWritable()
throws RepositoryException
- Always returns false
- Overrides:
isWritable
in class ItemImpl
- Throws:
RepositoryException
UnsupportedRepositoryOperationException
- See Also:
ItemImpl.isWritable()
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.