Project

General

Profile

Download (1.58 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
            "typeSpecimen.media",
37
            "registrations.institution",
38
            "text",
39
            "designationSource.citation.authorship.$",
40
            "designationSource.links.description",
41
            "sources.links.description", // other sources
42
            "sources.citation.authorship.$" // other sources
43
    });
44

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

    
49

    
50
}
(73-73/76)