changeset 9616:cedcee24a21a

Nachtrag Pos. 20: group added in infrastructure importer
author mschaefer
date Wed, 09 Oct 2019 19:25:55 +0200
parents ca492336570b
children 1d4262a68f1f
files backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/InfrastructureSeriesImport.java
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/InfrastructureSeriesImport.java	Wed Oct 09 19:17:46 2019 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/InfrastructureSeriesImport.java	Wed Oct 09 19:25:55 2019 +0200
@@ -35,6 +35,8 @@
 
     private ImportAnnotationType type;
 
+    private ImportAnnotationType group;
+
     private String provider;
 
     private String evaluation_by;
@@ -55,6 +57,10 @@
         this.type = type;
     }
 
+    public void setGroup(final ImportAnnotationType group) {
+        this.group = group;
+    }
+
     public void setProvider(final String provider) {
         this.provider = provider;
     }
@@ -83,6 +89,7 @@
 
     @Override
     public Infrastructure createSeriesItem(final River river) {
-        return new Infrastructure(river, this.filename, this.kmrange_info, this.notes, this.type.getPeer(), this.year, this.provider, this.evaluation_by);
+        return new Infrastructure(river, this.filename, this.kmrange_info, this.notes, this.type.getPeer(), this.group.getPeer(), this.year, this.provider,
+                this.evaluation_by);
     }
 }
\ No newline at end of file

http://dive4elements.wald.intevation.org