jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conoly, Brett" <Brett.Con...@digitalinsight.com>
Subject Version.getPredecessors()?
Date Tue, 08 Apr 2008 14:46:01 GMT
I'm currently trying to retrieve a list of all the previous versions of
a node.
I'm actually using: 

Version version = node.getBaseVersion();
Version[] versionArray = version.getPredecessors();
for (int i = 0; i < versionArray.length; i++)

Going through the debugger this doesn't seem to be throwing any errors
but for some reason this ALWAYS seems to return 1 version no matter how
many there actually are.

Am I doing something wrong? I'm also assuming that the BaseVersion is
the most recent version, is this right? 

View raw message