# HG changeset patch # User Torsten Irländer # Date 1369734502 -7200 # Node ID bfc34abd22525f2c90daa5cc5c19d4072c37a02f # Parent f2c4d8a5f0d62b913b19976e7eee70fbbfb3d5e2 Changed function to list proben. If no parameter is given return all available kommentare (was return empty list). If proben parameter is provided return only the kommentare which belogs to the probe with the given probe id. diff -r f2c4d8a5f0d6 -r bfc34abd2252 src/main/java/de/intevation/lada/rest/LKommentarService.java --- a/src/main/java/de/intevation/lada/rest/LKommentarService.java Tue May 28 11:46:08 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LKommentarService.java Tue May 28 11:48:22 2013 +0200 @@ -65,15 +65,12 @@ @Produces("text/json") public List filter(@Context UriInfo info) { MultivaluedMap params = info.getQueryParameters(); - if (params.isEmpty()) { - return new ArrayList(0); - } if (params.containsKey("probe")) { String probe = params.getFirst("probe"); return repository.filter(probe); } else { - return new ArrayList(0); + return repository.findAll(LKommentarP.class); } }