Project

General

Profile

Download (1.44 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2009 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
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.springframework.beans.factory.annotation.Autowired;
18
import org.springframework.stereotype.Controller;
19
import org.springframework.web.bind.annotation.RequestMapping;
20

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

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

    
34

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

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

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