changeset 881:501ccddaeaca

Use lock mechanism for messung objects on status POST.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 11 Feb 2016 17:07:14 +0100
parents 9c5a5afb6708
children 2e9007297e78
files src/main/java/de/intevation/lada/rest/StatusService.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/StatusService.java	Thu Feb 11 12:28:21 2016 +0100
+++ b/src/main/java/de/intevation/lada/rest/StatusService.java	Thu Feb 11 17:07:14 2016 +0100
@@ -226,6 +226,9 @@
         UserInfo userInfo = authorization.getInfo(request);
         LMessung messung = defaultRepo.getByIdPlain(
             LMessung.class, status.getMessungsId(), "land");
+        if (lock.isLocked(messung)) {
+            return new Response(false, 697, null);
+        }
         boolean next = false;
         boolean change = false;
         if (messung.getStatus() == null) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)