public class VersionHistoryImpl extends NodeImpl implements javax.jcr.version.VersionHistory
VersionHistory
interface.id, itemMgr, sessionContext, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL
Constructor and Description |
---|
VersionHistoryImpl(ItemManager itemMgr,
SessionContext sessionContext,
AbstractNodeData data)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addVersionLabel(String versionName,
String label,
boolean move) |
javax.jcr.NodeIterator |
getAllFrozenNodes() |
javax.jcr.NodeIterator |
getAllLinearFrozenNodes() |
javax.jcr.version.VersionIterator |
getAllLinearVersions() |
javax.jcr.version.VersionIterator |
getAllVersions() |
protected InternalVersionHistory |
getInternalVersionHistory()
Returns the internal version history.
|
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) |
javax.jcr.NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
Always throws a
ConstraintViolationException since this node
is protected. |
void |
removeVersion(String versionName) |
void |
removeVersionHistory()
Removes this VersionHistory from storage.
|
void |
removeVersionLabel(String label) |
String |
toString()
Return a string representation of this version history node
for diagnostic purposes.
|
void |
update(String srcWorkspaceName)
Always throws a
ConstraintViolationException since this node
is protected. |
accept, addMixin, addMixin, addNode, addNode, addNode, addNodeWithUuid, addNodeWithUuid, assignLifecyclePolicy, canAddMixin, cancelMerge, checkin, checkin, checkLock, checkout, checkSetProperty, clone, createChildNode, createChildProperty, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getApplicableChildNodeDefinition, getApplicablePropertyDefinition, getBaseVersion, getCorrespondingNodePath, getDefinition, getEffectiveNodeType, getIdentifier, getIndex, getLock, getMixinNodeTypes, getMixinTypeNames, getName, getNode, getNode, getNode, getNodeId, getNodes, getNodes, getNodes, getOrCreateProperty, getOrCreateProperty, getOrCreateTransientItemState, getParent, getParentId, getPrimaryItem, getPrimaryNodeType, getPrimaryNodeTypeName, getPrimaryPath, getProperties, getProperties, getProperties, getProperty, getProperty, getQName, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNode, hasNode, hasNodes, hasPendingChanges, hasProperties, hasProperty, hasProperty, holdsLock, internalSetProperty, internalSetProperty, internalSetProperty, isAccessControllable, isCheckedOut, isLocked, isNode, isNodeType, isNodeType, lock, makePersistent, onRedefine, onRemove, orderBefore, orderBefore, removeChildNode, removeChildProperty, removeMixin, removeMixin, removeShare, removeSharedSet, rename, renameChildNode, renameChildNode, replaceChildNode, resolveRelativeNodePath, resolveRelativePropertyPath, restore, restore, restore, restoreByLabel, restoreTransient, setMixins, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock
getAncestor, getDepth, getId, getPath, getQName, getSession, getType, getValueFactory, getValues, isModified, isNew, isTransactionalNew, isTransient, itemSanityCheck, perform, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, 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
public VersionHistoryImpl(ItemManager itemMgr, SessionContext sessionContext, AbstractNodeData data)
itemMgr
- item managersessionContext
- component context of the associated sessiondata
- node dataprotected InternalVersionHistory getInternalVersionHistory() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if the internal version history is not availablepublic javax.jcr.version.Version getRootVersion() throws javax.jcr.RepositoryException
getRootVersion
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getRootVersion()
public javax.jcr.version.VersionIterator getAllVersions() throws javax.jcr.RepositoryException
getAllVersions
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getAllVersions()
public javax.jcr.NodeIterator getAllFrozenNodes() throws javax.jcr.RepositoryException
getAllFrozenNodes
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getAllFrozenNodes()
public javax.jcr.version.VersionIterator getAllLinearVersions() throws javax.jcr.RepositoryException
getAllLinearVersions
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getAllLinearVersions()
public javax.jcr.NodeIterator getAllLinearFrozenNodes() throws javax.jcr.RepositoryException
getAllLinearFrozenNodes
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getAllLinearFrozenNodes()
public javax.jcr.version.Version getVersion(String versionName) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
getVersion
in interface javax.jcr.version.VersionHistory
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.getVersion(String)
public javax.jcr.version.Version getVersionByLabel(String label) throws javax.jcr.RepositoryException
getVersionByLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getVersionByLabel(String)
public void addVersionLabel(String versionName, String label, boolean move) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
addVersionLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.addVersionLabel(String, String, boolean)
public void removeVersionLabel(String label) throws javax.jcr.RepositoryException
removeVersionLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.removeVersionLabel(String)
public String[] getVersionLabels() throws javax.jcr.RepositoryException
getVersionLabels
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getVersionLabels()
public String[] getVersionLabels(javax.jcr.version.Version version) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
getVersionLabels
in interface javax.jcr.version.VersionHistory
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.getVersionLabels(javax.jcr.version.Version)
public boolean hasVersionLabel(String label) throws javax.jcr.RepositoryException
hasVersionLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.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.VersionHistory
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.hasVersionLabel(javax.jcr.version.Version, String)
public void removeVersion(String versionName) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
removeVersion
in interface javax.jcr.version.VersionHistory
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.removeVersion(String)
public void removeVersionHistory() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occurs.public boolean isSame(javax.jcr.Item otherItem)
ItemImpl
public String getVersionableUUID() throws javax.jcr.RepositoryException
getVersionableUUID
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
public String getVersionableIdentifier() throws javax.jcr.RepositoryException
getVersionableIdentifier
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
public void update(String srcWorkspaceName) throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException
since this node
is protected.public javax.jcr.NodeIterator merge(String srcWorkspace, boolean bestEffort) throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException
since this node
is protected.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.