org.apache.jackrabbit.jcr2spi.version
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
...
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, 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, 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 |
VersionHistoryImpl
public VersionHistoryImpl(ItemManager itemMgr,
SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners)
throws VersionException,
RepositoryException
- Throws:
VersionException
RepositoryException
getVersionableUUID
public String getVersionableUUID()
throws RepositoryException
- Specified by:
getVersionableUUID
in interface VersionHistory
- Returns:
-
- Throws:
RepositoryException
- See Also:
VersionHistory.getVersionableUUID()
getRootVersion
public Version getRootVersion()
throws RepositoryException
- Specified by:
getRootVersion
in interface VersionHistory
- Returns:
-
- Throws:
RepositoryException
- See Also:
VersionHistory.getRootVersion()
getAllVersions
public VersionIterator getAllVersions()
throws RepositoryException
- Specified by:
getAllVersions
in interface VersionHistory
- Returns:
-
- Throws:
RepositoryException
- See Also:
VersionHistory.getAllVersions()
getVersion
public Version getVersion(String versionName)
throws VersionException,
RepositoryException
- Specified by:
getVersion
in interface VersionHistory
- Parameters:
versionName
-
- Returns:
-
- Throws:
VersionException
RepositoryException
- See Also:
VersionHistory.getVersion(String)
getVersionByLabel
public Version getVersionByLabel(String label)
throws RepositoryException
- Specified by:
getVersionByLabel
in interface VersionHistory
- Parameters:
label
-
- Returns:
-
- Throws:
RepositoryException
- See Also:
VersionHistory.getVersionByLabel(String)
addVersionLabel
public void addVersionLabel(String versionName,
String label,
boolean moveLabel)
throws VersionException,
RepositoryException
- Specified by:
addVersionLabel
in interface VersionHistory
- Parameters:
versionName
- label
- moveLabel
-
- Throws:
VersionException
RepositoryException
- See Also:
VersionHistory.addVersionLabel(String, String, boolean)
removeVersionLabel
public void removeVersionLabel(String label)
throws VersionException,
RepositoryException
- Specified by:
removeVersionLabel
in interface VersionHistory
- Parameters:
label
-
- Throws:
VersionException
RepositoryException
- See Also:
VersionHistory.removeVersionLabel(String)
hasVersionLabel
public boolean hasVersionLabel(String label)
throws RepositoryException
- Specified by:
hasVersionLabel
in interface VersionHistory
- Parameters:
label
-
- Returns:
-
- Throws:
RepositoryException
- See Also:
VersionHistory.hasVersionLabel(String)
hasVersionLabel
public boolean hasVersionLabel(Version version,
String label)
throws VersionException,
RepositoryException
- Specified by:
hasVersionLabel
in interface VersionHistory
- Parameters:
version
- label
-
- Returns:
-
- Throws:
VersionException
RepositoryException
- See Also:
VersionHistory.hasVersionLabel(Version, String)
getVersionLabels
public String[] getVersionLabels()
throws RepositoryException
- Specified by:
getVersionLabels
in interface VersionHistory
- Returns:
-
- Throws:
RepositoryException
- See Also:
VersionHistory.getVersionLabels()
getVersionLabels
public String[] getVersionLabels(Version version)
throws VersionException,
RepositoryException
- Specified by:
getVersionLabels
in interface VersionHistory
- Parameters:
version
-
- Returns:
-
- Throws:
VersionException
RepositoryException
- See Also:
VersionHistory.getVersionLabels(Version)
removeVersion
public void removeVersion(String versionName)
throws ReferentialIntegrityException,
AccessDeniedException,
UnsupportedRepositoryOperationException,
VersionException,
RepositoryException
- Specified by:
removeVersion
in interface VersionHistory
- Parameters:
versionName
-
- Throws:
ReferentialIntegrityException
AccessDeniedException
UnsupportedRepositoryOperationException
VersionException
RepositoryException
- See Also:
VersionHistory.removeVersion(String)
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
- Description copied from class:
ItemImpl
- Checks 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:
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-2008 The Apache Software Foundation. All Rights Reserved.