Mercurial > lada > lada-server
changeset 239:889f4fdbc235
Uncommented checks if form is readonly because defect #19.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 08 Jul 2013 10:11:03 +0200 |
parents | 43039c84c1b6 |
children | a31daefe49ea |
files | src/main/java/de/intevation/lada/rest/LMesswertService.java |
diffstat | 1 files changed, 17 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LMesswertService.java Mon Jul 08 10:10:26 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LMesswertService.java Mon Jul 08 10:11:03 2013 +0200 @@ -151,20 +151,22 @@ } private boolean isReadOnly(String probeId, Integer messungsId) { - QueryBuilder<LMessung> builder = - new QueryBuilder<LMessung>( - messungRepository.getEntityManager(), - LMessung.class); - builder.and("probeId", probeId) - .and("messungsId", String.valueOf(messungsId)); - Response response = messungRepository.filter(builder.getQuery()); - List<LMessung> messungen = (List<LMessung>) response.getData(); - if (messungen.isEmpty()) { - return true; - } - if (messungen.size() > 1) { - return true; - } - return messungen.get(0).isFertig(); + return false; + // TODO: Fix #19 and make the following line work. (2013-07-08, 10:08, torsten) + //QueryBuilder<LMessung> builder = + // new QueryBuilder<LMessung>( + // messungRepository.getEntityManager(), + // LMessung.class); + //builder.and("probeId", probeId) + // .and("messungsId", String.valueOf(messungsId)); + //Response response = messungRepository.filter(builder.getQuery()); + //List<LMessung> messungen = (List<LMessung>) response.getData(); + //if (messungen.isEmpty()) { + // return true; + //} + //if (messungen.size() > 1) { + // return true; + //} + //return messungen.get(0).isFertig(); } }