pass the vocService to the setCountry method
authorKatja Luther <k.luther@bgbm.org>
Tue, 19 Sep 2017 13:28:08 +0000 (15:28 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 19 Sep 2017 13:29:00 +0000 (15:29 +0200)
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/specimen/UnitsGatheringArea.java

index 24eaeaefcfe44b3a0585ffd90aeae62760e91021..3e34e0730fc7570eec26dd8dbb314a9370235005 100644 (file)
@@ -69,7 +69,7 @@ public class UnitsGatheringArea {
     public void setParams(String isoCountry, String country, ImportConfiguratorBase<?, ?> config, ITermService termService,
             IOccurrenceService occurrenceService, IVocabularyService vocService){
 
-        this.setCountry(isoCountry, country, config, termService, occurrenceService);
+        this.setCountry(isoCountry, country, config, termService, occurrenceService, vocService);
     }
 
     /*
@@ -255,7 +255,7 @@ public class UnitsGatheringArea {
      * @param app: the CDM application controller
      */
     public void setCountry(String iso, String fullName, ImportConfiguratorBase<?, ?> config, ITermService termService,
-            IOccurrenceService occurrenceService){
+            IOccurrenceService occurrenceService, IVocabularyService vocService){
 
 
         if (!StringUtils.isEmpty(iso)){
@@ -305,7 +305,7 @@ public class UnitsGatheringArea {
 
                 }
                 if (areaUUID == null){
-                    createNamedArea(config, termService, null, fullName, "country");
+                    createNamedArea(config, termService, vocService, fullName, "country");
                     NamedArea ar = NamedArea.NewInstance(fullName, fullName, null);
                     //FIXME add vocabulary
                     logger.warn("Vocabulary not yet set for new country");