|
||||||||||
| 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(String versionName,
String label,
boolean move)
|
VersionIterator |
getAllVersions()
|
protected InternalVersionHistory |
getInternalVersionHistory()
Returns the internal version history. |
Version |
getRootVersion()
|
Version |
getVersion(String versionName)
|
String |
getVersionableUUID()
|
Version |
getVersionByLabel(String label)
|
String[] |
getVersionLabels()
|
String[] |
getVersionLabels(Version version)
|
boolean |
hasVersionLabel(String label)
|
boolean |
hasVersionLabel(Version version,
String label)
|
boolean |
isSame(Item otherItem)
|
NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
Always throws a ConstraintViolationException since this node
is protected. |
void |
removeVersion(String versionName)
|
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. |
| 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 RepositoryException
RepositoryException - if the internal version history is not available
public Version getRootVersion()
throws RepositoryException
getRootVersion in interface VersionHistoryRepositoryExceptionVersionHistory.getRootVersion()
public VersionIterator getAllVersions()
throws RepositoryException
getAllVersions in interface VersionHistoryRepositoryExceptionVersionHistory.getAllVersions()
public Version getVersion(String versionName)
throws VersionException,
RepositoryException
getVersion in interface VersionHistoryVersionException
RepositoryExceptionVersionHistory.getVersion(String)
public Version getVersionByLabel(String label)
throws RepositoryException
getVersionByLabel in interface VersionHistoryRepositoryExceptionVersionHistory.getVersionByLabel(String)
public void addVersionLabel(String versionName,
String label,
boolean move)
throws VersionException,
RepositoryException
addVersionLabel in interface VersionHistoryVersionException
RepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)
public void removeVersionLabel(String label)
throws RepositoryException
removeVersionLabel in interface VersionHistoryRepositoryExceptionVersionHistory.removeVersionLabel(String)
public String[] getVersionLabels()
throws RepositoryException
getVersionLabels in interface VersionHistoryRepositoryExceptionVersionHistory.getVersionLabels()
public String[] getVersionLabels(Version version)
throws VersionException,
RepositoryException
getVersionLabels in interface VersionHistoryVersionException
RepositoryExceptionVersionHistory.getVersionLabels(javax.jcr.version.Version)
public boolean hasVersionLabel(String label)
throws RepositoryException
hasVersionLabel in interface VersionHistoryRepositoryExceptionVersionHistory.hasVersionLabel(String)
public boolean hasVersionLabel(Version version,
String label)
throws VersionException,
RepositoryException
hasVersionLabel in interface VersionHistoryVersionException
RepositoryExceptionVersionHistory.hasVersionLabel(javax.jcr.version.Version, String)
public void removeVersion(String versionName)
throws UnsupportedRepositoryOperationException,
VersionException,
RepositoryException
removeVersion in interface VersionHistoryUnsupportedRepositoryOperationException
VersionException
RepositoryExceptionVersionHistory.removeVersion(String)public boolean isSame(Item otherItem)
ItemImpl
isSame in interface ItemisSame in class ItemImplItem.isSame(javax.jcr.Item)
public String getVersionableUUID()
throws RepositoryException
getVersionableUUID in interface VersionHistoryRepositoryException
public void update(String srcWorkspaceName)
throws ConstraintViolationException
ConstraintViolationException since this node
is protected.
update in interface Nodeupdate in class NodeImplConstraintViolationException
public NodeIterator merge(String srcWorkspace,
boolean bestEffort)
throws ConstraintViolationException
ConstraintViolationException since this node
is protected.
merge in interface Nodemerge in class NodeImplConstraintViolationExceptionpublic String toString()
toString in class NodeImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||