Revision 423c7510
Added by Patrick Plitzner over 10 years ago
- added more information to results
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/dataimport/DataImportSpecimenEditorInput.java | ||
---|---|---|
10 | 10 |
package eu.etaxonomy.taxeditor.dataimport; |
11 | 11 |
|
12 | 12 |
import java.io.IOException; |
13 |
import java.io.InputStream; |
|
13 | 14 |
import java.net.URISyntaxException; |
14 | 15 |
import java.util.List; |
15 | 16 |
|
... | ... | |
21 | 22 |
|
22 | 23 |
import eu.etaxonomy.cdm.ext.biocase.BioCaseQuery; |
23 | 24 |
import eu.etaxonomy.cdm.ext.biocase.BioCaseQueryServiceWrapper; |
25 |
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206Import; |
|
24 | 26 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; |
25 | 27 |
|
26 | 28 |
/** |
... | ... | |
98 | 100 |
public List<SpecimenOrObservationBase> getResults() { |
99 | 101 |
String errorMessage = "Could not execute query " + query; |
100 | 102 |
try { |
101 |
return new BioCaseQueryServiceWrapper().query(query); |
|
103 |
InputStream resultStream = new BioCaseQueryServiceWrapper().query(query); |
|
104 |
Abcd206Import abcd206Import = new Abcd206Import(); |
|
102 | 105 |
} catch (ClientProtocolException e) { |
103 | 106 |
logger.error(errorMessage, e); |
104 | 107 |
} catch (IOException e) { |
... | ... | |
106 | 109 |
} catch (URISyntaxException e) { |
107 | 110 |
logger.error(errorMessage, e); |
108 | 111 |
} |
109 |
return null;
|
|
112 |
return new BioCaseQueryServiceWrapper().dummyData();
|
|
110 | 113 |
} |
111 | 114 |
|
112 | 115 |
/* (non-Javadoc) |
Also available in: Unified diff