* See CMIS 1.0 section 2.2.7.6 getAllVersions
*/
public Iterator<JcrVersion> getVersions() {
try {
VersionHistory versionHistory = getVersionHistory(getNode());
final VersionIterator versions = versionHistory.getAllLinearVersions();
return new Iterator<JcrVersion>() {
public boolean hasNext() {
return versions.hasNext();
}
public JcrVersion next() {
return new JcrVersion(getNode(), versions.nextVersion(), typeManager, pathManager, typeHandlerManager);
}
public void remove() {
throw new UnsupportedOperationException();
}