org.gcube.data.speciesplugin.utils
Class SpeciesService

java.lang.Object
  extended by org.gcube.data.speciesplugin.utils.SpeciesService

public class SpeciesService
extends Object

Author:
"Federico De Faveri defaveri@isti.cnr.it", "Valentina Marioli valentina.marioli@isti.cnr.it"

Field Summary
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 Summary
SpeciesService(SpeciesStore store)
           
 
Method Summary
 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
protected  void store(org.gcube.data.spd.model.TaxonomyItem taxon)
          Save each tree in store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPECIES_SERVICE_ID

public static final QName SPECIES_SERVICE_ID

GENERATOR

protected static final SpeciesTreeGenerator GENERATOR

call

protected org.gcube.data.spd.client.proxies.Manager call

classificationCall

protected org.gcube.data.spd.client.proxies.Classification classificationCall

store

protected SpeciesStore store

treeCounter

protected int treeCounter
Constructor Detail

SpeciesService

public SpeciesService(SpeciesStore store)
               throws Exception
Throws:
Exception
Method Detail

createCollection

public void createCollection(List<String> scientificNames,
                             List<String> dataSources)
                      throws Exception
Entry point

Throws:
Exception

createCollection

public void createCollection(List<String> scientificNames,
                             List<String> dataSources,
                             boolean strictMatch)
                      throws Exception
Create collection with trees

Throws:
Exception

createQuery

protected String createQuery(List<String> scientificNames,
                             List<String> dataSource)
Creates a Species Discovery query


store

protected void store(org.gcube.data.spd.model.TaxonomyItem taxon)
Save each tree in store



Copyright © 2013. All Rights Reserved.