Project

General

Profile

Download (1.78 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
 * Copyright (C) 2009 EDIT 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
7
 * 1.1 See LICENSE.TXT at the top of this package for the full license terms.
8
 */
9

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

    
12
import io.swagger.annotations.Api;
13

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

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

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

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

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

    
47

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

    
54

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

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

    
65
}
(21-21/63)