changeset 8104:9ff5fd9bccfa

Configure SedimentLoadLSFacet
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 20 Aug 2014 12:10:32 +0200
parents 54d35418141e
children 4bcc0c8425d2
files artifacts/doc/conf/artifacts/sedimentload-ls.xml artifacts/doc/conf/conf.xml artifacts/doc/conf/meta-data.xml
diffstat 3 files changed, 20 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- /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>
+
--- 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;
--- 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}" />

http://dive4elements.wald.intevation.org