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
.springframework
.beans
.factory
.annotation
.Autowired
;
14 import org
.springframework
.stereotype
.Controller
;
15 import org
.springframework
.web
.bind
.annotation
.RequestMapping
;
17 import eu
.etaxonomy
.cdm
.api
.service
.AnnotatableServiceBase
;
18 import eu
.etaxonomy
.cdm
.api
.service
.IAgentService
;
19 import eu
.etaxonomy
.cdm
.model
.agent
.AgentBase
;
20 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.IAnnotatableDao
;
23 * @author a.kohlbecker
28 @RequestMapping(value
= {"/*/agent/*","/*/agent/*/annotation"})
29 public class AgentController
extends AnnotatableController
<AgentBase
, IAgentService
>
32 public AgentController(){
34 setUuidParameterPattern("^/(?:[^/]+)/agent/([^/?#&\\.]+).*");
38 * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
42 public void setService(IAgentService service
) {
43 this.service
= service
;