|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the internal version history.
Method Summary | |
int |
getNumVersions()
Returns the number of versions in this version history. |
InternalVersion |
getRootVersion()
Equivalalent to VersionHistory.getRootVersion() . |
InternalVersion |
getVersion(QName versionName)
Equivalalent to VersionHistory.getVersion(java.lang.String) . |
InternalVersion |
getVersion(String uuid)
Returns the version with the given uuid or null if the
respective version does not exist. |
String |
getVersionableUUID()
Returns the UUID of the versionable node that this history belongs to. |
InternalVersion |
getVersionByLabel(QName label)
Equivalalent to VersionHistory.getVersionByLabel(java.lang.String)
but returns null if the version does not exists. |
QName[] |
getVersionLabels()
Returns a string iterator over all version labels that exist in this version history |
String |
getVersionLabelsUUID()
Returns the UUID of the version labels node |
Iterator |
getVersions()
Returns an iterator over all versions (not ordered yet), including the root version. |
boolean |
hasVersion(QName versionName)
Checks if the version with the given name exists in this version history. |
boolean |
hasVersion(String uuid)
Checks if the version for the given uuid exists in this history. |
Methods inherited from interface org.apache.jackrabbit.core.version.InternalVersionItem |
getId, getParent |
Method Detail |
public InternalVersion getRootVersion()
VersionHistory.getRootVersion()
.
VersionHistory.getRootVersion()
public InternalVersion getVersion(QName versionName) throws VersionException
VersionHistory.getVersion(java.lang.String)
.
VersionException
VersionHistory.getVersion(java.lang.String)
public boolean hasVersion(QName versionName)
versionName
- the name of the version
true
if the version exists;
false
otherwise.public boolean hasVersion(String uuid)
uuid
- the uuid of the version
true
if the version exists;
false
otherwise.public InternalVersion getVersion(String uuid)
null
if the
respective version does not exist.
uuid
- the uuid of the version
null
public InternalVersion getVersionByLabel(QName label)
VersionHistory.getVersionByLabel(java.lang.String)
but returns null
if the version does not exists.
VersionHistory.getVersionByLabel(java.lang.String)
public Iterator getVersions()
InternalVersion
objects.public int getNumVersions()
public String getVersionableUUID()
public QName[] getVersionLabels()
public String getVersionLabelsUUID()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |