Project

General

Profile

Download (1.35 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 java.util.Arrays;
14
import java.util.List;
15

    
16
import org.apache.log4j.Logger;
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.IClassificationService;
22
import eu.etaxonomy.cdm.model.taxon.Classification;
23
import io.swagger.annotations.Api;
24

    
25
/**
26
 * @author n.hoffmann
27
 * @created Apr 8, 2010
28
 */
29
@Controller
30
@Api("classification")
31
@RequestMapping(value = {"/classification"})
32
public class ClassificationListController extends IdentifiableListController<Classification,IClassificationService> {
33

    
34
    @SuppressWarnings("unused")
35
    private static final Logger logger = Logger
36
            .getLogger(ClassificationListController.class);
37

    
38

    
39
    protected static final List<String> DEFAULT_INIT_STRATEGY = Arrays.asList(new String []{
40
            "reference.authorship"
41
    });
42

    
43

    
44
    @Override
45
    @Autowired
46
    public void setService(IClassificationService service) {
47
        this.service = service;
48
    }
49

    
50
}
(10-10/63)