@Controller @RequestMapping(value="/csv") public class CsvExportController extends AbstractController
Modifier and Type | Field and Description |
---|---|
ProgressMonitorController |
progressMonitorController |
DEFAULT_BATCH_THREAD_PRIORITY, DEFAULT_INIT_STRATEGY, DEFAULT_PAGE_SIZE, INCLUDE_UNPUBLISHED, initializationStrategy, NO_UNPUBLISHED, service, userHelper
Constructor and Description |
---|
CsvExportController() |
Modifier and Type | Method and Description |
---|---|
void |
doExportRedlist(UuidList featureUuids,
java.lang.String classificationUuid,
java.lang.String taxonName,
UuidList areas,
java.lang.String downloadTokenValueId,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
Fetches data from the application context and forwards the stream to the HttpServletResponse,
which offers a file download.
|
void |
initBinder(org.springframework.web.bind.WebDataBinder binder)
Helper method, which allows to convert strings directly into uuids.
|
void |
setService(IService service) |
getInitializationStrategy, readPathParameter, requestPathAndQuery, setInitializationStrategy
@Autowired public ProgressMonitorController progressMonitorController
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
binder
- Special DataBinder for data binding from web request parameters to JavaBean objects.@RequestMapping(value="exportRedlist", method=POST) public void doExportRedlist(@RequestParam(value="features",required=false) UuidList featureUuids, @RequestParam(value="classificationUuid",required=false) java.lang.String classificationUuid, @RequestParam(value="taxonName",required=false) java.lang.String taxonName, @RequestParam(value="area",required=false) UuidList areas, @RequestParam(value="downloadTokenValueId",required=false) java.lang.String downloadTokenValueId, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
featureUuids
- List of uuids to download/select feature
featurestaxonName
- the selected taxon nameclassificationUuid
- the uuid of the selected classificationresponse
- HttpServletResponse which returns the ByteArrayOutputStreampublic void setService(IService service)
setService
in class AbstractController
Copyright © 2007-2020 EDIT. All Rights Reserved.