Project

General

Profile

Download (1.78 KB) Statistics
| Branch: | Tag: | Revision:
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

    
9
package eu.etaxonomy.cdm.remote.controller;
10

    
11
import io.swagger.annotations.Api;
12

    
13
import java.util.Arrays;
14
import java.util.List;
15

    
16
import org.apache.log4j.Logger;
17
import org.springframework.stereotype.Controller;
18
import org.springframework.web.bind.annotation.RequestMapping;
19

    
20
/**
21
 *
22
 * @author a.kohlbecker
23
 * @date Jun 25, 2013
24
 *
25
 */
26
@Controller
27
@Api("portal_description")
28
@RequestMapping(value = {"/portal/description"})
29
public class DescriptionListPortalController extends DescriptionListController {
30

    
31
   public static final Logger logger = Logger.getLogger(DescriptionListPortalController.class);
32

    
33
    protected static final List<String> DESCRIPTION_INIT_STRATEGY = Arrays.asList(new String []{
34
            "$",
35
            "elements.$",
36
            "elements.annotations",
37
            "elements.markers",
38
            "elements.stateData.$",
39
            "elements.sources.citation.authorship",
40
            "elements.sources.nameUsedInSource",
41
            "elements.multilanguageText",
42
            "elements.media",
43
            "elements.kindOfUnit"
44
    });
45

    
46

    
47
    protected static final List<String> DISTRIBUTION_INFO_INIT_STRATEGY = Arrays.asList(new String []{
48
            "sources.citation.authorship.$",
49
            "sources.nameUsedInSource",
50
            "annotations"
51
    });
52

    
53

    
54
    public DescriptionListPortalController() {
55
        super();
56
        setInitializationStrategy(DESCRIPTION_INIT_STRATEGY);
57
    }
58

    
59
    @Override
60
    protected List<String> getDescriptionInfoInitStrategy(){
61
        return DISTRIBUTION_INFO_INIT_STRATEGY;
62
    }
63

    
64
}
(23-23/66)