Mercurial > dive4elements > river
changeset 7620:22b9d2dfb4d2
Use IsOfficialAccess instead of direct property in WaterlevelExporter.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 29 Nov 2013 12:18:16 +0100 |
parents | c5f7c798a0a4 |
children | 00db0071388f |
files | artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java Fri Nov 29 12:17:22 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java Fri Nov 29 12:18:16 2013 +0100 @@ -46,6 +46,7 @@ import org.dive4elements.river.model.Gauge; import org.dive4elements.river.artifacts.access.FixRealizingAccess; +import org.dive4elements.river.artifacts.access.IsOfficialAccess; import org.dive4elements.river.artifacts.access.RangeAccess; import org.dive4elements.river.artifacts.FixationArtifact; import org.dive4elements.river.artifacts.D4EArtifact; @@ -167,8 +168,9 @@ for (Artifact art: collection.getArtifactsByName(STATICWQKMSNAME, context)) { if (art instanceof StaticWQKmsArtifact) { + IsOfficialAccess access = new IsOfficialAccess((D4EArtifact)art); StaticWQKmsArtifact sart = (StaticWQKmsArtifact) art; - if (!sart.isOfficial()) { + if (!access.isOfficial()) { continue; }