changeset 9372:e014eca211a3

distance_only_part_validation bugfix
author gernotbelger
date Thu, 02 Aug 2018 19:20:38 +0200
parents 6657d89a0b34
children 5740b5d3f032
files artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/DistanceOnlyPartMissVolumeSelect.java artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyPartSelect.java artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/DistanceOnlyPartHistoricalSelect.java
diffstat 3 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/DistanceOnlyPartMissVolumeSelect.java	Thu Aug 02 17:49:32 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/DistanceOnlyPartMissVolumeSelect.java	Thu Aug 02 19:20:38 2018 +0200
@@ -8,6 +8,7 @@
 
 package org.dive4elements.river.artifacts.bundu.bezugswst;
 
+import org.dive4elements.artifacts.Artifact;
 import org.dive4elements.artifacts.CallContext;
 import org.dive4elements.river.artifacts.resources.Resources;
 import org.dive4elements.river.artifacts.states.DistanceOnlyPartSelect;
@@ -20,4 +21,9 @@
         return Resources.getMsg(context.getMeta(), "state.title.uinfo.bezugswst.miss_vol.distance_part_state");
     }
 
+    @Override
+    public boolean validate(final Artifact artifact) {
+        return true; // validation on client side!
+    }
+
 }
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyPartSelect.java	Thu Aug 02 17:49:32 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyPartSelect.java	Thu Aug 02 19:20:38 2018 +0200
@@ -9,6 +9,7 @@
 package org.dive4elements.river.artifacts.states;
 
 import org.apache.log4j.Logger;
+import org.dive4elements.artifacts.Artifact;
 import org.dive4elements.artifacts.CallContext;
 import org.dive4elements.river.artifacts.resources.Resources;
 
@@ -27,4 +28,9 @@
         return Resources.getMsg(context.getMeta(), "state.title.distance_part_state");
     }
 
+    @Override
+    public boolean validate(final Artifact artifact) {
+        return true; // validation on client side!
+    }
+
 }
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/DistanceOnlyPartHistoricalSelect.java	Thu Aug 02 17:49:32 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/DistanceOnlyPartHistoricalSelect.java	Thu Aug 02 19:20:38 2018 +0200
@@ -87,7 +87,7 @@
         }
         catch (
 
-                final IllegalArgumentException iae) {
+        final IllegalArgumentException iae) {
             iae.printStackTrace();
         }
     }
@@ -182,4 +182,10 @@
         }
         return new double[] { min, max };
     }
+
+    @Override
+    public boolean validate(final Artifact artifact) {
+        return true; // validation on client side!
+    }
+
 }
\ No newline at end of file

http://dive4elements.wald.intevation.org