|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.ItemImpl
org.apache.jackrabbit.jcr2spi.NodeImpl
org.apache.jackrabbit.jcr2spi.version.VersionHistoryImpl
public class VersionHistoryImpl
VersionHistoryImpl...
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.jcr2spi.ItemImpl |
|---|
listeners, session |
| Constructor Summary | |
|---|---|
VersionHistoryImpl(SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners)
|
|
| Method Summary | |
|---|---|
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.version.VersionIterator |
getAllVersions()
|
javax.jcr.version.Version |
getRootVersion()
|
javax.jcr.version.Version |
getVersion(String versionName)
|
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)
|
| 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, getItemManager, 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 |
| Constructor Detail |
|---|
public VersionHistoryImpl(SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
javax.jcr.version.VersionException
javax.jcr.RepositoryException| Method Detail |
|---|
public 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.Version getVersion(String versionName)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
getVersion in interface javax.jcr.version.VersionHistoryversionName -
javax.jcr.version.VersionException
javax.jcr.RepositoryExceptionVersionHistory.getVersion(String)
public javax.jcr.version.Version getVersionByLabel(String label)
throws javax.jcr.RepositoryException
getVersionByLabel in interface javax.jcr.version.VersionHistorylabel -
javax.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.VersionHistoryversionName - label - moveLabel -
javax.jcr.version.VersionException
javax.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.VersionHistorylabel -
javax.jcr.version.VersionException
javax.jcr.RepositoryExceptionVersionHistory.removeVersionLabel(String)
public boolean hasVersionLabel(String label)
throws javax.jcr.RepositoryException
hasVersionLabel in interface javax.jcr.version.VersionHistorylabel -
javax.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.VersionHistoryversion - label -
javax.jcr.version.VersionException
javax.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.VersionHistoryversion -
javax.jcr.version.VersionException
javax.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.VersionHistoryversionName -
javax.jcr.ReferentialIntegrityException
javax.jcr.AccessDeniedException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.RepositoryExceptionVersionHistory.removeVersion(String)
public boolean isSame(javax.jcr.Item otherItem)
throws javax.jcr.RepositoryException
isSame in interface javax.jcr.ItemisSame in class ItemImplotherItem -
javax.jcr.RepositoryExceptionItem.isSame(Item)
protected void checkIsWritable()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
ItemImpl
checkIsWritable in class ItemImpljavax.jcr.UnsupportedRepositoryOperationException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryExceptionItemStateValidator
protected boolean isWritable()
throws javax.jcr.RepositoryException
isWritable in class ItemImpljavax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationExceptionItemImpl.isWritable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||