c365d5a1fa8ce6fc1a8f3cbbfcbb47e0576ba902
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / ClassificationListController.java
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.ITaxonTreeService;
22 import eu.etaxonomy.cdm.model.taxon.TaxonomicTree;
23
24 /**
25 * @author n.hoffmann
26 * @created Apr 8, 2010
27 * @version 1.0
28 */
29 @Controller
30 @RequestMapping(value = {"/classification"})
31 public class ClassificationListController extends BaseListController<TaxonomicTree,ITaxonTreeService> {
32
33 private static final Logger logger = Logger
34 .getLogger(ClassificationListController.class);
35
36
37 protected static final List<String> DEFAULT_INIT_STRATEGY = Arrays.asList(new String []{
38 "reference.authorTeam"
39 });
40
41
42 /* (non-Javadoc)
43 * @see eu.etaxonomy.cdm.remote.controller.AbstractListController#setService(eu.etaxonomy.cdm.api.service.IService)
44 */
45 @Override
46 @Autowired
47 public void setService(ITaxonTreeService service) {
48 this.service = service;
49 }
50
51 }