Class SpeciesController
java.lang.Object
org.openforis.collect.web.controller.SpeciesController
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportSpecies(javax.servlet.http.HttpServletResponse response, Integer surveyId, Integer taxonomyId) findTaxon(int surveyId, String taxonomyName, SpeciesController.TaxonQuery query)
-
Constructor Details
-
SpeciesController
public SpeciesController()
-
-
Method Details
-
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)
-