Revision f4fa11df
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/GbifResponseImportView.java | ||
---|---|---|
9 | 9 |
package eu.etaxonomy.taxeditor.view.dataimport; |
10 | 10 |
|
11 | 11 |
import java.io.IOException; |
12 |
import java.io.InputStream; |
|
13 | 12 |
import java.net.URISyntaxException; |
14 |
import java.util.ArrayList; |
|
15 | 13 |
import java.util.Collection; |
16 |
import java.util.Comparator; |
|
17 |
import java.util.HashSet; |
|
18 |
import java.util.Set; |
|
19 | 14 |
|
20 | 15 |
import org.apache.http.client.ClientProtocolException; |
21 |
import org.eclipse.core.runtime.jobs.Job; |
|
22 | 16 |
|
23 |
import eu.etaxonomy.cdm.ext.occurrence.bioCase.BioCaseQueryServiceWrapper; |
|
24 |
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifDataSetProtocol; |
|
25 | 17 |
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifQueryServiceWrapper; |
26 | 18 |
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse; |
27 |
import eu.etaxonomy.cdm.io.common.CdmDefaultImport; |
|
28 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator.SOURCE_TYPE; |
|
29 |
import eu.etaxonomy.cdm.io.dwca.in.DwcaImportConfigurator; |
|
30 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; |
|
31 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
32 | 19 |
|
33 | 20 |
/** |
34 | 21 |
* @author pplitzner |
... | ... | |
62 | 49 |
try{ |
63 | 50 |
//Collection<GbifResponse> results = new GbifQueryServiceWrapper().query(query); |
64 | 51 |
//setResults(results); |
65 |
|
|
52 |
|
|
66 | 53 |
// String errorMessage = "Could not execute query " + query; |
67 | 54 |
|
68 | 55 |
// Collection<SpecimenOrObservationBase<?>> results = new ArrayList<SpecimenOrObservationBase<?>>(); |
69 | 56 |
Collection<GbifResponse> results = new GbifQueryServiceWrapper().query(query); |
70 |
|
|
57 |
|
|
71 | 58 |
setResults(results); |
72 |
|
|
73 |
|
|
74 |
//
|
|
59 |
|
|
60 |
|
|
61 |
// |
|
75 | 62 |
// results = repo.getUnits(); |
76 |
|
|
63 |
|
|
77 | 64 |
} catch (ClientProtocolException e) { |
78 | 65 |
logger.error(errorMessage, e); |
79 | 66 |
} catch (IOException e) { |
... | ... | |
96 | 83 |
// } |
97 | 84 |
|
98 | 85 |
// } |
99 |
|
|
100 |
|
|
101 |
|
|
102 | 86 |
|
103 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
104 | 91 |
|
105 | 92 |
} |
Also available in: Unified diff
adapt taxeditor for specimen imports of algae and obeservations