@Produces(value="application/json") @Path(value="/api") @Singleton public class NameSearchResource extends Object implements au.org.ala.names.ws.api.NameMatchService
| Constructor and Description |
|---|
NameSearchResource(NameSearchConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
List<Map> |
autocomplete(String query,
Integer max,
Boolean includeSynonyms) |
boolean |
check()
Make sure that the system is still operating.
|
Boolean |
check(String name,
String rank) |
void |
close()
Close the resource.
|
au.org.ala.names.ws.api.NameUsageMatch |
get(String taxonID) |
Set<String> |
getCommonNamesForLSID(String lsid,
Integer max) |
List<String> |
getGuidsForTaxa(List<String> taxa) |
au.org.ala.names.ws.api.NameUsageMatch |
match(au.org.ala.names.ws.api.NameSearch search) |
au.org.ala.names.ws.api.NameUsageMatch |
match(String name) |
au.org.ala.names.ws.api.NameUsageMatch |
match(String scientificName,
String kingdom,
String phylum,
String clazz,
String order,
String family,
String genus,
String specificEpithet,
String infraspecificEpithet,
String rank) |
au.org.ala.names.ws.api.NameUsageMatch |
matchVernacular(String vernacularName) |
String |
searchForLSID(String name) |
String |
searchForLsidById(String id) |
public NameSearchResource(NameSearchConfiguration configuration)
public boolean check()
@POST @Timed @Path(value="/searchByClassification") public au.org.ala.names.ws.api.NameUsageMatch match(au.org.ala.names.ws.api.NameSearch search)
match in interface au.org.ala.names.ws.api.NameMatchService@GET
@Timed
@Path(value="/searchByClassification")
public au.org.ala.names.ws.api.NameUsageMatch match(@QueryParam(value="scientificName")
String scientificName,
@QueryParam(value="kingdom")
String kingdom,
@QueryParam(value="phylum")
String phylum,
@QueryParam(value="class")
String clazz,
@QueryParam(value="order")
String order,
@QueryParam(value="family")
String family,
@QueryParam(value="genus")
String genus,
@QueryParam(value="specificEpithet")
String specificEpithet,
@QueryParam(value="infraspecificEpithet")
String infraspecificEpithet,
@QueryParam(value="rank")
String rank)
match in interface au.org.ala.names.ws.api.NameMatchService@GET
@Timed
@Path(value="/search")
public au.org.ala.names.ws.api.NameUsageMatch match(@QueryParam(value="q")
String name)
match in interface au.org.ala.names.ws.api.NameMatchService@GET
@Timed
@Path(value="/searchByVernacularName")
public au.org.ala.names.ws.api.NameUsageMatch matchVernacular(@QueryParam(value="vernacularName")
String vernacularName)
matchVernacular in interface au.org.ala.names.ws.api.NameMatchService@GET
@Timed
@Path(value="/getByTaxonID")
public au.org.ala.names.ws.api.NameUsageMatch get(@QueryParam(value="taxonID")
String taxonID)
get in interface au.org.ala.names.ws.api.NameMatchService@GET @Timed @Path(value="/check") public Boolean check(@QueryParam(value="name") String name, @QueryParam(value="rank") String rank)
check in interface au.org.ala.names.ws.api.NameMatchService@GET @Timed @Path(value="/autocomplete") public List<Map> autocomplete(@QueryParam(value="q") String query, @QueryParam(value="max") Integer max, @QueryParam(value="includeSynonyms") Boolean includeSynonyms)
autocomplete in interface au.org.ala.names.ws.api.NameMatchService@GET @Produces(value="text/plain") @Timed @Path(value="/searchForLsidById") public String searchForLsidById(@QueryParam(value="id") String id)
searchForLsidById in interface au.org.ala.names.ws.api.NameMatchService@GET @Produces(value="text/plain") @Timed @Path(value="/searchForLSID") public String searchForLSID(@QueryParam(value="name") String name)
searchForLSID in interface au.org.ala.names.ws.api.NameMatchService@POST @Timed @Path(value="/getGuidsForTaxa") public List<String> getGuidsForTaxa(List<String> taxa)
getGuidsForTaxa in interface au.org.ala.names.ws.api.NameMatchService@GET @Timed @Path(value="/getCommonNamesForLSID") public Set<String> getCommonNamesForLSID(@QueryParam(value="lsid") String lsid, @QueryParam(value="max") Integer max)
getCommonNamesForLSID in interface au.org.ala.names.ws.api.NameMatchServicepublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2021 Atlas of Living Australia. All rights reserved.