[PATCH 2 of 2] distance_only_part_validation bugfix
Wald Commits
scm-commit at wald.intevation.org
Thu Aug 2 19:20:45 CEST 2018
# HG changeset patch
# User gernotbelger
# Date 1533230438 -7200
# Node ID e014eca211a3982c3e69692e549fa8a83d350b77
# Parent 6657d89a0b342c78696c14db85eaf17d856b5e2e
distance_only_part_validation bugfix
diff -r 6657d89a0b34 -r e014eca211a3 artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/DistanceOnlyPartMissVolumeSelect.java
--- 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!
+ }
+
}
diff -r 6657d89a0b34 -r e014eca211a3 artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyPartSelect.java
--- 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!
+ }
+
}
diff -r 6657d89a0b34 -r e014eca211a3 artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/DistanceOnlyPartHistoricalSelect.java
--- 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
More information about the Dive4Elements-commits
mailing list