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