public class SpeciesLookupIndexService extends Object implements SpeciesLookupService
| Modifier and Type | Field and Description |
|---|---|
protected String |
nameIndexLocation |
| Constructor and Description |
|---|
SpeciesLookupIndexService() |
| 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 |
setMessageSource(org.springframework.context.support.AbstractMessageSource messageSource) |
void |
setNameIndexLocation(String nameIndexLocation) |
protected String nameIndexLocation
public String getGuidForName(String name)
SpeciesLookupServicegetGuidForName in interface SpeciesLookupServicepublic String getAcceptedNameForGuid(String guid)
SpeciesLookupServicegetAcceptedNameForGuid in interface SpeciesLookupServicepublic List<String> getNamesForGuids(List<String> guids)
SpeciesLookupServicegetNamesForGuids in interface SpeciesLookupServicepublic 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 setMessageSource(org.springframework.context.support.AbstractMessageSource messageSource)
public void setNameIndexLocation(String nameIndexLocation)
Copyright © 2014. All rights reserved.