Project

General

Profile

Download (1.5 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 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

    
11
package eu.etaxonomy.cdm.remote.controller;
12

    
13
import io.swagger.annotations.Api;
14

    
15
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

    
22
import eu.etaxonomy.cdm.api.service.IDescriptionService;
23
import eu.etaxonomy.cdm.api.service.ITermService;
24
import eu.etaxonomy.cdm.model.description.DescriptionBase;
25

    
26
/**
27
 * TODO write controller documentation
28
 *
29
 * @author a.kohlbecker
30
 * @date 24.03.2009
31
 */
32

    
33
@Controller
34
@Api("feature")
35
@RequestMapping(value = {"/feature"}) //FIXME refactor type mappings
36
public class FeatureListController extends IdentifiableListController<DescriptionBase, IDescriptionService>
37
{
38
    @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
}
(24-24/63)