public class VersionHistoryImpl extends NodeImpl implements javax.jcr.version.VersionHistory
VersionHistoryImpl...| Constructor and Description |
|---|
VersionHistoryImpl(SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVersionLabel(String versionName,
String label,
boolean moveLabel) |
protected void |
checkIsWritable()
Checks if the repository supports level 2 (writing) and the status of
this item.
|
javax.jcr.NodeIterator |
getAllFrozenNodes() |
javax.jcr.NodeIterator |
getAllLinearFrozenNodes() |
javax.jcr.version.VersionIterator |
getAllLinearVersions() |
javax.jcr.version.VersionIterator |
getAllVersions() |
javax.jcr.version.Version |
getRootVersion() |
javax.jcr.version.Version |
getVersion(String versionName) |
String |
getVersionableIdentifier() |
String |
getVersionableUUID() |
javax.jcr.version.Version |
getVersionByLabel(String label) |
String[] |
getVersionLabels() |
String[] |
getVersionLabels(javax.jcr.version.Version version) |
boolean |
hasVersionLabel(String label) |
boolean |
hasVersionLabel(javax.jcr.version.Version version,
String label) |
boolean |
isSame(javax.jcr.Item otherItem) |
protected boolean |
isWritable()
Always returns false
|
void |
removeVersion(String versionName) |
void |
removeVersionLabel(String label) |
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, updatecheckStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, refresh, remove, save, statusChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMixin, 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, updatepublic VersionHistoryImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
javax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionpublic String getVersionableUUID() throws javax.jcr.RepositoryException
getVersionableUUID in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getVersionableUUID()public javax.jcr.version.Version getRootVersion()
throws javax.jcr.RepositoryException
getRootVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getRootVersion()public javax.jcr.version.VersionIterator getAllVersions()
throws javax.jcr.RepositoryException
getAllVersions in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getAllVersions()public javax.jcr.version.VersionIterator getAllLinearVersions()
throws javax.jcr.RepositoryException
getAllLinearVersions in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getAllLinearVersions()public javax.jcr.NodeIterator getAllFrozenNodes()
throws javax.jcr.RepositoryException
getAllFrozenNodes in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getAllFrozenNodes()public javax.jcr.NodeIterator getAllLinearFrozenNodes()
throws javax.jcr.RepositoryException
getAllLinearFrozenNodes in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getAllLinearFrozenNodes()public javax.jcr.version.Version getVersion(String versionName) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
getVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.getVersion(String)public javax.jcr.version.Version getVersionByLabel(String label) throws javax.jcr.RepositoryException
getVersionByLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getVersionByLabel(String)public void addVersionLabel(String versionName, String label, boolean moveLabel) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
addVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)public void removeVersionLabel(String label) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
removeVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.removeVersionLabel(String)public boolean hasVersionLabel(String label) throws javax.jcr.RepositoryException
hasVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.hasVersionLabel(String)public boolean hasVersionLabel(javax.jcr.version.Version version,
String label)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
hasVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.hasVersionLabel(Version, String)public String[] getVersionLabels() throws javax.jcr.RepositoryException
getVersionLabels in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getVersionLabels()public String[] getVersionLabels(javax.jcr.version.Version version) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
getVersionLabels in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.getVersionLabels(Version)public void removeVersion(String versionName) throws javax.jcr.ReferentialIntegrityException, javax.jcr.AccessDeniedException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
removeVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.ReferentialIntegrityExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionVersionHistory.removeVersion(String)public String getVersionableIdentifier() throws javax.jcr.RepositoryException
getVersionableIdentifier in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getVersionableIdentifier()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
ItemImplcheckIsWritable in class ItemImpljavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionItemStateValidatorprotected boolean isWritable()
throws javax.jcr.RepositoryException
isWritable in class ItemImpljavax.jcr.RepositoryExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionItemImpl.isWritable()Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.