[PATCH 5 of 9] Use IsOfficialAccess instead of direct property in WaterlevelExporter

Wald Commits scm-commit at wald.intevation.org
Mon Dec 2 10:14:54 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1385723896 -3600
# Node ID 22b9d2dfb4d2d57ebd4b20f9f2ea2c1947c9bf44
# Parent  c5f7c798a0a45424b04919025632b5000fabb7d0
Use IsOfficialAccess instead of direct property in WaterlevelExporter.

diff -r c5f7c798a0a4 -r 22b9d2dfb4d2 artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java
--- 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;
                 }
 


More information about the Dive4elements-commits mailing list