comparison src/main/java/de/intevation/lada/model/land/Messprogramm.java @ 1332:65ed13ff9945 2.6.1

Changed authorization for Messprogramm. * Added 'readonly' flag * Only user with function '4' and the corresponding 'netzbetreiber' are allowed to edit. * User authorized to create a 'probe' are allowed to generate proben.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 29 Mar 2017 14:25:56 +0200
parents 1bf808b67403
children
comparison
equal deleted inserted replaced
1331:03faaba3c2a3 1332:65ed13ff9945
14 import javax.persistence.Entity; 14 import javax.persistence.Entity;
15 import javax.persistence.GeneratedValue; 15 import javax.persistence.GeneratedValue;
16 import javax.persistence.GenerationType; 16 import javax.persistence.GenerationType;
17 import javax.persistence.Id; 17 import javax.persistence.Id;
18 import javax.persistence.PrePersist; 18 import javax.persistence.PrePersist;
19 import javax.persistence.Transient;
19 20
20 21
21 /** 22 /**
22 * The persistent class for the messprogramm database table. 23 * The persistent class for the messprogramm database table.
23 * 24 *
96 private Boolean test; 97 private Boolean test;
97 98
98 @Column(name="umw_id") 99 @Column(name="umw_id")
99 private String umwId; 100 private String umwId;
100 101
102 @Transient
103 private boolean readonly;
104
101 public Messprogramm() { 105 public Messprogramm() {
102 } 106 }
103 107
104 public Integer getId() { 108 public Integer getId() {
105 return this.id; 109 return this.id;
267 271
268 public void setUmwId(String umwId) { 272 public void setUmwId(String umwId) {
269 this.umwId = umwId; 273 this.umwId = umwId;
270 } 274 }
271 275
276 public boolean isReadonly() {
277 return readonly;
278 }
279
280 public void setReadonly(boolean readonly) {
281 this.readonly = readonly;
282 }
283
272 } 284 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)