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 java.util.Arrays;
|
13
|
import java.util.List;
|
14
|
|
15
|
import org.apache.log4j.Logger;
|
16
|
import org.springframework.beans.factory.annotation.Autowired;
|
17
|
import org.springframework.stereotype.Controller;
|
18
|
import org.springframework.web.bind.annotation.RequestMapping;
|
19
|
|
20
|
import eu.etaxonomy.cdm.api.service.IClassificationService;
|
21
|
import eu.etaxonomy.cdm.model.taxon.Classification;
|
22
|
import io.swagger.annotations.Api;
|
23
|
|
24
|
/**
|
25
|
* @author n.hoffmann
|
26
|
* @since Apr 8, 2010
|
27
|
*/
|
28
|
@Controller
|
29
|
@Api("classification")
|
30
|
@RequestMapping(value = {"/classification"})
|
31
|
public class ClassificationListController extends AbstractIdentifiableListController<Classification,IClassificationService> {
|
32
|
|
33
|
@SuppressWarnings("unused")
|
34
|
private static final Logger logger = Logger
|
35
|
.getLogger(ClassificationListController.class);
|
36
|
|
37
|
|
38
|
protected static final List<String> DEFAULT_INIT_STRATEGY = Arrays.asList(new String []{
|
39
|
"reference.authorship"
|
40
|
});
|
41
|
|
42
|
|
43
|
@Override
|
44
|
@Autowired
|
45
|
public void setService(IClassificationService service) {
|
46
|
this.service = service;
|
47
|
}
|
48
|
|
49
|
}
|