Revision fad62c08
Added by Andreas Müller over 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/cuba/CubaExcelImport.java | ||
---|---|---|
86 | 86 |
|
87 | 87 |
|
88 | 88 |
private static UUID rootUuid = UUID.fromString("206d42e4-ac32-4f20-a093-14826014e667"); |
89 |
private static UUID plantaeUuid = UUID.fromString("139e7314-dd19-4286-a01d-8cc94ef77a09");
|
|
89 |
private static UUID spermatophytaUuid = UUID.fromString("139e7314-dd19-4286-a01d-8cc94ef77a09");
|
|
90 | 90 |
|
91 | 91 |
private static INonViralNameParser<?> nameParser = NonViralNameParserImpl.NewInstance(); |
92 | 92 |
private static NomenclaturalCode nc = NomenclaturalCode.ICNAFP; |
... | ... | |
1323 | 1323 |
} |
1324 | 1324 |
TaxonNode rootNode = state.getRootNode(); |
1325 | 1325 |
if (rootNode == null){ |
1326 |
rootNode = getTaxonNodeService().find(plantaeUuid);
|
|
1326 |
rootNode = getTaxonNodeService().find(spermatophytaUuid);
|
|
1327 | 1327 |
} |
1328 | 1328 |
if (rootNode == null){ |
1329 | 1329 |
Reference sec = getSecReference(state); |
... | ... | |
1337 | 1337 |
classification.getRootNode().setUuid(rootUuid); |
1338 | 1338 |
} |
1339 | 1339 |
|
1340 |
IBotanicalName plantaeName = TaxonNameFactory.NewBotanicalInstance(Rank.KINGDOM());
|
|
1341 |
plantaeName.setGenusOrUninomial("Plantae");
|
|
1342 |
Taxon plantae = Taxon.NewInstance(plantaeName, sec);
|
|
1343 |
TaxonNode plantaeNode = classification.addChildTaxon(plantae, null, null);
|
|
1344 |
plantaeNode.setUuid(plantaeUuid);
|
|
1345 |
state.setRootNode(plantaeNode);
|
|
1340 |
IBotanicalName spermatophytaName = TaxonNameFactory.NewBotanicalInstance(Rank.DIVISION());
|
|
1341 |
spermatophytaName.setGenusOrUninomial("Spermatophyta");
|
|
1342 |
Taxon spermatophyta = Taxon.NewInstance(spermatophytaName, sec);
|
|
1343 |
TaxonNode spermatophytaNode = classification.addChildTaxon(spermatophyta, null, null);
|
|
1344 |
spermatophytaNode.setUuid(spermatophytaUuid);
|
|
1345 |
state.setRootNode(spermatophytaNode);
|
|
1346 | 1346 |
getClassificationService().save(classification); |
1347 | 1347 |
|
1348 |
rootNode = plantaeNode;
|
|
1348 |
rootNode = spermatophytaNode;
|
|
1349 | 1349 |
} |
1350 | 1350 |
return rootNode; |
1351 | 1351 |
} |
Also available in: Unified diff
#7216 use spermatophyta instead of plantae in Cuba import