From: Andreas Kohlbecker Date: Fri, 5 Feb 2010 08:56:17 +0000 (+0000) Subject: improving loadRankSpecificRootNodes X-Git-Tag: 3.0.3~1322 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/cdmlib.git/commitdiff_plain/bc0e68fc9f8307f74335e1b6d7c499210622084d improving loadRankSpecificRootNodes --- diff --git a/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonTreeServiceImpl.java b/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonTreeServiceImpl.java index 7080a61659..f0491a9d1a 100644 --- a/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonTreeServiceImpl.java +++ b/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonTreeServiceImpl.java @@ -87,11 +87,10 @@ public class TaxonTreeServiceImpl extends IdentifiableServiceBase loadRankSpecificRootNodes(TaxonomicTree taxonomicTree, Rank rank, List propertyPaths){ - TaxonomicTree tree = dao.load(taxonomicTree.getUuid()); - List rootNodes = tree.getRankSpecificRootNodes(rank); - //sort nodes by TaxonName + List rootNodes = dao.loadRankSpecificRootNodes(taxonomicTree, rank, propertyPaths); + //sort nodes by TaxonName Collections.sort(rootNodes, taxonNodeComparator); // initialize all nodes