large number of changes relating to new architecture & svn keyword property Id added
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / DescriptionController.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 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
11 package eu.etaxonomy.cdm.remote.controller;
12
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.IDescriptionService;
18 import eu.etaxonomy.cdm.model.description.DescriptionBase;
19
20 /**
21 * @author a.kohlbecker
22 * @date 24.03.2009
23 */
24
25 @Controller
26 @RequestMapping(value = {"/*/description/*","/*/description/annotation/*"})
27 public class DescriptionController extends AnnotatableController<DescriptionBase, IDescriptionService>
28 {
29
30 public DescriptionController(){
31 super();
32 setUuidParameterPattern("^/(?:[^/]+)/description/([^/?#&\\.]+).*");
33 }
34
35 /* (non-Javadoc)
36 * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
37 */
38 @Autowired
39 @Override
40 public void setService(IDescriptionService service) {
41 this.service = service;
42 }
43
44 }