Search in sources :

Example 1 with EOLService

use of org.eol.globi.taxon.EOLService in project eol-globi-data by jhpoelen.

the class EOLTaxonImageService method lookupImage.

private TaxonImage lookupImage(String externalId) throws PropertyEnricherException {
    TaxonImage image;
    Map<String, String> enrich = new EOLService().enrich(TaxonUtil.taxonToMap(new TaxonImpl(null, externalId)));
    Taxon taxon = TaxonUtil.mapToTaxon(enrich);
    image = taxonToTaxonImage(taxon);
    return image;
}
Also used : TaxonImage(org.eol.globi.domain.TaxonImage) TaxonImpl(org.eol.globi.domain.TaxonImpl) Taxon(org.eol.globi.domain.Taxon) EOLService(org.eol.globi.taxon.EOLService)

Aggregations

Taxon (org.eol.globi.domain.Taxon)1 TaxonImage (org.eol.globi.domain.TaxonImage)1 TaxonImpl (org.eol.globi.domain.TaxonImpl)1 EOLService (org.eol.globi.taxon.EOLService)1