Revision fd3018a2
Added by Katja Luther over 6 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ITaxonNodeService.java | ||
---|---|---|
118 | 118 |
* |
119 | 119 |
*/ |
120 | 120 |
public DeleteResult makeTaxonNodeASynonymOfAnotherTaxonNode(TaxonNode oldTaxonNode, TaxonNode newAcceptedTaxonNode, SynonymType synonymType, Reference citation, String citationMicroReference) ; |
121 |
|
|
122 |
/** |
|
123 |
* Changes the taxa associated with the given taxon nodes into synonyms of the new accepted taxon node. |
|
124 |
* All data associated with the former taxa are moved to the newly accepted taxon. |
|
125 |
* |
|
126 |
* @param oldTaxonNodes |
|
127 |
* @param newAcceptedTaxonNode |
|
128 |
* @param synonymType |
|
129 |
* @param citation |
|
130 |
* @param citationMicroReference |
|
131 |
* @return |
|
132 |
* |
|
133 |
*/ |
|
134 |
UpdateResult makeTaxonNodeSynonymsOfAnotherTaxonNode(Set<UUID> oldTaxonNodeUuids, UUID newAcceptedTaxonNodeUUIDs, |
|
135 |
SynonymType synonymType, Reference citation, String citationMicroReference); |
|
121 | 136 |
|
137 |
|
|
122 | 138 |
public UpdateResult makeTaxonNodeASynonymOfAnotherTaxonNode(UUID oldTaxonNodeUuid, |
123 | 139 |
UUID newAcceptedTaxonNodeUUID, |
124 | 140 |
SynonymType synonymType, |
... | ... | |
298 | 314 |
*/ |
299 | 315 |
UUID monitSetSecundum(SecundumForSubtreeConfigurator configurator); |
300 | 316 |
|
317 |
|
|
318 |
|
|
301 | 319 |
} |
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java | ||
---|---|---|
371 | 371 |
//oldTaxonNode.delete(); |
372 | 372 |
return result; |
373 | 373 |
} |
374 |
|
|
374 |
@Override |
|
375 |
@Transactional(readOnly = false) |
|
376 |
public UpdateResult makeTaxonNodeSynonymsOfAnotherTaxonNode( Set<UUID> oldTaxonNodeUuids, |
|
377 |
UUID newAcceptedTaxonNodeUUIDs, |
|
378 |
SynonymType synonymType, |
|
379 |
Reference citation, |
|
380 |
String citationMicroReference) { |
|
381 |
UpdateResult result = new UpdateResult(); |
|
382 |
for (UUID nodeUuid: oldTaxonNodeUuids) { |
|
383 |
result.includeResult(makeTaxonNodeASynonymOfAnotherTaxonNode(nodeUuid, newAcceptedTaxonNodeUUIDs, synonymType, citation, citationMicroReference)); |
|
384 |
} |
|
385 |
return result; |
|
386 |
} |
|
375 | 387 |
|
376 | 388 |
@Override |
377 | 389 |
@Transactional(readOnly = false) |
... | ... | |
889 | 901 |
return uuid; |
890 | 902 |
} |
891 | 903 |
|
904 |
|
|
905 |
|
|
892 | 906 |
|
893 | 907 |
|
894 | 908 |
|
Also available in: Unified diff
add possibility to move more than one taxon as synonym to another taxon