Project

General

Profile

Download (1.5 KB) Statistics
| Branch: | Tag: | Revision:
1 ab380ac6 Andreas Kohlbecker
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4 fcb2c8b8 Andreas Kohlbecker
* European Distributed Institute of Taxonomy
5 ab380ac6 Andreas Kohlbecker
* http://www.e-taxonomy.eu
6 fcb2c8b8 Andreas Kohlbecker
*
7 ab380ac6 Andreas Kohlbecker
* 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
11
package eu.etaxonomy.cdm.remote.controller;
12
13 e6a83c5b Andreas Kohlbecker
import io.swagger.annotations.Api;
14
15 ab380ac6 Andreas Kohlbecker
import java.util.Arrays;
16
import java.util.List;
17
18
import org.springframework.beans.factory.annotation.Autowired;
19
import org.springframework.stereotype.Controller;
20
import org.springframework.web.bind.annotation.RequestMapping;
21 fcb2c8b8 Andreas Kohlbecker
22 ab380ac6 Andreas Kohlbecker
import eu.etaxonomy.cdm.api.service.IDescriptionService;
23 909ea479 ben.clark
import eu.etaxonomy.cdm.api.service.ITermService;
24 ab380ac6 Andreas Kohlbecker
import eu.etaxonomy.cdm.model.description.DescriptionBase;
25
26
/**
27 55779705 Andreas Kohlbecker
 * TODO write controller documentation
28 fcb2c8b8 Andreas Kohlbecker
 *
29 ab380ac6 Andreas Kohlbecker
 * @author a.kohlbecker
30
 * @date 24.03.2009
31
 */
32
33
@Controller
34 fcb2c8b8 Andreas Kohlbecker
@Api("feature")
35 a52d4b97 Andreas Kohlbecker
@RequestMapping(value = {"/feature"}) //FIXME refactor type mappings
36 d9f1f8e5 Andreas Kohlbecker
public class FeatureListController extends IdentifiableListController<DescriptionBase, IDescriptionService>
37 ab380ac6 Andreas Kohlbecker
{
38 fcb2c8b8 Andreas Kohlbecker
    @Autowired
39
    private ITermService termService;
40
41
    private static final List<String> FEATURE_INIT_STRATEGY = Arrays.asList(new String[]{"representations"});
42
43
    /* (non-Javadoc)
44
     * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
45
     */
46
    @Autowired
47
    @Override
48
    public void setService(IDescriptionService service) {
49
        this.service = service;
50
    }
51
52 ab380ac6 Andreas Kohlbecker
}