Class SpeciesController
- java.lang.Object
-
- org.openforis.collect.web.controller.SpeciesController
-
@Controller public class SpeciesController extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpeciesController.TaxonQuery
-
Constructor Summary
Constructors Constructor Description SpeciesController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexportSpecies(javax.servlet.http.HttpServletResponse response, Integer surveyId, Integer taxonomyId)List<TaxonOccurrenceProxy>findTaxon(int surveyId, String taxonomyName, SpeciesController.TaxonQuery query)
-
-
-
Method Detail
-
exportSpecies
@RequestMapping(value="api/survey/{surveyId}/taxonomy/{taxonomyId}/export.csv", method=GET) @ResponseBody public String exportSpecies(javax.servlet.http.HttpServletResponse response, @PathVariable("surveyId") Integer surveyId, @PathVariable("taxonomyId") Integer taxonomyId) throws IOException- Throws:
IOException
-
findTaxon
@Secured("ROLE_ENTRY") @RequestMapping(value="api/survey/{surveyId}/taxonomy/{taxonomyName}/query", method=POST) @ResponseBody public List<TaxonOccurrenceProxy> findTaxon(@PathVariable("surveyId") int surveyId, @PathVariable("taxonomyName") String taxonomyName, @RequestBody SpeciesController.TaxonQuery query)
-
-