comparison src/main/java/de/intevation/lada/rest/LAFImportService.java @ 337:cb47c33b119d

Imporved error/warning handling and fixed some bugs in the importer module.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 28 Aug 2013 15:11:50 +0200
parents 5d11428e6a09
children e0bbb54f2f7c
comparison
equal deleted inserted replaced
336:53417b61391c 337:cb47c33b119d
92 respData.put("errors", importer.getErrors()); 92 respData.put("errors", importer.getErrors());
93 respData.put("warnings", importer.getWarnings()); 93 respData.put("warnings", importer.getWarnings());
94 respData.put("filename", name); 94 respData.put("filename", name);
95 int code = 200; 95 int code = 200;
96 if (!success) { 96 if (!success) {
97 code = 660; 97 code = 670;
98 } 98 }
99 Response response = new Response(success, code, respData); 99 Response response = new Response(success, code, respData);
100 return response; 100 return response;
101 } 101 }
102 catch(AuthenticationException ae) { 102 catch(AuthenticationException ae) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)