Revision 86f370cc
Added by Katja Luther almost 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/ExportManager.java | ||
---|---|---|
35 | 35 |
import eu.etaxonomy.cdm.io.common.IExportConfigurator; |
36 | 36 |
import eu.etaxonomy.cdm.io.common.IIoConfigurator; |
37 | 37 |
import eu.etaxonomy.cdm.io.common.IoResultBase; |
38 |
import eu.etaxonomy.cdm.io.common.IoResultBase.IoInfo; |
|
38 | 39 |
import eu.etaxonomy.cdm.io.jaxb.JaxbExportConfigurator; |
39 | 40 |
import eu.etaxonomy.cdm.io.outputmodel.OutputModelConfigurator; |
40 | 41 |
import eu.etaxonomy.cdm.io.sdd.out.SDDExportConfigurator; |
... | ... | |
324 | 325 |
} |
325 | 326 |
final StringBuilder reportText = new StringBuilder(); |
326 | 327 |
if(result!=null){ |
327 |
List<IoResultBase.Error> reports = result.getErrors();
|
|
328 |
List<IoInfo> reports = result.getErrors();
|
|
328 | 329 |
reportText.append("Errors:\\r"); |
329 |
for (IoResultBase.Error bs : reports) {
|
|
330 |
for (IoInfo bs : reports) {
|
|
330 | 331 |
reportText.append(bs.getMessage() + " - " +bs.getException().getStackTrace()); |
331 | 332 |
} |
332 |
List<String> warnings = result.getWarnings();
|
|
333 |
List<IoResultBase.IoInfo> warnings = result.getWarnings();
|
|
333 | 334 |
reportText.append("Warnings:\\r"); |
334 |
for (String bs : warnings) {
|
|
335 |
for (IoResultBase.IoInfo bs : warnings) {
|
|
335 | 336 |
reportText.append(bs); |
336 | 337 |
} |
337 |
List<IoResultBase.Error> exceptions = result.getExceptions();
|
|
338 |
List<IoInfo> exceptions = result.getExceptions();
|
|
338 | 339 |
reportText.append("Exceptions:\\r"); |
339 |
for (IoResultBase.Error bs : exceptions) {
|
|
340 |
for (IoInfo bs : exceptions) {
|
|
340 | 341 |
reportText.append(bs.getMessage() + " - " +bs.getException().getStackTrace()); |
341 | 342 |
} |
342 | 343 |
|
Also available in: Unified diff
adapt import and export manager to changes in IOResult