# HG changeset patch # User gernotbelger # Date 1523553071 -7200 # Node ID 8c3e5682cb6029c463a4e73ab1a0e2429ef4e73b # Parent 2bb38e25091bfab248f5d4beafbe4ecd9587a454 Introduced UNFO module diff -r 2bb38e25091b -r 8c3e5682cb60 artifacts/doc/conf/artifacts/uinfo.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/artifacts/doc/conf/artifacts/uinfo.xml Thu Apr 12 19:11:11 2018 +0200 @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r 2bb38e25091b -r 8c3e5682cb60 artifacts/doc/conf/conf.xml --- a/artifacts/doc/conf/conf.xml Wed Apr 11 14:20:01 2018 +0200 +++ b/artifacts/doc/conf/conf.xml Thu Apr 12 19:11:11 2018 +0200 @@ -24,6 +24,7 @@ + ]> YOUR_SECRET @@ -175,6 +176,10 @@ org.dive4elements.artifactdatabase.DefaultArtifactFactory + + org.dive4elements.artifactdatabase.DefaultArtifactFactory @@ -309,6 +314,7 @@ &sedimentload-ls-artifact; &sinfo_artifact; + &uinfo_artifact; &modules; diff -r 2bb38e25091b -r 8c3e5682cb60 artifacts/doc/conf/modules.xml --- a/artifacts/doc/conf/modules.xml Wed Apr 11 14:20:01 2018 +0200 +++ b/artifacts/doc/conf/modules.xml Thu Apr 12 19:11:11 2018 +0200 @@ -9,6 +9,9 @@ + + + diff -r 2bb38e25091b -r 8c3e5682cb60 gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java Wed Apr 11 14:20:01 2018 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java Thu Apr 12 19:11:11 2018 +0200 @@ -1485,4 +1485,12 @@ String sinfo_additional_ls_withQ(); String sinfo_additional_ls_withoutQ(); + + String uinfo(); + + String uinfo_salix_line_export(); + + String uinfo_vegetation_zones_export(); + + String uinfo_inundation_duration_export(); } \ No newline at end of file diff -r 2bb38e25091b -r 8c3e5682cb60 gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties Wed Apr 11 14:20:01 2018 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties Thu Apr 12 19:11:11 2018 +0200 @@ -790,4 +790,9 @@ sinfo_additional_ls = Selektierte zus. L\u00e4ngsschnitte sinfo_additional_ls_withQ = mit Abfluss -sinfo_additional_ls_withoutQ = ohne Abfluss \ No newline at end of file +sinfo_additional_ls_withoutQ = ohne Abfluss + +uinfo = U-INFO +uinfo_inundation_duration_export = \u00dcberflutungsdauern Export +uinfo_salix_line_export = Salix-Linie Export +uinfo_vegetation_zones_export = Vegetationszonen Export \ No newline at end of file diff -r 2bb38e25091b -r 8c3e5682cb60 gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties Wed Apr 11 14:20:01 2018 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties Thu Apr 12 19:11:11 2018 +0200 @@ -790,4 +790,9 @@ sinfo_additional_ls = Selektierte zus. L\u00e4ngsschnitte sinfo_additional_ls_withQ = mit Abfluss -sinfo_additional_ls_withoutQ = ohne Abfluss \ No newline at end of file +sinfo_additional_ls_withoutQ = ohne Abfluss + +uinfo = U-INFO +uinfo_inundation_duration_export = \u00dcberflutungsdauern Export +uinfo_salix_line_export = Salix-Linie Export +uinfo_vegetation_zones_export = Vegetationszonen Export \ No newline at end of file diff -r 2bb38e25091b -r 8c3e5682cb60 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java Wed Apr 11 14:20:01 2018 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java Thu Apr 12 19:11:11 2018 +0200 @@ -66,6 +66,7 @@ import org.dive4elements.river.client.shared.model.ReportMode; import org.dive4elements.river.client.shared.model.River; import org.dive4elements.river.client.shared.model.SINFOArtifact; +import org.dive4elements.river.client.shared.model.UINFOArtifact; import org.dive4elements.river.client.shared.model.WINFOArtifact; import java.util.ArrayList; @@ -775,6 +776,7 @@ // FIXME: we got a whole artifact framework to separate ui and backend stuff, but in the end.... we have switches over specific datatypes here... if (art instanceof WINFOArtifact || art instanceof SINFOArtifact + || art instanceof UINFOArtifact || art instanceof FixAnalysisArtifact) { createGaugePanel(); renderInfo(desc.getRiver(), desc.getOldData()); diff -r 2bb38e25091b -r 8c3e5682cb60 gwt-client/src/main/java/org/dive4elements/river/client/server/FLYSArtifactCreator.java --- a/gwt-client/src/main/java/org/dive4elements/river/client/server/FLYSArtifactCreator.java Wed Apr 11 14:20:01 2018 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/FLYSArtifactCreator.java Thu Apr 12 19:11:11 2018 +0200 @@ -34,6 +34,7 @@ import org.dive4elements.river.client.shared.model.SINFOArtifact; import org.dive4elements.river.client.shared.model.MINFOArtifact; import org.dive4elements.river.client.shared.model.StaticSQRelationArtifact; +import org.dive4elements.river.client.shared.model.UINFOArtifact; import org.dive4elements.river.client.shared.model.WINFOArtifact; @@ -176,6 +177,11 @@ return new SINFOArtifact(uuid, hash, background, msg); } + if (name.equals("uinfo")) { + log.debug("+++++ NEW UINFO ARTIFACT."); + return new UINFOArtifact(uuid, hash, background, msg); + } + return new DefaultArtifact(uuid, hash, background, msg); } diff -r 2bb38e25091b -r 8c3e5682cb60 gwt-client/src/main/java/org/dive4elements/river/client/shared/model/UINFOArtifact.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/UINFOArtifact.java Thu Apr 12 19:11:11 2018 +0200 @@ -0,0 +1,42 @@ +/* Copyright (C) 2017 by Bundesanstalt für Gewässerkunde + * Software engineering by Intevation GmbH + * + * This file is Free Software under the GNU AGPL (>=v3) + * and comes with ABSOLUTELY NO WARRANTY! Check out the + * documentation coming with Dive4Elements River for details. + */ + +package org.dive4elements.river.client.shared.model; + +import java.util.List; + + +/** + * The UINFO implementation of an Artifact. + * + * @author Gernot Belger + */ +public class UINFOArtifact extends DefaultArtifact { + + /** The name of this artifact: 'uinfo'.*/ + private static final String NAME = "uinfo"; + + /** Necessary for serialization */ + public UINFOArtifact() { + } + + public UINFOArtifact( + String uuid, + String hash, + boolean inBackground, + List messages + ) { + super(uuid, hash, inBackground, messages); + } + + + public String getName() { + return NAME; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r 2bb38e25091b -r 8c3e5682cb60 gwt-client/src/main/webapp/WEB-INF/features.xml --- a/gwt-client/src/main/webapp/WEB-INF/features.xml Wed Apr 11 14:20:01 2018 +0200 +++ b/gwt-client/src/main/webapp/WEB-INF/features.xml Thu Apr 12 19:11:11 2018 +0200 @@ -4,6 +4,7 @@ module:sinfo module:winfo module:minfo + module:uinfo module:new_map module:new_chart module:fixanalysis