From c94126e0d4a5fb443aa1449c58b9a03d457c8029 Mon Sep 17 00:00:00 2001 From: tekay <tom.kaesler@mni.thm.de> Date: Mon, 22 Feb 2016 13:49:48 +0100 Subject: [PATCH] let jackson create the list --- .../java/de/thm/arsnova/controller/SessionController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/thm/arsnova/controller/SessionController.java b/src/main/java/de/thm/arsnova/controller/SessionController.java index c6e431f06..7833075de 100644 --- a/src/main/java/de/thm/arsnova/controller/SessionController.java +++ b/src/main/java/de/thm/arsnova/controller/SessionController.java @@ -272,15 +272,14 @@ public class SessionController extends PaginationController { @ApiOperation(value = "export sessions", nickname = "exportSession") @RequestMapping(value = "/export", method = RequestMethod.GET) public List<ImportExportSession> exportSession( - @ApiParam(value = "comma seperated list of sessionkeys", required = true) @RequestParam(value = "sessionkeys", defaultValue = "") final String sessionkeys, + @ApiParam(value = "sessionkey", required = true) @RequestParam(value = "sessionkey", defaultValue = "") final List<String> sessionkey, @ApiParam(value = "wether statistics shall be exported", required = true) @RequestParam(value = "withAnswerStatistics", defaultValue = "false") final Boolean withAnswerStatistics, @ApiParam(value = "wether interposed questions shall be exported", required = true) @RequestParam(value = "withFeedbackQuestions", defaultValue = "false") final Boolean withFeedbackQuestions, @ApiParam(value = "http servlet response", required = true) final HttpServletResponse response ) { List<ImportExportSession> sessions = new ArrayList<ImportExportSession>(); ImportExportSession temp; - String[] splittedKeys = sessionkeys.split(","); - for (String key : splittedKeys) { + for (String key : sessionkey) { sessionService.setActive(key, false); temp = sessionService.exportSession(key, withAnswerStatistics, withFeedbackQuestions); if (temp != null) { -- GitLab