changeset 196:e39bc0132c3a

Removed filter in filter() to get all Ort objects.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 01 Jul 2013 14:48:24 +0200
parents ad8e9cc164a8
children 5fb0fe4a55a9
files src/main/java/de/intevation/lada/rest/OrtService.java
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/OrtService.java	Mon Jul 01 14:45:27 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/OrtService.java	Mon Jul 01 14:48:24 2013 +0200
@@ -55,17 +55,8 @@
      */
     @GET
     @Produces("text/json")
-    public Response filter(@Context UriInfo info) {
-        MultivaluedMap<String, String> params = info.getQueryParameters();
-        if (params.isEmpty() || !params.containsKey("probeId")) {
-            return new Response(false, 609, new ArrayList<Ort>());
-        }
-        String paramValue = params.getFirst("probeId");
-        QueryBuilder<Ort> builder =
-            new QueryBuilder<Ort>(
-                repository.getEntityManager(), Ort.class);
-        builder.and("probeId", paramValue);
-        return repository.filter(builder.getQuery());
+    public Response filter() {
+        return repository.findAll(Ort.class);
     }
 
     @PUT
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)