cleanup
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / TaxonPortalListController.java
1 package eu.etaxonomy.cdm.remote.controller;
2
3 import java.util.Arrays;
4 import java.util.List;
5
6 import org.springframework.stereotype.Controller;
7 import org.springframework.web.bind.annotation.RequestMapping;
8
9 import io.swagger.annotations.Api;
10
11 /**
12 * Copyright (C) 2009 EDIT European Distributed Institute of Taxonomy
13 * http://www.e-taxonomy.eu
14 *
15 * The contents of this file are subject to the Mozilla Public License Version
16 * 1.1 See LICENSE.TXT at the top of this package for the full license terms.
17 */
18
19 /**
20 *
21 * @author a.kohlbecker
22 * @since 26.08.2014
23 */
24 @Controller
25 @Api("portal_taxon")
26 @RequestMapping(value = {"/portal/taxon"})
27 public class TaxonPortalListController extends TaxonListController {
28
29 private static final List<String> SIMPLE_TAXON_INIT_STRATEGY = Arrays.asList(new String []{
30 "$",
31 "name.$",
32 "name.rank.representations",
33 "name.status.type.representations",
34 "name.nomenclaturalReference.authorship",
35 "name.nomenclaturalReference.inReference.authorship",
36 "taxonNodes.classification",
37 "synonym.name.nomenclaturalReference.authorship",
38 "synonym.name.nomenclaturalReference.inReference.authorship",
39 });
40
41 public TaxonPortalListController() {
42 super();
43 setInitializationStrategy(SIMPLE_TAXON_INIT_STRATEGY);
44 }
45
46 @Override
47 protected List<String> getSimpleTaxonInitStrategy() {
48 return SIMPLE_TAXON_INIT_STRATEGY;
49 }
50
51
52
53 }