Class VersionHistoryImpl
- java.lang.Object
- 
- org.apache.jackrabbit.jcr2spi.ItemImpl
- 
- org.apache.jackrabbit.jcr2spi.NodeImpl
- 
- org.apache.jackrabbit.jcr2spi.version.VersionHistoryImpl
 
 
 
- 
- All Implemented Interfaces:
- Item,- Node,- VersionHistory,- ItemStateLifeCycleListener
 
 public class VersionHistoryImpl extends NodeImpl implements VersionHistory VersionHistoryImpl...
- 
- 
Field Summary- 
Fields inherited from interface javax.jcr.NodeJCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
 
- 
 - 
Constructor SummaryConstructors Constructor Description VersionHistoryImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVersionLabel(String versionName, String label, boolean moveLabel)protected voidcheckIsWritable()Checks if the repository supports level 2 (writing) and the status of this item.NodeIteratorgetAllFrozenNodes()NodeIteratorgetAllLinearFrozenNodes()VersionIteratorgetAllLinearVersions()VersionIteratorgetAllVersions()VersiongetRootVersion()VersiongetVersion(String versionName)StringgetVersionableIdentifier()StringgetVersionableUUID()VersiongetVersionByLabel(String label)String[]getVersionLabels()String[]getVersionLabels(Version version)booleanhasVersionLabel(String label)booleanhasVersionLabel(Version version, String label)booleanisSame(Item otherItem)protected booleanisWritable()Always returns falsevoidremoveVersion(String versionName)voidremoveVersionLabel(String label)- 
Methods inherited from class org.apache.jackrabbit.jcr2spi.NodeImplaccept, 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
 - 
Methods inherited from class org.apache.jackrabbit.jcr2spi.ItemImplcheckStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, refresh, remove, save, statusChanged
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface javax.jcr.Itemaccept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, save
 - 
Methods inherited from interface javax.jcr.NodeaddMixin, 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
 
- 
 
- 
- 
- 
Constructor Detail- 
VersionHistoryImplpublic VersionHistoryImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners) throws VersionException, RepositoryException - Throws:
- VersionException
- RepositoryException
 
 
- 
 - 
Method Detail- 
getVersionableUUIDpublic String getVersionableUUID() throws RepositoryException - Specified by:
- getVersionableUUIDin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getVersionableUUID()
 
 - 
getRootVersionpublic Version getRootVersion() throws RepositoryException - Specified by:
- getRootVersionin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getRootVersion()
 
 - 
getAllVersionspublic VersionIterator getAllVersions() throws RepositoryException - Specified by:
- getAllVersionsin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getAllVersions()
 
 - 
getAllLinearVersionspublic VersionIterator getAllLinearVersions() throws RepositoryException - Specified by:
- getAllLinearVersionsin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getAllLinearVersions()
 
 - 
getAllFrozenNodespublic NodeIterator getAllFrozenNodes() throws RepositoryException - Specified by:
- getAllFrozenNodesin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getAllFrozenNodes()
 
 - 
getAllLinearFrozenNodespublic NodeIterator getAllLinearFrozenNodes() throws RepositoryException - Specified by:
- getAllLinearFrozenNodesin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getAllLinearFrozenNodes()
 
 - 
getVersionpublic Version getVersion(String versionName) throws VersionException, RepositoryException - Specified by:
- getVersionin interface- VersionHistory
- Throws:
- VersionException
- RepositoryException
- See Also:
- VersionHistory.getVersion(String)
 
 - 
getVersionByLabelpublic Version getVersionByLabel(String label) throws RepositoryException - Specified by:
- getVersionByLabelin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getVersionByLabel(String)
 
 - 
addVersionLabelpublic void addVersionLabel(String versionName, String label, boolean moveLabel) throws VersionException, RepositoryException - Specified by:
- addVersionLabelin interface- VersionHistory
- Throws:
- VersionException
- RepositoryException
- See Also:
- VersionHistory.addVersionLabel(String, String, boolean)
 
 - 
removeVersionLabelpublic void removeVersionLabel(String label) throws VersionException, RepositoryException - Specified by:
- removeVersionLabelin interface- VersionHistory
- Throws:
- VersionException
- RepositoryException
- See Also:
- VersionHistory.removeVersionLabel(String)
 
 - 
hasVersionLabelpublic boolean hasVersionLabel(String label) throws RepositoryException - Specified by:
- hasVersionLabelin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.hasVersionLabel(String)
 
 - 
hasVersionLabelpublic boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException - Specified by:
- hasVersionLabelin interface- VersionHistory
- Throws:
- VersionException
- RepositoryException
- See Also:
- VersionHistory.hasVersionLabel(Version, String)
 
 - 
getVersionLabelspublic String[] getVersionLabels() throws RepositoryException - Specified by:
- getVersionLabelsin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getVersionLabels()
 
 - 
getVersionLabelspublic String[] getVersionLabels(Version version) throws VersionException, RepositoryException - Specified by:
- getVersionLabelsin interface- VersionHistory
- Throws:
- VersionException
- RepositoryException
- See Also:
- VersionHistory.getVersionLabels(Version)
 
 - 
removeVersionpublic void removeVersion(String versionName) throws ReferentialIntegrityException, AccessDeniedException, UnsupportedRepositoryOperationException, VersionException, RepositoryException - Specified by:
- removeVersionin interface- VersionHistory
- Throws:
- ReferentialIntegrityException
- AccessDeniedException
- UnsupportedRepositoryOperationException
- VersionException
- RepositoryException
- See Also:
- VersionHistory.removeVersion(String)
 
 - 
getVersionableIdentifierpublic String getVersionableIdentifier() throws RepositoryException - Specified by:
- getVersionableIdentifierin interface- VersionHistory
- Throws:
- RepositoryException
- See Also:
- VersionHistory.getVersionableIdentifier()
 
 - 
isSamepublic boolean isSame(Item otherItem) throws RepositoryException - Specified by:
- isSamein interface- Item
- Overrides:
- isSamein class- ItemImpl
- Parameters:
- otherItem-
- Returns:
- Throws:
- RepositoryException
- See Also:
- Item.isSame(Item)
 
 - 
checkIsWritableprotected void checkIsWritable() throws UnsupportedRepositoryOperationException, ConstraintViolationException, RepositoryExceptionDescription copied from class:ItemImplChecks if the repository supports level 2 (writing) and the status of this item. Note, that this method does not perform any additional validation checks such as access restrictions, locking, checkin status or protection that affect the writing to nodes and properties.- Overrides:
- checkIsWritablein class- ItemImpl
- Throws:
- UnsupportedRepositoryOperationException
- ConstraintViolationException
- RepositoryException
- See Also:
- ItemStateValidator
 
 - 
isWritableprotected boolean isWritable() throws RepositoryExceptionAlways returns false- Overrides:
- isWritablein class- ItemImpl
- Throws:
- RepositoryException
- UnsupportedRepositoryOperationException
- See Also:
- ItemImpl.isWritable()
 
 
- 
 
-