Revision fd992c0d
Added by Niels Hoffmann about 13 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ITaxonService.java | ||
---|---|---|
131 | 131 |
*/ |
132 | 132 |
public List<TaxonBase> searchTaxaByName(String name, Reference sec); |
133 | 133 |
|
134 |
/** |
|
135 |
* Changes an accepted taxon to a synonym of another taxon. |
|
136 |
* |
|
137 |
* @param oldTaxonNode |
|
138 |
* the <code>TaxonNode</code> of the accepted taxon that will be changed into a synonym |
|
139 |
* @param newAcceptedTaxonNode |
|
140 |
* the <code>TaxonNode</code> of the accepted taxon, the old taxon will become a synonym of |
|
141 |
* @param synonymType |
|
142 |
* <code>SynonymRelationshipType</code> to indicate whether hetero or homotypic |
|
143 |
* @param citation |
|
144 |
* the reference for this assumption |
|
145 |
* @param citationMicroReference |
|
146 |
* the micro citation |
|
147 |
* @return |
|
148 |
* the newly created synonym |
|
149 |
*/ |
|
150 |
public Synonym changeAcceptedTaxonToSynonym (TaxonNode oldTaxonNode, TaxonNode newAcceptedTaxonNode, SynonymRelationshipType synonymType, Reference citation, String citationMicroReference); |
|
151 |
|
|
152 | 134 |
/** |
153 | 135 |
* Swaps given synonym and accepted taxon. |
154 | 136 |
* In particular: |
... | ... | |
187 | 169 |
* the taxon the newly created concept should be related to |
188 | 170 |
* @param taxonRelationshipType |
189 | 171 |
* the type of relationship |
190 |
* @param citation
|
|
191 |
* @param microcitation
|
|
172 |
* @param reference
|
|
173 |
* @param microReference
|
|
192 | 174 |
* @return |
193 | 175 |
* the newly created concept |
194 | 176 |
*/ |
195 |
public Taxon changeSynonymToRelatedTaxon(Synonym synonym, Taxon toTaxon, TaxonRelationshipType taxonRelationshipType, Reference citation, String microcitation);
|
|
177 |
public Taxon changeSynonymToRelatedTaxon(Synonym synonym, Taxon toTaxon, TaxonRelationshipType taxonRelationshipType, Reference reference, String microReference);
|
|
196 | 178 |
|
197 | 179 |
|
198 | 180 |
/** |
Also available in: Unified diff
Refactoring of taxon business logic methods and started to write tests for these methods. The tests are far from finished.