Project

General

Profile

Download (1.48 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.apache.log4j.Logger;
19
import org.springframework.beans.factory.annotation.Autowired;
20
import org.springframework.stereotype.Controller;
21
import org.springframework.web.bind.annotation.RequestMapping;
22

    
23
import eu.etaxonomy.cdm.api.service.IClassificationService;
24
import eu.etaxonomy.cdm.model.taxon.Classification;
25

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

    
36
    private static final Logger logger = Logger
37
            .getLogger(ClassificationListController.class);
38

    
39

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

    
44

    
45
    /* (non-Javadoc)
46
     * @see eu.etaxonomy.cdm.remote.controller.AbstractListController#setService(eu.etaxonomy.cdm.api.service.IService)
47
     */
48
    @Override
49
    @Autowired
50
    public void setService(IClassificationService service) {
51
        this.service = service;
52
    }
53

    
54
}
(10-10/63)