changeset 377:6f4afcd28ff3 0.6

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 27 Sep 2013 10:20:19 +0200
parents 4f42d1b2570a (diff) 0ddfa534173e (current diff)
children a72df178f1b9 a1cef118c32a
files
diffstat 2 files changed, 3 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/LProbeInfo.java	Fri Sep 27 08:06:06 2013 +0200
+++ b/src/main/java/de/intevation/lada/model/LProbeInfo.java	Fri Sep 27 10:20:19 2013 +0200
@@ -53,9 +53,6 @@
 	@Column(name="mst_id")
 	private String mstId;
 
-	@Column(name="nebenproben_nr", insertable = false, updatable = false)
-	private String nebenprobenNr;
-
 	@Column(name="netzbetreiber_id")
 	private String netzbetreiberId;
 
@@ -86,12 +83,6 @@
 	@Column(name="umw_id")
 	private String umwId;
 
-	@Column(name="messmethode")
-	private String messmethode;
-
-	@Column(name="fertig")
-	private Boolean fertig;
-
 	@Column(name="readonly")
 	private Boolean readonly;
 
@@ -194,14 +185,6 @@
 		this.mstId = mstId;
 	}
 
-	public String getNebenprobenNr() {
-		return this.nebenprobenNr;
-	}
-
-	public void setNebenprobenNr(String nebenprobenNr) {
-		this.nebenprobenNr = nebenprobenNr;
-	}
-
 	public String getNetzbetreiberId() {
 		return this.netzbetreiberId;
 	}
@@ -282,22 +265,6 @@
 		this.umwId = umwId;
 	}
 
-    public String getMessmethode() {
-        return messmethode;
-    }
-
-    public void setMessmethode(String messmethode) {
-        this.messmethode = messmethode;
-    }
-
-    public Boolean getFertig() {
-        return fertig;
-    }
-
-    public void setFertig(Boolean fertig) {
-        this.fertig = fertig;
-    }
-
     public Boolean getReadonly() {
         return readonly;
     }
--- a/src/main/java/de/intevation/lada/rest/LProbeService.java	Fri Sep 27 08:06:06 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LProbeService.java	Fri Sep 27 10:20:19 2013 +0200
@@ -117,7 +117,7 @@
             String nbId = probe.get(0).getNetzbetreiberId();
             String mstId = probe.get(0).getMstId();
             if (auth.getNetzbetreiber().contains(nbId) ||
-                probe.get(0).getFertig()) {
+                probe.get(0).getReadonly()) {
                 if (auth.getMst().contains(mstId)) {
                     return response;
                 }
@@ -158,7 +158,7 @@
                     new QueryBuilder<LProbeInfo>(
                         repository.getEntityManager(),
                         LProbeInfo.class);
-                builder.or("fertig", true);
+                builder.or("readonly", true);
                 List<String> netzbetreiberIds = auth.getNetzbetreiber();
                 for (String netzbetreiberId: netzbetreiberIds) {
                     builder.or("netzbetreiberId", netzbetreiberId);
@@ -203,7 +203,7 @@
                     subselect += "or netzbetreiber_id = '" + netzbetreiberId + "' ";
                 }
             }
-            subselect += "or fertig = true) as lp";
+            subselect += "or readonly = true) as lp";
             sql = sql.replace("l_probe", subselect);
             return lpr.filterFree(sql, filters, results, params);
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)