|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.ItemImpl
org.apache.jackrabbit.core.NodeImpl
org.apache.jackrabbit.core.version.VersionHistoryImpl
public class VersionHistoryImpl
Base implementation of the VersionHistory interface.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.core.NodeImpl |
|---|
CREATED |
| Fields inherited from class org.apache.jackrabbit.core.ItemImpl |
|---|
id, itemMgr, rep, session, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL |
| Constructor Summary | |
|---|---|
VersionHistoryImpl(ItemManager itemMgr,
SessionImpl session,
AbstractNodeData data)
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
void |
addVersionLabel(java.lang.String versionName,
java.lang.String label,
boolean move)
|
javax.jcr.version.VersionIterator |
getAllVersions()
|
protected InternalVersionHistory |
getInternalVersionHistory()
Returns the internal version history. |
javax.jcr.version.Version |
getRootVersion()
|
javax.jcr.version.Version |
getVersion(java.lang.String versionName)
|
java.lang.String |
getVersionableUUID()
|
javax.jcr.version.Version |
getVersionByLabel(java.lang.String label)
|
java.lang.String[] |
getVersionLabels()
|
java.lang.String[] |
getVersionLabels(javax.jcr.version.Version version)
|
boolean |
hasVersionLabel(java.lang.String label)
|
boolean |
hasVersionLabel(javax.jcr.version.Version version,
java.lang.String label)
|
boolean |
isSame(javax.jcr.Item otherItem)
|
javax.jcr.NodeIterator |
merge(java.lang.String srcWorkspace,
boolean bestEffort)
Always throws a ConstraintViolationException since this node
is protected. |
void |
removeVersion(java.lang.String versionName)
|
void |
removeVersionLabel(java.lang.String label)
|
java.lang.String |
toString()
Return a string representation of this version history node for diagnostic purposes. |
void |
update(java.lang.String srcWorkspaceName)
Always throws a ConstraintViolationException since this node
is protected. |
| Methods inherited from class org.apache.jackrabbit.core.ItemImpl |
|---|
getAncestor, getDepth, getId, getPath, getSession, internalRemove, isModified, isNew, isTransactionalNew, isTransient, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, orderBefore, removeMixin, restore, restore, restore, restoreByLabel, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock |
| Methods inherited from interface javax.jcr.Item |
|---|
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, save |
| Constructor Detail |
|---|
public VersionHistoryImpl(ItemManager itemMgr,
SessionImpl session,
AbstractNodeData data)
itemMgr - item managersession - sessionid - node idstate - node statedefinition - node definitionlisteners - life cycle listeners| Method Detail |
|---|
protected InternalVersionHistory getInternalVersionHistory()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if the internal version history is not available
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.Version getVersion(java.lang.String versionName)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
getVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryExceptionVersionHistory.getVersion(String)
public javax.jcr.version.Version getVersionByLabel(java.lang.String label)
throws javax.jcr.RepositoryException
getVersionByLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getVersionByLabel(String)
public void addVersionLabel(java.lang.String versionName,
java.lang.String label,
boolean move)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
addVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)
public void removeVersionLabel(java.lang.String label)
throws javax.jcr.RepositoryException
removeVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.removeVersionLabel(String)
public java.lang.String[] getVersionLabels()
throws javax.jcr.RepositoryException
getVersionLabels in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryExceptionVersionHistory.getVersionLabels()
public java.lang.String[] getVersionLabels(javax.jcr.version.Version version)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
getVersionLabels in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryExceptionVersionHistory.getVersionLabels(javax.jcr.version.Version)
public boolean hasVersionLabel(java.lang.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,
java.lang.String label)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
hasVersionLabel in interface javax.jcr.version.VersionHistoryjavax.jcr.version.VersionException
javax.jcr.RepositoryExceptionVersionHistory.hasVersionLabel(javax.jcr.version.Version, String)
public void removeVersion(java.lang.String versionName)
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.version.VersionException,
javax.jcr.RepositoryException
removeVersion in interface javax.jcr.version.VersionHistoryjavax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.RepositoryExceptionVersionHistory.removeVersion(String)public boolean isSame(javax.jcr.Item otherItem)
ItemImpl
isSame in interface javax.jcr.ItemisSame in class ItemImplItem.isSame(javax.jcr.Item)
public java.lang.String getVersionableUUID()
throws javax.jcr.RepositoryException
getVersionableUUID in interface javax.jcr.version.VersionHistoryjavax.jcr.RepositoryException
public void update(java.lang.String srcWorkspaceName)
throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException since this node
is protected.
update in interface javax.jcr.Nodeupdate in class NodeImpljavax.jcr.nodetype.ConstraintViolationException
public javax.jcr.NodeIterator merge(java.lang.String srcWorkspace,
boolean bestEffort)
throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException since this node
is protected.
merge in interface javax.jcr.Nodemerge in class NodeImpljavax.jcr.nodetype.ConstraintViolationExceptionpublic java.lang.String toString()
toString in class NodeImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||