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 java
.io
.IOException
;
14 import java
.util
.List
;
16 import javax
.servlet
.http
.HttpServletRequest
;
17 import javax
.servlet
.http
.HttpServletResponse
;
19 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
20 import org
.springframework
.stereotype
.Controller
;
21 import org
.springframework
.web
.bind
.annotation
.RequestMapping
;
22 import org
.springframework
.web
.bind
.annotation
.RequestMethod
;
24 import eu
.etaxonomy
.cdm
.api
.service
.AnnotatableServiceBase
;
25 import eu
.etaxonomy
.cdm
.api
.service
.IDescriptionService
;
26 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionBase
;
27 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
28 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.IAnnotatableDao
;
31 * @author a.kohlbecker
36 @RequestMapping(value
= {"/*/description/*","/*/description/annotation/*"})
37 public class DescriptionController
extends AnnotatableController
<DescriptionBase
, IDescriptionService
>
40 public DescriptionController(){
42 setUuidParameterPattern("^/(?:[^/]+)/description/([^/?#&\\.]+).*");
46 * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
50 public void setService(IDescriptionService service
) {
51 this.service
= service
;