fix #6373 fixing MediaAutoInitializer
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / FeatureListController.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
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.IDescriptionService;
22 import eu.etaxonomy.cdm.api.service.ITermService;
23 import eu.etaxonomy.cdm.model.description.DescriptionBase;
24
25 /**
26 * TODO write controller documentation
27 *
28 * @author a.kohlbecker
29 * @date 24.03.2009
30 */
31
32 @Controller
33 @Api("feature")
34 @RequestMapping(value = {"/feature"}) //FIXME refactor type mappings
35 public class FeatureListController extends AbstractIdentifiableListController<DescriptionBase, IDescriptionService>
36 {
37 @Autowired
38 private ITermService termService;
39
40 private static final List<String> FEATURE_INIT_STRATEGY = Arrays.asList(new String[]{"representations"});
41
42 /* (non-Javadoc)
43 * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
44 */
45 @Autowired
46 @Override
47 public void setService(IDescriptionService service) {
48 this.service = service;
49 }
50
51 }