Project

General

Profile

Download (1.47 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2019 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.remote.controller;
10

    
11
import java.util.Arrays;
12
import java.util.List;
13

    
14
import org.springframework.stereotype.Controller;
15
import org.springframework.web.bind.annotation.RequestMapping;
16

    
17
import io.swagger.annotations.Api;
18

    
19
/**
20
 * @author a.kohlbecker
21
 * @since Jul 12, 2019
22
 *
23
 */
24
@Controller
25
@Api(value = "portal_typeDesignation")
26
@RequestMapping(value = {"/portal/typedesignation/{uuid}"})
27
public class TypeDesignationPortalController extends TypeDesignationController {
28

    
29
    public static final List<String> DEFAULT_INIT_STRATEGY = Arrays.asList(new String []{
30
            "typeName.$",
31
            "typeSpecimen",
32
            "typeStatus.representations",
33
            "typifiedNames.nomenclaturalReference.authorship.$",
34
            "typifiedNames.nomenclaturalReference.inReference.authorship.$",
35
            "typifiedNames.nomenclaturalReference.inReference.inReference.authorship.$",
36
            "citation.authorship.$",
37
            "typeSpecimen.media",
38
            "registrations.institution",
39
            "text",
40
            "sources.links.description",
41
            "sources.citation"
42
    });
43

    
44
    public TypeDesignationPortalController() {
45
        setInitializationStrategy(DEFAULT_INIT_STRATEGY);
46
    }
47

    
48

    
49
}
(72-72/75)