Mercurial > lada > lada-server
changeset 710:2ae27dde4823
get all netzbetreiber without filtering.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 20 Jul 2015 12:19:40 +0200 |
parents | e502e1af6256 |
children | 3ec358698b4d |
files | src/main/java/de/intevation/lada/rest/stamm/NetzbetreiberService.java |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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"); } /**