[PATCH 2 of 3] Configure SedimentLoadLSFacet

Wald Commits scm-commit at wald.intevation.org
Wed Aug 20 12:11:32 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1408529432 -7200
# Node ID 9ff5fd9bccfa93d39e95625a49091c6e7afb6a5b
# Parent  54d35418141e3da0e44264581bb120380789ecf1
Configure SedimentLoadLSFacet

diff -r 54d35418141e -r 9ff5fd9bccfa artifacts/doc/conf/artifacts/sedimentload-ls.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts/doc/conf/artifacts/sedimentload-ls.xml	Wed Aug 20 12:10:32 2014 +0200
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<artifact name="sedimentload_ls">
+    <load-facets>
+        <facet name="sedimentload_ls" class="org.dive4elements.river.artifacts.model.minfo.SedimentLoadLSFacet"/>
+    </load-facets>
+    <states>
+        <state id="state.sedimentload_ls.datacage"
+               description="state.sedimentload_ls.datacage"
+               state="org.dive4elements.river.artifacts.states.DefaultState">
+        </state>
+    </states>
+</artifact>
+
diff -r 54d35418141e -r 9ff5fd9bccfa artifacts/doc/conf/conf.xml
--- a/artifacts/doc/conf/conf.xml	Wed Aug 20 12:09:41 2014 +0200
+++ b/artifacts/doc/conf/conf.xml	Wed Aug 20 12:10:32 2014 +0200
@@ -14,6 +14,7 @@
     <!ENTITY modules SYSTEM "modules.xml">
     <!ENTITY porosity-artifact  SYSTEM "artifacts/porosity.xml">
     <!ENTITY sedimentload-artifact  SYSTEM "artifacts/sedimentload.xml">
+    <!ENTITY sedimentload-ls-artifact  SYSTEM "artifacts/sedimentload-ls.xml">
 ]>
 <artifact-database>
     <export-secret>YOUR_SECRET</export-secret>
@@ -154,6 +155,9 @@
             <artifact-factory name="sedimentload" description="Factory to create an artifact to show Sedimentload values."
                 ttl="3600000"
                 artifact="org.dive4elements.river.artifacts.D4EArtifact">org.dive4elements.artifactdatabase.DefaultArtifactFactory</artifact-factory>
+            <artifact-factory name="sedimentload_ls" description="Factory to create an artifact to show values from the sedimentload_ls table."
+                ttl="3600000"
+                artifact="org.dive4elements.river.artifacts.D4EArtifact">org.dive4elements.artifactdatabase.DefaultArtifactFactory</artifact-factory>
             <artifact-factory name="porosity" description="Factory to create an artifact to show porosity values."
                 ttl="3600000"
                 artifact="org.dive4elements.river.artifacts.D4EArtifact">org.dive4elements.artifactdatabase.DefaultArtifactFactory</artifact-factory>
@@ -286,6 +290,7 @@
         <artifact name="staticsqrelation" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/sqrelation.xml" />
         &porosity-artifact;
         &sedimentload-artifact;
+        &sedimentload-ls-artifact;
     </artifacts>
 
     &modules;
diff -r 54d35418141e -r 9ff5fd9bccfa artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Wed Aug 20 12:09:41 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Wed Aug 20 12:10:32 2014 +0200
@@ -1433,7 +1433,7 @@
       <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $year)"/>
       <dc:comment> TODO aheinecke: Create a sedimentload_ls static facet</dc:comment>
       <year description="{$syear}"
-            factory="sedimentload"
+            factory="sedimentload_ls"
             target_out="{$out}"
             info="{$description}"
             ids="{$syid}:{$syear}" />
@@ -1444,7 +1444,7 @@
       <dc:variable name="eyear" type="string" expr="dc:date-format('yyyy', $endyear)"/>
       <dc:comment> TODO aheinecke: Create a sedimentload_ls static facet</dc:comment>
       <year description="{$syear}-{$eyear}"
-            factory="sedimentload"
+            factory="sedimentload_ls"
             target_out="{$out}"
             info="{$description}"
             ids="{$syid};{$syear}-{$eyear}" />


More information about the Dive4Elements-commits mailing list