comparison artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java @ 8340:8679875f2c09

Create mainvalue facets before setting up the artifact.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 30 Sep 2014 10:57:58 +0200
parents d6e71158222a
children 840bc78cd333
comparison
equal deleted inserted replaced
8339:d6e71158222a 8340:8679875f2c09
116 initFromGaugeDoc(data, callMeta); 116 initFromGaugeDoc(data, callMeta);
117 117
118 List<Facet> fs = new ArrayList<Facet>(); 118 List<Facet> fs = new ArrayList<Facet>();
119 addFacets(state.getID(), fs); 119 addFacets(state.getID(), fs);
120 spawnState(); 120 spawnState();
121 super.setup(identifier, factory, context, callMeta, data, loadFacets);
122 String restriction = getDatacageIDValue(data); 121 String restriction = getDatacageIDValue(data);
123 log.debug("mainvalue restriction " + restriction); 122 log.debug("mainvalue restriction " + restriction);
124 boolean restricted = restriction.endsWith("q") || restriction.endsWith("w"); 123 boolean restricted = restriction.endsWith("q") || restriction.endsWith("w");
125 if (!restricted || restriction.endsWith("q")) { 124 if (!restricted || restriction.endsWith("q")) {
126 fs.add(new MainValuesQFacet( 125 fs.add(new MainValuesQFacet(
134 MAINVALUES_W, 133 MAINVALUES_W,
135 Resources.getMsg( 134 Resources.getMsg(
136 callMeta, 135 callMeta,
137 "facet.discharge_curves.mainvalues.w"))); 136 "facet.discharge_curves.mainvalues.w")));
138 } 137 }
138 super.setup(identifier, factory, context, callMeta, data, loadFacets);
139 } 139 }
140 140
141 141
142 /** 142 /**
143 * The MainValueArtifact can be set up with a document giving the 143 * The MainValueArtifact can be set up with a document giving the

http://dive4elements.wald.intevation.org