Project

General

Profile

Download (1.43 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 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 io.swagger.annotations.Api;
12

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

    
16
import org.springframework.beans.factory.annotation.Autowired;
17
import org.springframework.stereotype.Controller;
18
import org.springframework.web.bind.annotation.RequestMapping;
19

    
20
import eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService;
21
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
22

    
23
/**
24
 * @author a.kohlbecker
25
 * @date 24.03.2011
26
 *
27
 */
28
@Controller
29
@Api("polytomousKeyNode")
30
@RequestMapping(value = {"/polytomousKeyNode/{uuid}"})
31
public class PolytomousKeyNodeController extends BaseController<PolytomousKeyNode, IPolytomousKeyNodeService> {
32

    
33

    
34
    private static final List<String> NODE_INIT_STRATEGY = Arrays.asList(new String[]{
35
            "$",
36
            "question.label",
37
            "statement.label",
38
            "children.$"
39
    });
40

    
41
    public PolytomousKeyNodeController() {
42
        super();
43
        setInitializationStrategy(NODE_INIT_STRATEGY);
44
    }
45

    
46
    @Override
47
    @Autowired
48
    public void setService(IPolytomousKeyNodeService service) {
49
        this.service = service;
50
    }
51
}
(47-47/66)