[PATCH 11 of 15] Added config for porosity artifact

Wald Commits scm-commit at wald.intevation.org
Wed Apr 30 15:30:14 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1398864306 -7200
# Node ID 546a6318f681061747cb1d2d02147471089f8d5e
# Parent  693778752ee7c49c6fdaac63dd4747c554daa7ed
Added config for porosity artifact.

diff -r 693778752ee7 -r 546a6318f681 artifacts/doc/conf/artifacts/porosity.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts/doc/conf/artifacts/porosity.xml	Wed Apr 30 15:25:06 2014 +0200
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<artifact name="porosity">
+    <load-facets>
+        <facet name="porosity" class="org.dive4elements.river.artifacts.model.minfo.PorosityFacet"/>
+    </load-facets>
+    <states>
+        <state id="state.porosity.datacage"
+               description="state.porosity.datacage"
+               state="org.dive4elements.river.artifacts.states.DefaultState">
+        </state>
+    </states>
+</artifact>
diff -r 693778752ee7 -r 546a6318f681 artifacts/doc/conf/conf.xml
--- a/artifacts/doc/conf/conf.xml	Wed Apr 30 15:22:27 2014 +0200
+++ b/artifacts/doc/conf/conf.xml	Wed Apr 30 15:25:06 2014 +0200
@@ -12,6 +12,7 @@
     <!ENTITY sqrelation-defaults SYSTEM "sqrelation-diagram-defaults.xml">
     <!ENTITY zoom-scales SYSTEM "zoom-scales.xml">
     <!ENTITY modules SYSTEM "modules.xml">
+    <!ENTITY porosity-artifact  SYSTEM "artifacts/porosity.xml">
 ]>
 <artifact-database>
     <export-secret>YOUR_SECRET</export-secret>
@@ -152,6 +153,9 @@
             <artifact-factory name="sedimentyield" description="Factory to create an artifact to show Sediment Yield values."
                 ttl="3600000"
                 artifact="org.dive4elements.river.artifacts.SedimentYieldArtifact">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>
         </artifact-factories>
 
         <user-factory name="default" description="Factory to create new users">org.dive4elements.artifactdatabase.DefaultUserFactory</user-factory>
@@ -279,6 +283,7 @@
         <artifact name="gaugedischargecurve" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/gaugedischargecurve.xml" />
         <artifact name="qsector" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/qsector.xml" />
         <artifact name="staticsqrelation" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/sqrelation.xml" />
+        &porosity-artifact;
     </artifacts>
 
     &modules;


More information about the Dive4Elements-commits mailing list