Project

General

Profile

« Previous | Next » 

Revision 06b01c24

Added by Patrick Plitzner over 6 years ago

Add checklist taxa to related taxa

  • set name for "Gesamtliste"

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportClassification.java
24 24
import eu.etaxonomy.cdm.io.common.IPartitionedIO;
25 25
import eu.etaxonomy.cdm.io.common.ResultSetPartitioner;
26 26
import eu.etaxonomy.cdm.model.common.CdmBase;
27
import eu.etaxonomy.cdm.model.common.Language;
28
import eu.etaxonomy.cdm.model.common.LanguageString;
27 29
import eu.etaxonomy.cdm.model.taxon.Classification;
28 30
import eu.etaxonomy.cdm.model.taxon.Synonym;
29 31
import eu.etaxonomy.cdm.model.taxon.SynonymRelationship;
......
192 194
        } catch (SQLException e) {
193 195
            e.printStackTrace();
194 196
        }
195
        Map<String, TaxonBase> taxonMap = (Map<String, TaxonBase>) getCommonService().getSourcedObjectsByIdInSource(TaxonBase.class, idSet, RedListUtil.TAXON_GESAMTLISTE_NAMESPACE);
196
        result.put(RedListUtil.TAXON_GESAMTLISTE_NAMESPACE, taxonMap);
197
        Map<String, TaxonBase> taxonMapGesamtListe = (Map<String, TaxonBase>) getCommonService().getSourcedObjectsByIdInSource(TaxonBase.class, idSet, RedListUtil.TAXON_GESAMTLISTE_NAMESPACE);
198
        result.put(RedListUtil.TAXON_GESAMTLISTE_NAMESPACE, taxonMapGesamtListe);
199
        Map<String, TaxonBase> taxonMapCheckliste = (Map<String, TaxonBase>) getCommonService().getSourcedObjectsByIdInSource(TaxonBase.class, idSet, RedListUtil.TAXON_CHECKLISTE_NAMESPACE);
200
        result.put(RedListUtil.TAXON_CHECKLISTE_NAMESPACE, taxonMapCheckliste);
197 201
        return result;
198 202
    }
199 203

  
200 204
    private void makeClassification(RedListGefaesspflanzenImportState state) {
201 205
        //Gesamtliste
202 206
        Classification classification = Classification.NewInstance(state.getConfig().getClassificationName());
207
        classification.setName(LanguageString.NewInstance("Gesamtliste", Language.DEFAULT()));
203 208
        classification.setUuid(state.getConfig().getClassificationUuid());
204 209
        getClassificationService().save(classification);
205 210
        //checkliste

Also available in: Unified diff