# HG changeset patch # User Torsten Irländer # Date 1373900569 -7200 # Node ID 4635fa8de9f42b06b7fc78cc59577f2dac2dba8a # Parent 307ed0ca83ef78c9e6f7b101f5a68744b2583d03 Fixed loading Lort diff -r 307ed0ca83ef -r 4635fa8de9f4 src/main/java/de/intevation/lada/rest/LOrtService.java --- a/src/main/java/de/intevation/lada/rest/LOrtService.java Mon Jul 15 15:41:12 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LOrtService.java Mon Jul 15 17:02:49 2013 +0200 @@ -109,7 +109,7 @@ * @return Response object. */ @PUT - @Path("/{id}") + @Path("/{portId}/{probeId}") @Produces("text/json") @Consumes("application/json") public Response update( @@ -165,9 +165,11 @@ * @return Response object. */ @DELETE - @Path("/{ortId}") + @Produces("text/json") + @Path("/{ortId}/{probeId}") public Response delete( @PathParam("ortId") String ortId, + @PathParam("probeId") String probeId, @Context HttpHeaders headers ) { try { @@ -175,7 +177,7 @@ new QueryBuilder( repository.getEntityManager(), LOrt.class); - builder.and("POrtId", ortId); + builder.and("POrtId", ortId).and("probeId", probeId); Response response = repository.filter(builder.getQuery()); List list = (List)response.getData(); if (!list.isEmpty()) {