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_descriptionElement")
|
29
|
@RequestMapping(value = {"/portal/descriptionElement"})
|
30
|
public class DescriptionElementListPortalController extends DescriptionElementListController {
|
31
|
|
32
|
public static final Logger logger = Logger.getLogger(DescriptionElementListPortalController.class);
|
33
|
|
34
|
|
35
|
protected static final List<String> DESCRIPTION_ELEMENT_INIT_STRATEGY = Arrays.asList(new String []{
|
36
|
"$",
|
37
|
"annotations",
|
38
|
"markers",
|
39
|
"stateData.$",
|
40
|
"statisticalValues.*",
|
41
|
"sources.citation.authorship",
|
42
|
"sources.nameUsedInSource",
|
43
|
"multilanguageText",
|
44
|
"media",
|
45
|
"name.$",
|
46
|
"name.rank.representations",
|
47
|
"name.status.type.representations",
|
48
|
"taxon2.name"
|
49
|
});
|
50
|
|
51
|
/**
|
52
|
* @return
|
53
|
*/
|
54
|
@Override
|
55
|
protected List<String> getInitializationStrategy() {
|
56
|
return DESCRIPTION_ELEMENT_INIT_STRATEGY;
|
57
|
}
|
58
|
|
59
|
}
|