Project

General

Profile

« Previous | Next » 

Revision 761eacaf

Added by Patrick Plitzner over 6 years ago

Set sec references for classifications

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportClassification.java
26 26
import eu.etaxonomy.cdm.model.common.CdmBase;
27 27
import eu.etaxonomy.cdm.model.common.Language;
28 28
import eu.etaxonomy.cdm.model.common.LanguageString;
29
import eu.etaxonomy.cdm.model.reference.Reference;
30
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
29 31
import eu.etaxonomy.cdm.model.taxon.Classification;
30 32
import eu.etaxonomy.cdm.model.taxon.Synonym;
31 33
import eu.etaxonomy.cdm.model.taxon.SynonymRelationship;
......
206 208
        Classification classification = Classification.NewInstance(state.getConfig().getClassificationName());
207 209
        classification.setName(LanguageString.NewInstance("Gesamtliste", Language.DEFAULT()));
208 210
        classification.setUuid(state.getConfig().getClassificationUuid());
211
        Reference gesamtListeReference = ReferenceFactory.newGeneric();
212
        gesamtListeReference.setUuid(RedListUtil.gesamtListeReferenceUuid);
213
        gesamtListeReference.setTitle("Gesamtliste");
214
        classification.setReference(gesamtListeReference);
209 215
        getClassificationService().save(classification);
210 216
        //checkliste
211 217
        Classification checklistClassification = Classification.NewInstance("Checkliste");
212 218
        checklistClassification.setUuid(RedListUtil.checkListClassificationUuid);
219
        Reference checklistReference = ReferenceFactory.newGeneric();
220
        checklistReference.setUuid(RedListUtil.checkListClassificationUuid);
221
        checklistReference.setTitle("Gesamtliste");
222
        checklistClassification.setReference(checklistReference);
213 223
        getClassificationService().save(checklistClassification);
214 224
    }
215 225

  
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListUtil.java
22 22

  
23 23
    public static final UUID checkListClassificationUuid = UUID.fromString("928a4695-c055-465e-99da-07322384b0b7");
24 24

  
25
    public static final UUID checkListReferenceUuid = UUID.fromString("e3abe234-ff23-4d85-9c1f-6769df965f33");
26
    public static final UUID gesamtListeReferenceUuid = UUID.fromString("ec0308de-2245-4e71-a362-4ee72290bf23");
27

  
28
//    public static final UUID checkListClassificationUuid = UUID.fromString("87d3d656-57bc-4b54-b338-80f9f2a37435");
29
//    public static final UUID checkListClassificationUuid = UUID.fromString("1bd21015-f542-4bf9-9e1f-ac0147e3a9f8");
30
//    public static final UUID checkListClassificationUuid = UUID.fromString("c6120524-f21b-4426-92db-52add2286831");
31
//    public static final UUID checkListClassificationUuid = UUID.fromString("b48ca7a0-a641-4fd1-ad51-238a9b57a470");
32
//    public static final UUID checkListClassificationUuid = UUID.fromString("a8743caa-56d5-4636-9ce6-4ef272d769d2");
33
//    public static final UUID checkListClassificationUuid = UUID.fromString("870d2e18-cd1b-4aa1-a360-ba5e0a5905aa");
34
//    public static final UUID checkListClassificationUuid = UUID.fromString("e19bb2e6-d898-4793-8cd4-d866eeb1f872");
35
//    public static final UUID checkListClassificationUuid = UUID.fromString("53e81162-5c2d-425b-bbe6-6e8d12e85790");
36

  
37

  
38

  
39

  
40

  
41

  
42

  
43

  
44

  
45

  
46

  
25 47
    public static final String NAME_NAMESPACE = "name";
26 48
    public static final String TAXON_GESAMTLISTE_NAMESPACE = "taxon_gesamt_liste";
27 49
    public static final String TAXON_CHECKLISTE_NAMESPACE = "taxon_checkliste";

Also available in: Unified diff