refactoring taxon controllers, reducing code duplication
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / VocabularyController.java
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 org.apache.log4j.Logger;
13 import org.springframework.beans.factory.annotation.Autowired;
14 import org.springframework.stereotype.Controller;
15 import org.springframework.web.bind.annotation.RequestMapping;
16
17 import eu.etaxonomy.cdm.api.service.IVocabularyService;
18 import eu.etaxonomy.cdm.model.common.TermVocabulary;
19
20 /**
21 * @author a.kohlbecker
22 * @date 22.07.2010
23 *
24 */
25 @Controller
26 @RequestMapping(value = {"/termVocabulary/{uuid}"})
27 public class VocabularyController extends BaseController<TermVocabulary, IVocabularyService> {
28
29 public static final Logger logger = Logger.getLogger(VocabularyController.class);
30
31 /* (non-Javadoc)
32 * @see eu.etaxonomy.cdm.remote.controller.BaseController#setService(eu.etaxonomy.cdm.api.service.IService)
33 */
34 @Autowired
35 @Override
36 public void setService(IVocabularyService service) {
37 this.service = service;
38 }
39
40 }