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.IOccurrenceService;
|
18
|
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
|
19
|
|
20
|
/**
|
21
|
* TODO write controller documentation
|
22
|
*
|
23
|
* @author a.kohlbecker
|
24
|
* @date 24.03.2009
|
25
|
*/
|
26
|
@Controller
|
27
|
@RequestMapping(value = {"/occurrence/*","/occurrence/*/annotation"})
|
28
|
public class OccurrenceController extends AnnotatableController<SpecimenOrObservationBase, IOccurrenceService>
|
29
|
{
|
30
|
|
31
|
public OccurrenceController(){
|
32
|
super();
|
33
|
setUuidParameterPattern("^/occurrence/([^/?#&\\.]+).*");
|
34
|
}
|
35
|
|
36
|
/* (non-Javadoc)
|
37
|
* @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
|
38
|
*/
|
39
|
@Autowired
|
40
|
@Override
|
41
|
public void setService(IOccurrenceService service) {
|
42
|
this.service = service;
|
43
|
}
|
44
|
|
45
|
}
|