Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java @ 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 | edb323a4c286 |
children | 11bc2d6a2059 |
comparison
equal
deleted
inserted
replaced
7619:c5f7c798a0a4 | 7620:22b9d2dfb4d2 |
---|---|
44 import org.dive4elements.artifacts.common.utils.Config; | 44 import org.dive4elements.artifacts.common.utils.Config; |
45 | 45 |
46 import org.dive4elements.river.model.Gauge; | 46 import org.dive4elements.river.model.Gauge; |
47 | 47 |
48 import org.dive4elements.river.artifacts.access.FixRealizingAccess; | 48 import org.dive4elements.river.artifacts.access.FixRealizingAccess; |
49 import org.dive4elements.river.artifacts.access.IsOfficialAccess; | |
49 import org.dive4elements.river.artifacts.access.RangeAccess; | 50 import org.dive4elements.river.artifacts.access.RangeAccess; |
50 import org.dive4elements.river.artifacts.FixationArtifact; | 51 import org.dive4elements.river.artifacts.FixationArtifact; |
51 import org.dive4elements.river.artifacts.D4EArtifact; | 52 import org.dive4elements.river.artifacts.D4EArtifact; |
52 import org.dive4elements.river.artifacts.WINFOArtifact; | 53 import org.dive4elements.river.artifacts.WINFOArtifact; |
53 import org.dive4elements.river.artifacts.StaticWQKmsArtifact; | 54 import org.dive4elements.river.artifacts.StaticWQKmsArtifact; |
165 | 166 |
166 officalFixings = new ArrayList<WQKms>(); | 167 officalFixings = new ArrayList<WQKms>(); |
167 | 168 |
168 for (Artifact art: collection.getArtifactsByName(STATICWQKMSNAME, context)) { | 169 for (Artifact art: collection.getArtifactsByName(STATICWQKMSNAME, context)) { |
169 if (art instanceof StaticWQKmsArtifact) { | 170 if (art instanceof StaticWQKmsArtifact) { |
171 IsOfficialAccess access = new IsOfficialAccess((D4EArtifact)art); | |
170 StaticWQKmsArtifact sart = (StaticWQKmsArtifact) art; | 172 StaticWQKmsArtifact sart = (StaticWQKmsArtifact) art; |
171 if (!sart.isOfficial()) { | 173 if (!access.isOfficial()) { |
172 continue; | 174 continue; |
173 } | 175 } |
174 | 176 |
175 /* Check that we add the data only once */ | 177 /* Check that we add the data only once */ |
176 WQKms toAdd = sart.getWQKms(); | 178 WQKms toAdd = sart.getWQKms(); |