Revision f60aaf9c
Added by Katja Luther over 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java | ||
---|---|---|
813 | 813 |
@Override |
814 | 814 |
@Transactional |
815 | 815 |
public UpdateResult createNewTaxonNode(UUID parentNodeUuid, CreateTaxonDTO taxonDto, |
816 |
UUID refUuid, String microref,
|
|
816 |
DescriptionElementSource source, String microref,
|
|
817 | 817 |
TaxonNodeStatus status, Map<Language,LanguageString> statusNote){ |
818 | 818 |
|
819 | 819 |
UpdateResult result = new UpdateResult(); |
... | ... | |
849 | 849 |
TaxonNode parent = dao.load(parentNodeUuid); |
850 | 850 |
TaxonNode child = null; |
851 | 851 |
Reference ref = null; |
852 |
if (refUuid != null){
|
|
853 |
ref = referenceService.load(refUuid);
|
|
852 |
if (source != null){
|
|
853 |
ref = referenceService.load(source.getCitation().getUuid());
|
|
854 | 854 |
} |
855 | 855 |
|
856 | 856 |
try{ |
857 |
child = parent.addChildTaxon(newTaxon, ref, microref);
|
|
857 |
child = parent.addChildTaxon(newTaxon, source);
|
|
858 | 858 |
child.setStatus(status); |
859 |
|
|
859 | 860 |
if (statusNote != null){ |
860 | 861 |
child.getStatusNote().putAll(statusNote); |
861 | 862 |
} |
Also available in: Unified diff
ref #9116: adapt taxonnode methods to source instead of reference