public class SpeciesService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.data.spd.client.proxies.Manager |
call |
protected org.gcube.data.spd.client.proxies.Classification |
classificationCall |
protected static SpeciesTreeGenerator |
GENERATOR |
static QName |
SPECIES_SERVICE_ID |
protected SpeciesStore |
store |
protected int |
treeCounter |
| Constructor and Description |
|---|
SpeciesService(SpeciesStore store) |
| Modifier and Type | Method and Description |
|---|---|
void |
createCollection(List<String> scientificNames,
List<String> dataSources)
Entry point
|
void |
createCollection(List<String> scientificNames,
List<String> dataSources,
boolean strictMatch)
Create collection with trees
|
protected String |
createQuery(List<String> scientificNames,
List<String> dataSource)
Creates a Species Discovery query using SPQL 2.0
|
protected void |
store(org.gcube.data.spd.model.products.TaxonomyItem taxon)
Save each tree in store
|
public static final QName SPECIES_SERVICE_ID
protected static final SpeciesTreeGenerator GENERATOR
protected org.gcube.data.spd.client.proxies.Manager call
protected org.gcube.data.spd.client.proxies.Classification classificationCall
protected SpeciesStore store
protected int treeCounter
public SpeciesService(SpeciesStore store) throws Exception
Exceptionpublic void createCollection(List<String> scientificNames, List<String> dataSources) throws Exception
Exceptionpublic void createCollection(List<String> scientificNames, List<String> dataSources, boolean strictMatch) throws Exception
Exceptionprotected String createQuery(List<String> scientificNames, List<String> dataSource)
protected void store(org.gcube.data.spd.model.products.TaxonomyItem taxon)
Copyright © 2017. All Rights Reserved.