[Lada-commits] [PATCH] get all netzbetreiber without filtering
Wald Commits
scm-commit at wald.intevation.org
Mon Jul 20 12:20:30 CEST 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1437387580 -7200
# Node ID 2ae27dde48237f48bc4e82c090695f2f475502ac
# Parent e502e1af625676130be0e67362c142670385f95a
get all netzbetreiber without filtering.
diff -r e502e1af6256 -r 2ae27dde4823 src/main/java/de/intevation/lada/rest/stamm/NetzbetreiberService.java
--- a/src/main/java/de/intevation/lada/rest/stamm/NetzbetreiberService.java Wed Jul 15 14:21:34 2015 +0200
+++ b/src/main/java/de/intevation/lada/rest/stamm/NetzbetreiberService.java Mon Jul 20 12:19:40 2015 +0200
@@ -94,12 +94,7 @@
@Context HttpServletRequest request,
@Context UriInfo info
) {
- UserInfo userInfo = authorization.getInfo(request);
- QueryBuilder<NetzBetreiber> builder =
- new QueryBuilder<NetzBetreiber>(
- defaultRepo.entityManager("stamm"), NetzBetreiber.class);
- builder.or("id", userInfo.getNetzbetreiber());
- return defaultRepo.filter(builder.getQuery(), "stamm");
+ return defaultRepo.getAll(NetzBetreiber.class, "stamm");
}
/**
More information about the Lada-commits
mailing list