Skip to content
Snippets Groups Projects

Resolve "Submissions full export"

6 files
+ 185
2
Compare changes
  • Side-by-side
  • Inline

Files

@@ -528,6 +528,18 @@ public class EditionController {
return csvService.getResponse(exportService.exportGradesForEdition(id, options));
}
/**
* Gets a CSV file which contains all submissions in the edition.
*
* @param id The id of the edition
* @return The resource of the export file
*/
@GetMapping("{id}/export/submissions")
@PreAuthorize("@authorizationService.hasTeacherRoleInEdition(#id)")
public ResponseEntity<Resource> exportSubmissions(@PathVariable Long id) throws IOException {
return csvService.getResponse(exportService.exportSubmissionsForEdition(id));
}
/**
* Imports participants into an edition
*
@@ -547,4 +559,5 @@ public class EditionController {
new InputStreamReader(file.getInputStream(), StandardCharsets.UTF_8), participantImport);
return "redirect:/edition/{fromPage}/{id}";
}
}
Loading