1 package org
.argeo
.slc
.web
.mvc
.result
;
3 import javax
.servlet
.http
.HttpServletRequest
;
4 import javax
.servlet
.http
.HttpServletResponse
;
6 import org
.argeo
.slc
.services
.test
.TestManagerService
;
7 import org
.argeo
.slc
.web
.mvc
.AbstractServiceController
;
8 import org
.springframework
.web
.servlet
.ModelAndView
;
10 public class AddResultToCollectionController
extends AbstractServiceController
{
11 private final TestManagerService testManagerService
;
13 public AddResultToCollectionController(TestManagerService testManagerService
) {
14 this.testManagerService
= testManagerService
;
17 protected void handleServiceRequest(HttpServletRequest request
,
18 HttpServletResponse response
, ModelAndView modelAndView
)
21 String collectionId
= request
.getParameter("collectionId");
22 String resultUuid
= request
.getParameter("resultUuid");
24 testManagerService
.addResultToCollection(collectionId
, resultUuid
);