Mercurial > dive4elements > river
changeset 8327:1e4e5ff44aa9
Use the sq relation artifact to load data from datacage.
* Renamed the artifact in configs
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 25 Sep 2014 17:24:35 +0200 (2014-09-25) |
parents | 10917ec29625 |
children | f0b78f7498ae |
files | artifacts/doc/conf/conf.xml artifacts/doc/conf/meta-data.xml artifacts/src/main/java/org/dive4elements/river/artifacts/SQRelationArtifact.java |
diffstat | 3 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/doc/conf/conf.xml Thu Sep 25 17:23:12 2014 +0200 +++ b/artifacts/doc/conf/conf.xml Thu Sep 25 17:24:35 2014 +0200 @@ -13,6 +13,7 @@ <!ENTITY porosity-artifact SYSTEM "artifacts/porosity.xml"> <!ENTITY gaugedischargecurve-artifact SYSTEM "artifacts/gaugedischargecurve.xml"> <!ENTITY sqrelation-artifact SYSTEM "artifacts/sqrelation.xml"> + <!ENTITY sqrelation-datacage-artifact SYSTEM "artifacts/sqrelation-datacage.xml"> <!ENTITY sedimentload-artifact SYSTEM "artifacts/sedimentload.xml"> <!ENTITY sedimentload-ls-artifact SYSTEM "artifacts/sedimentload-ls.xml"> @@ -142,6 +143,9 @@ <artifact-factory name="staticsqrelation" description="Factory to create an artifact that generates sq relations from db." ttl="3600000" artifact="org.dive4elements.river.artifacts.D4EArtifact">org.dive4elements.artifactdatabase.DefaultArtifactFactory</artifact-factory> + <artifact-factory name="sqrelationdatacage" description="Factory to create an artifact that generates sq relations from db." + ttl="3600000" + artifact="org.dive4elements.river.artifacts.SQRelationArtifact">org.dive4elements.artifactdatabase.DefaultArtifactFactory</artifact-factory> <artifact-factory name="morph-width" description="Factory to create an artifact used in minfo datacage." ttl="3600000" artifact="org.dive4elements.river.artifacts.StaticMorphWidthArtifact">org.dive4elements.artifactdatabase.DefaultArtifactFactory</artifact-factory> @@ -293,6 +297,7 @@ <artifact name="gaugedischarge" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/gaugedischarge.xml" /> <artifact name="qsector" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/qsector.xml" /> &sqrelation-artifact; + &sqrelation-datacage-artifact; &porosity-artifact; &gaugedischargecurve-artifact; &sedimentload-artifact;
--- a/artifacts/doc/conf/meta-data.xml Thu Sep 25 17:23:12 2014 +0200 +++ b/artifacts/doc/conf/meta-data.xml Thu Sep 25 17:24:35 2014 +0200 @@ -2157,7 +2157,7 @@ $start_time), ' bis ', dc:date-format('yyyy', $stop_time))"/> - <sqvalue factory="staticsqrelation" + <sqvalue factory="sqrelationdatacage" target_out="{$out}" ids="{$sqvid};{dc:uppercase($parameter)} - {$station_name}: {$combined_desc}" description="{$combined_desc}"/>
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/SQRelationArtifact.java Thu Sep 25 17:23:12 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/SQRelationArtifact.java Thu Sep 25 17:24:35 2014 +0200 @@ -37,7 +37,7 @@ public static final String XPATH_RIVER = "/art:action/art:river/@art:name"; public static final String XPATH_STATION = "/art:action/art:measurement_station/@art:number"; - public static final String NAME = "staticsqrelation"; + public static final String NAME = "sqrelationdatacage"; public static final String STATIC_STATE_NAME = "state.sqrelation.static"; public static final String UIPROVIDER = "static_sqrelation"; public static final String SQ_RELATION_OUT_A = "sq_relation_a";