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 io.swagger.annotations.Api;
|
13
|
|
14
|
import org.springframework.beans.factory.annotation.Autowired;
|
15
|
import org.springframework.stereotype.Controller;
|
16
|
import org.springframework.web.bind.annotation.RequestMapping;
|
17
|
|
18
|
import eu.etaxonomy.cdm.api.service.ITermService;
|
19
|
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
20
|
|
21
|
/**
|
22
|
* TODO write controller documentation
|
23
|
*
|
24
|
* @author a.kohlbecker
|
25
|
* @date 23.06.2009
|
26
|
*
|
27
|
*/
|
28
|
@Controller
|
29
|
@Api("term")
|
30
|
@RequestMapping(value = {"/term"})
|
31
|
public class TermListController extends IdentifiableListController<DefinedTermBase, ITermService> {
|
32
|
|
33
|
|
34
|
/* (non-Javadoc)
|
35
|
* @see eu.etaxonomy.cdm.remote.controller.AbstractListController#setService(eu.etaxonomy.cdm.api.service.IService)
|
36
|
*/
|
37
|
@Autowired
|
38
|
@Override
|
39
|
public void setService(ITermService service) {
|
40
|
this.service = service;
|
41
|
}
|
42
|
|
43
|
}
|