use of org.openforis.idm.model.TaxonOccurrence in project collect by openforis.
the class SpeciesService method findByFamilyCode.
@Secured("ROLE_ENTRY")
public List<TaxonOccurrenceProxy> findByFamilyCode(String taxonomyName, String searchString, int maxResults, TaxonSearchParameters parameters) {
CollectTaxonomy taxonomy = loadTaxonomyByActiveSurvey(taxonomyName);
List<TaxonOccurrence> list = speciesManager.findByFamilyCode(taxonomy, searchString, maxResults, parameters);
return Proxies.fromList(list, TaxonOccurrenceProxy.class);
}
use of org.openforis.idm.model.TaxonOccurrence in project collect by openforis.
the class SpeciesService method findByCode.
@Secured("ROLE_ENTRY")
public List<TaxonOccurrenceProxy> findByCode(String taxonomyName, String searchString, int maxResults, TaxonSearchParameters parameters) {
CollectTaxonomy taxonomy = loadTaxonomyByActiveSurvey(taxonomyName);
List<TaxonOccurrence> list = speciesManager.findByCode(taxonomy, searchString, maxResults, parameters);
return Proxies.fromList(list, TaxonOccurrenceProxy.class);
}
use of org.openforis.idm.model.TaxonOccurrence in project collect by openforis.
the class TaxonTree method includeAncestorTaxons.
private void includeAncestorTaxons(Node node, TaxonOccurrence occurrence) {
Node parent = node.getParent();
while (parent != null) {
occurrence.addAncestorTaxon(new TaxonOccurrence(parent.getTaxon()));
parent = parent.getParent();
}
}
Aggregations