Mercurial > lada > lada-server
diff src/main/java/de/intevation/lada/rest/LProbeService.java @ 189:e9e83fa2a4ae
Fixed URL parameters.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 01 Jul 2013 14:15:00 +0200 |
parents | bc8e6d6f5eb1 |
children | fe05c016cdb6 |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LProbeService.java Mon Jul 01 12:46:25 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LProbeService.java Mon Jul 01 14:15:00 2013 +0200 @@ -123,16 +123,16 @@ return repository.filter(builder.getQuery()); } QueryBuilder<LProbeInfo> mstBuilder = builder.getEmptyBuilder(); - if (params.keySet().contains("mst")) { - String[] paramValues = params.getFirst("mst").split(","); + if (params.keySet().contains("mstId")) { + String[] paramValues = params.getFirst("mstId").split(","); for (String pv: paramValues) { mstBuilder.or("mstId", pv); } builder.and(mstBuilder); } QueryBuilder<LProbeInfo> umwBuilder = builder.getEmptyBuilder(); - if (params.keySet().contains("uwb")) { - String[] paramValues = params.getFirst("uwb").split(","); + if (params.keySet().contains("umwId")) { + String[] paramValues = params.getFirst("umwId").split(","); for (String pv: paramValues) { umwBuilder.or("umwId", pv); }