Revision 00521143
Added by Niels Hoffmann over 14 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonServiceImpl.java | ||
---|---|---|
433 | 433 |
long numberTaxaResults = 0L; |
434 | 434 |
|
435 | 435 |
Class<? extends TaxonBase> clazz = null; |
436 |
List<String> propertyPath = new ArrayList<String>(); |
|
436 | 437 |
if ((configurator.isDoTaxa() && configurator.isDoSynonyms())) { |
437 | 438 |
clazz = TaxonBase.class; |
439 |
propertyPath.addAll(configurator.getTaxonPropertyPath()); |
|
440 |
propertyPath.addAll(configurator.getSynonymPropertyPath()); |
|
438 | 441 |
} else if(configurator.isDoTaxa()) { |
439 | 442 |
clazz = Taxon.class; |
443 |
propertyPath = configurator.getTaxonPropertyPath(); |
|
440 | 444 |
} else if (configurator.isDoSynonyms()) { |
441 | 445 |
clazz = Synonym.class; |
446 |
propertyPath = configurator.getSynonymPropertyPath(); |
|
442 | 447 |
} |
443 | 448 |
|
444 | 449 |
if(clazz != null){ |
... | ... | |
450 | 455 |
taxa = dao.getTaxaByName(clazz, |
451 | 456 |
configurator.getSearchString(), configurator.getTaxonomicTree(), configurator.getMatchMode(), |
452 | 457 |
configurator.getNamedAreas(), configurator.getPageSize(), |
453 |
configurator.getPageNumber(), configurator.getTaxonPropertyPath());
|
|
458 |
configurator.getPageNumber(), propertyPath);
|
|
454 | 459 |
} |
455 | 460 |
} |
456 | 461 |
|
Also available in: Unified diff