2 * Copyright (C) 2009 EDIT European Distributed Institute of Taxonomy
3 * http://www.e-taxonomy.eu
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 See LICENSE.TXT at the top of this package for the full license terms.
8 package eu
.etaxonomy
.cdm
.remote
.controller
;
10 import java
.util
.Arrays
;
11 import java
.util
.List
;
13 import org
.springframework
.stereotype
.Controller
;
14 import org
.springframework
.web
.bind
.annotation
.RequestMapping
;
16 import eu
.etaxonomy
.cdm
.persistence
.dao
.initializer
.EntityInitStrategy
;
17 import io
.swagger
.annotations
.Api
;
21 * @author a.kohlbecker
26 @RequestMapping(value
= {"/portal/taxon"})
27 public class TaxonPortalListController
extends TaxonListController
{
29 private static final EntityInitStrategy SIMPLE_TAXON_INIT_STRATEGY
= TaxonPortalController
.SIMPLE_TAXON_INIT_STRATEGY
.clone().extend(
32 "synonym.name.nomenclaturalSource.citation.authorship",
33 "synonym.name.nomenclaturalSource.citation.inReference.authorship",
34 "relationsFromThisTaxon.toTaxon.taxonNodes" // needed for misapplications, see Taxon.isMisapplicationOnly()
39 public TaxonPortalListController() {
41 setInitializationStrategy(SIMPLE_TAXON_INIT_STRATEGY
.getPropertyPaths());
45 protected List
<String
> getSimpleTaxonInitStrategy() {
46 return SIMPLE_TAXON_INIT_STRATEGY
.getPropertyPaths();