public class SpeciesLookupRestService extends Object implements SpeciesLookupService
| Modifier and Type | Field and Description |
|---|---|
protected String |
bieUriPrefix |
protected Boolean |
enabled |
| Constructor and Description |
|---|
SpeciesLookupRestService() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAcceptedNameForGuid(String guid)
Lookup the accepted name for a GUID
|
String |
getGuidForName(String name)
Lookup a GUID for a given scientific name (returns best match/accepted concept)
|
String[] |
getHeaderDetails(String field,
boolean includeCounts,
boolean includeSynonyms)
Returns the header fields to use based on the species lookup service.
|
List<String> |
getNamesForGuids(List<String> guids)
Lookup service for list of guids to names
|
List<String[]> |
getSpeciesDetails(List<String> guids,
List<Long> counts,
boolean includeCounts,
boolean includeSynonyms)
Retrieves an list of arrays that contains the information that need to be included in the CSV details.
|
void |
setBieUriPrefix(String bieUriPrefix) |
void |
setEnabled(Boolean enabled) |
void |
setMessageSource(org.springframework.context.support.AbstractMessageSource messageSource) |
void |
setRestTemplate(org.springframework.web.client.RestOperations restTemplate) |
public String getGuidForName(String name)
SpeciesLookupServicegetGuidForName in interface SpeciesLookupServicename - SpeciesLookupService.getGuidForName(String)public String getAcceptedNameForGuid(String guid)
getAcceptedNameForGuid in interface SpeciesLookupServicepublic List<String> getNamesForGuids(List<String> guids)
SpeciesLookupServicegetNamesForGuids in interface SpeciesLookupServiceguids - public List<String[]> getSpeciesDetails(List<String> guids, List<Long> counts, boolean includeCounts, boolean includeSynonyms)
SpeciesLookupServicegetSpeciesDetails in interface SpeciesLookupServiceguids - The guild/lsids for the species to get the details aboutcounts - The corresponding countsincludeCounts - whether or not to included the count in the details rowincludeSynonyms - whether or not whether or not synonyms should be included in the details rowpublic String[] getHeaderDetails(String field, boolean includeCounts, boolean includeSynonyms)
SpeciesLookupServicegetHeaderDetails in interface SpeciesLookupServicefield - The field name that is causing the lookup to occur.includeCounts - whether or not counts should be included in the headerincludeSynonyms - whether or not synonyms should be included in the headerpublic void setBieUriPrefix(String bieUriPrefix)
public void setRestTemplate(org.springframework.web.client.RestOperations restTemplate)
public void setEnabled(Boolean enabled)
public void setMessageSource(org.springframework.context.support.AbstractMessageSource messageSource)
Copyright © 2014. All rights reserved.