3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.cdm
.remote
.controller
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
15 import org
.springframework
.stereotype
.Controller
;
16 import org
.springframework
.web
.bind
.annotation
.RequestMapping
;
18 import eu
.etaxonomy
.cdm
.api
.service
.AnnotatableServiceBase
;
19 import eu
.etaxonomy
.cdm
.api
.service
.ITaxonService
;
20 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
21 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.IAnnotatableDao
;
24 * @author a.kohlbecker
29 @RequestMapping(value
= {"/*/taxon/*","/*/taxon/*/annotation"})
30 public class TaxonController
extends AnnotatableController
<TaxonBase
, ITaxonService
>
32 public static final Logger logger
= Logger
.getLogger(TaxonController
.class);
34 public TaxonController(){
36 setUuidParameterPattern("^/(?:[^/]+)/taxon/([^/?#&\\.]+).*");
40 * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
44 public void setService(ITaxonService service
) {
45 this.service
= service
;