comparison src/main/java/de/intevation/lada/rest/ProbeService.java @ 561:20016be6c072

Return null as data.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 13 Mar 2015 16:47:21 +0100
parents c3742f46c8e1
children 9dd72a2860b5
comparison
equal deleted inserted replaced
560:c3742f46c8e1 561:20016be6c072
206 logger.debug("User is not authenticated!"); 206 logger.debug("User is not authenticated!");
207 return new Response(false, 699, null); 207 return new Response(false, 699, null);
208 } 208 }
209 Violation violation = validator.validate(probe); 209 Violation violation = validator.validate(probe);
210 if (violation.hasErrors()) { 210 if (violation.hasErrors()) {
211 Response response = new Response(false, 604, probe); 211 Response response = new Response(false, 604, null);
212 response.setErrors(violation.getErrors()); 212 response.setErrors(violation.getErrors());
213 response.setWarnings(violation.getWarnings()); 213 response.setWarnings(violation.getWarnings());
214 return response; 214 return response;
215 } 215 }
216 Response response = defaultRepo.update(probe, "land"); 216 Response response = defaultRepo.update(probe, "land");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)