2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.remote
.controller
;
12 import io
.swagger
.annotations
.Api
;
14 import java
.util
.Arrays
;
15 import java
.util
.List
;
17 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
18 import org
.springframework
.stereotype
.Controller
;
19 import org
.springframework
.web
.bind
.annotation
.RequestMapping
;
21 import eu
.etaxonomy
.cdm
.api
.service
.IDescriptionService
;
22 import eu
.etaxonomy
.cdm
.api
.service
.ITermService
;
23 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionBase
;
26 * TODO write controller documentation
28 * @author a.kohlbecker
34 @RequestMapping(value
= {"/feature"}) //FIXME refactor type mappings
35 public class FeatureListController
extends AbstractIdentifiableListController
<DescriptionBase
, IDescriptionService
>
38 private ITermService termService
;
40 private static final List
<String
> FEATURE_INIT_STRATEGY
= Arrays
.asList(new String
[]{"representations"});
43 * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
47 public void setService(IDescriptionService service
) {
48 this.service
= service
;