Project

General

Profile

Download (1.26 KB) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.cdm.remote.controller;
2

    
3
import io.swagger.annotations.Api;
4

    
5
import java.util.Arrays;
6
import java.util.List;
7

    
8
import org.springframework.stereotype.Controller;
9
import org.springframework.web.bind.annotation.RequestMapping;
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
 * @date 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
            // the name
32
            "name.$",
33
            "name.rank.representations",
34
            "name.status.type.representations",
35
            "name.nomenclaturalReference.authorship",
36
            "name.nomenclaturalReference.inReference",
37
            "taxonNodes.classification",
38
            });
39

    
40
    @Override
41
    protected List<String> getSimpleTaxonInitStrategy() {
42
        // TODO Auto-generated method stub
43
        return SIMPLE_TAXON_INIT_STRATEGY;
44
    }
45

    
46
}
(58-58/62)