Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/GaugeDischargeState.java @ 6693:88bb0c794833
issue1391: Enable GaugeDischarge artifact to directly load a table by its ID
This allows us to use the GaugeDischargeArtifact for any discharge
tables that we have in our database. The name of the created facet
is taken from the ids string as is also usual in the WMS artifacts.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 29 Jul 2013 12:19:57 +0200 |
parents | af13ceeba52a |
children | 4937dab5ff7a |
comparison
equal
deleted
inserted
replaced
6692:ce691d22cee3 | 6693:88bb0c794833 |
---|---|
54 * @param meta used for i18n. | 54 * @param meta used for i18n. |
55 * @return localized name for gaugedischargefacet. | 55 * @return localized name for gaugedischargefacet. |
56 */ | 56 */ |
57 protected String createFacetName(GaugeDischargeArtifact artifact, | 57 protected String createFacetName(GaugeDischargeArtifact artifact, |
58 CallMeta meta) { | 58 CallMeta meta) { |
59 | |
60 if (artifact.getFacetWishName() != null) { | |
61 /* We let the Artifact overwrite our name as this allows | |
62 * injecting the facet name from the Datacage */ | |
63 return artifact.getFacetWishName(); | |
64 } | |
59 | 65 |
60 Gauge gauge = artifact.getGauge(); | 66 Gauge gauge = artifact.getGauge(); |
61 Object[] args = new Object[] { | 67 Object[] args = new Object[] { |
62 gauge.getName(), | 68 gauge.getName(), |
63 gauge.getStation() | 69 gauge.getStation() |