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 java.util.Arrays;
|
12
|
import java.util.List;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
import org.springframework.stereotype.Controller;
|
16
|
import org.springframework.web.bind.annotation.RequestMapping;
|
17
|
|
18
|
import io.swagger.annotations.Api;
|
19
|
|
20
|
/**
|
21
|
*
|
22
|
* @author a.kohlbecker
|
23
|
* @since 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
|
"sources.cdmSource.target",
|
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
|
}
|