REST controllers for PolytomousKeys
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / PolytomousKeyNodeController.java
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 java.util.Arrays;
13 import java.util.List;
14
15 import org.springframework.beans.factory.annotation.Autowired;
16 import org.springframework.stereotype.Controller;
17 import org.springframework.web.bind.annotation.RequestMapping;
18
19 import eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService;
20 import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
21
22 /**
23 * @author a.kohlbecker
24 * @date 24.03.2011
25 *
26 */
27 @Controller
28 @RequestMapping(value = {"/polytomousKeyNode/{uuid}"})
29 public class PolytomousKeyNodeController extends BaseController<PolytomousKeyNode, IPolytomousKeyNodeService> {
30
31
32 private static final List<String> NODE_INIT_STRATEGY = Arrays.asList(new String[]{
33 "$",
34 "question.label",
35 "statement.label"
36 });
37
38 public PolytomousKeyNodeController() {
39 super();
40 setInitializationStrategy(NODE_INIT_STRATEGY);
41 }
42
43 @Autowired
44 public void setService(IPolytomousKeyNodeService service) {
45 this.service = service;
46 }
47 }