@@ -0,0 +1,1507 @@
+package at.ac.tuwien.inso.controller.grade;%0A%0Aimport org.apache.catalina.servlet4preview.http.HttpServletRequest;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.ModelMap;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0Aimport org.springframework.web.servlet.ModelAndView;%0Aimport org.springframework.web.servlet.View;%0A%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport at.ac.tuwien.inso.service.GradeService;%0Aimport at.ac.tuwien.inso.view.pdf.GradePDFView;%0A%0A%0A@Controller%0A@RequestMapping(%22/public/grade%22)%0Apublic class PublicGradeController%7B%0A%0A    @Autowired%0A    public GradeService gradeService;%0A%0A    @GetMapping%0A    public ModelAndView generateGradePDF(@RequestParam(%22identifier%22) String identifier,%0A                                         ModelMap modelMap,%0A                                         HttpServletRequest request,%0A                                         HttpServletResponse response) throws Exception %7B%0A%0A        View view = new GradePDFView();%0A        modelMap.addAttribute(%22grade%22, gradeService.getForValidation(identifier));%0A        modelMap.addAttribute(%22validationLink%22,%0A                request.getRequestURL().toString() + %22?identifier=%22 + identifier);%0A        ModelAndView modelAndView = new ModelAndView(view);%0A        return modelAndView;%0A    %7D%0A%0A%0A%0A%7D%0A

Add the PublicGradeController