Project

General

Profile

« Previous | Next » 

Revision 8eaa553b

Added by Andreas Müller over 6 years ago

ref #6755 add header option to DwC-A export webservice

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/checklist/DwcaExportController.java
215 215
            @RequestParam(value = "doResourceRelations", defaultValue="true") Boolean doResourceRelations,
216 216
            @RequestParam(value = "doReferences", defaultValue="true") Boolean doReferences,
217 217
            @RequestParam(value = "withHigherClassification", defaultValue="false") Boolean withHigherClassification,
218
            @RequestParam(value = "includeHeader", defaultValue="false") Boolean includeHeader,
219

  
218 220
//          @RequestParam(value = "area", required = false) final UuidList areas,
219 221
            @RequestParam(value = "downloadTokenValueId", required = false) final String downloadTokenValueId,
220 222
            @RequestParam(value = "priority", required = false) Integer priority,
......
275 277
                                    cacheFile, monitor, taxonNodeFilter, doSynonyms, doMisapplieds,
276 278
                                    doVernaculars, doDistributions, doDescriptions, doImages,
277 279
                                    doTypesAndSpecimen, doResourceRelations, doReferences,
278
                                    withHigherClassification);
280
                                    withHigherClassification, includeHeader);
279 281
                            performExport(cacheFile, monitor, config,
280 282
                                    downloadTokenValueId, origin, response);
281 283
                        }
......
364 366
     * @param doResourceRelations
365 367
     * @param doTypesAndSpecimen
366 368
     * @param withHigherClassification
369
     * @param includeHeader
367 370
      */
368 371
    private DwcaTaxExportConfigurator setDwcaTaxExportConfigurator(File cacheFile,
369 372
            IRestServiceProgressMonitor progressMonitor,
......
372 375
            Boolean doVernaculars, Boolean doDistributions,
373 376
            Boolean doDescriptions, Boolean doImages,
374 377
            Boolean doTypesAndSpecimen, Boolean doResourceRelations,
375
            Boolean doReferences, Boolean withHigherClassification) {
378
            Boolean doReferences, Boolean withHigherClassification,
379
            Boolean includeHeader) {
376 380

  
377 381
        if(cacheFile == null){
378 382
            String destination = System.getProperty("java.io.tmpdir");
......
395 399
        config.setDoReferences(doReferences);
396 400
        config.setDoResourceRelations(doResourceRelations);
397 401
        config.setWithHigherClassification(withHigherClassification);
402
        config.setHasHeaderLines(includeHeader);
398 403

  
399 404
        config.setProgressMonitor(progressMonitor);
400 405

  

Also available in: Unified diff