Revision e1f5fda9
Added by Andreas Müller over 7 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/ClassificationController.java | ||
---|---|---|
31 | 31 |
import eu.etaxonomy.cdm.api.service.ITermService; |
32 | 32 |
import eu.etaxonomy.cdm.api.service.NodeSortMode; |
33 | 33 |
import eu.etaxonomy.cdm.api.service.dto.GroupedTaxonDTO; |
34 |
import eu.etaxonomy.cdm.api.service.dto.TaxonInContextDTO; |
|
34 | 35 |
import eu.etaxonomy.cdm.api.service.pager.Pager; |
35 | 36 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase; |
36 | 37 |
import eu.etaxonomy.cdm.model.name.Rank; |
... | ... | |
219 | 220 |
} |
220 | 221 |
return rank; |
221 | 222 |
} |
223 |
|
|
224 |
|
|
225 |
@RequestMapping( |
|
226 |
value = {"taxonInContext"}, |
|
227 |
method = RequestMethod.GET) |
|
228 |
public TaxonInContextDTO getTaxonInContext( |
|
229 |
@PathVariable("uuid") UUID classificationUuid, |
|
230 |
@PathVariable("taxonUuid") UUID taxonUuid, |
|
231 |
@RequestParam(value = "doChildren", defaultValue = "false") Boolean doChildren, |
|
232 |
@RequestParam(value = "doSynonyms", defaultValue = "false") Boolean doSynonyms, |
|
233 |
@RequestParam(value = "sortMode", defaultValue="AlphabeticalOrder") NodeSortMode sortMode, |
|
234 |
@RequestParam(value = "ancestorMarker", required = false) List<UUID> ancestorMarkers, |
|
235 |
HttpServletResponse response |
|
236 |
) throws IOException { |
|
237 |
|
|
238 |
TaxonInContextDTO taxonInContextDTO = service.getTaxonInContext(classificationUuid, taxonUuid, doChildren, doSynonyms, ancestorMarkers, sortMode) ; |
|
239 |
|
|
240 |
return taxonInContextDTO; |
|
241 |
} |
|
242 |
|
|
243 |
|
|
222 | 244 |
} |
Also available in: Unified diff
ref #6065 first implementation of taxonInContext service