// $Id$\r
/**\r
* Copyright (C) 2009 EDIT\r
-* European Distributed Institute of Taxonomy \r
+* European Distributed Institute of Taxonomy\r
* http://www.e-taxonomy.eu\r
-* \r
+*\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
*/\r
package eu.etaxonomy.cdm.remote.controller;\r
\r
+import org.apache.log4j.Logger;\r
import org.springframework.beans.factory.annotation.Autowired;\r
import org.springframework.stereotype.Controller;\r
import org.springframework.web.bind.annotation.RequestMapping;\r
\r
+import com.wordnik.swagger.annotations.Api;\r
+\r
+import eu.etaxonomy.cdm.api.service.ITaxonService;\r
import eu.etaxonomy.cdm.api.service.IVocabularyService;\r
import eu.etaxonomy.cdm.model.common.TermVocabulary;\r
+import eu.etaxonomy.cdm.model.taxon.TaxonBase;\r
\r
/**\r
* @author a.kohlbecker\r
*\r
*/\r
@Controller\r
-@RequestMapping(value = {"/termvocabulary/"})\r
-public class VocabularyListController extends BaseListController<TermVocabulary, IVocabularyService> {\r
-\r
- /* (non-Javadoc)\r
- * @see eu.etaxonomy.cdm.remote.controller.AbstractListController#setService(eu.etaxonomy.cdm.api.service.IService)\r
- */\r
- @Autowired\r
- @Override\r
- public void setService(IVocabularyService service) {\r
- this.service = service;\r
- }\r
+@Api("termVocabulary")\r
+@RequestMapping(value = {"/termVocabulary"})\r
+public class VocabularyListController extends IdentifiableListController<TermVocabulary, IVocabularyService> {\r
+\r
+ public static final Logger logger = Logger.getLogger(VocabularyListController.class);\r
+\r
+ /* (non-Javadoc)\r
+ * @see eu.etaxonomy.cdm.remote.controller.AbstractListController#setService(eu.etaxonomy.cdm.api.service.IService)\r
+ */\r
+ @Autowired\r
+ @Override\r
+ public void setService(IVocabularyService service) {\r
+ this.service = service;\r
+ }\r
\r
\r
}\r