|
@@ -275,7 +275,7 @@ public class DownloadController {
|
|
|
* @param response HttpServletResponse
|
|
* @param response HttpServletResponse
|
|
|
* @return A byte array representing the populated template
|
|
* @return A byte array representing the populated template
|
|
|
*/
|
|
*/
|
|
|
- @GetMapping(value="/test/template/{titulacio}/{centre}/{idProces}/{idTascap}", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
|
|
|
|
|
|
+ @GetMapping(value="/download/test/template/{titulacio}/{centre}/{idProces}/{idTascap}", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public ResponseEntity<byte[]> testTemplate(@PathVariable("titulacio") Integer idTitulacio, @PathVariable("centre") Integer idCentre,
|
|
public ResponseEntity<byte[]> testTemplate(@PathVariable("titulacio") Integer idTitulacio, @PathVariable("centre") Integer idCentre,
|
|
|
@PathVariable("idTascap") Integer idTascap, @PathVariable("idProces") Integer idProces, HttpServletResponse response)
|
|
@PathVariable("idTascap") Integer idTascap, @PathVariable("idProces") Integer idProces, HttpServletResponse response)
|
|
@@ -357,7 +357,7 @@ public class DownloadController {
|
|
|
* @param response HttpServletResponse
|
|
* @param response HttpServletResponse
|
|
|
* @return A byte array representing the populated template
|
|
* @return A byte array representing the populated template
|
|
|
*/
|
|
*/
|
|
|
- @GetMapping(value="/test/template2/{titulacio}/{centre}/{evidencia}/{curs}/{tipusTasca}", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
|
|
|
|
|
|
+ @GetMapping(value="/download/test/template2/{titulacio}/{centre}/{evidencia}/{curs}/{tipusTasca}", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public ResponseEntity<byte[]> testTemplate(Model model, @PathVariable("titulacio") Integer idTitulacio, @PathVariable("centre") Integer idCentre,
|
|
public ResponseEntity<byte[]> testTemplate(Model model, @PathVariable("titulacio") Integer idTitulacio, @PathVariable("centre") Integer idCentre,
|
|
|
@PathVariable("evidencia") String evidencia, @PathVariable("curs") Integer curs, @PathVariable("tipusTasca") Integer tipusTasca,
|
|
@PathVariable("evidencia") String evidencia, @PathVariable("curs") Integer curs, @PathVariable("tipusTasca") Integer tipusTasca,
|
|
@@ -437,7 +437,7 @@ public class DownloadController {
|
|
|
* @param response HttpServletResponse
|
|
* @param response HttpServletResponse
|
|
|
* @return A byte array representing the generated PDF
|
|
* @return A byte array representing the generated PDF
|
|
|
*/
|
|
*/
|
|
|
- @GetMapping(value="/pdf/{idTascai}")
|
|
|
|
|
|
|
+ @GetMapping(value="/download/pdf/{idTascai}")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public byte[] downloadTemplatePdf(@PathVariable("idTascai") BigInteger idTascai, HttpServletResponse response) throws IOException, InterruptedException {
|
|
public byte[] downloadTemplatePdf(@PathVariable("idTascai") BigInteger idTascai, HttpServletResponse response) throws IOException, InterruptedException {
|
|
|
InstanciaTascaDTO it = tc.findInstanciaTascaById(idTascai);
|
|
InstanciaTascaDTO it = tc.findInstanciaTascaById(idTascai);
|
|
@@ -453,7 +453,7 @@ public class DownloadController {
|
|
|
* @param idtascai Optional ID of the task instance for context
|
|
* @param idtascai Optional ID of the task instance for context
|
|
|
* @param response HttpServletResponse
|
|
* @param response HttpServletResponse
|
|
|
*/
|
|
*/
|
|
|
- @PostMapping(value="/pdf/preview")
|
|
|
|
|
|
|
+ @PostMapping(value="/download/pdf/preview")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public byte[] downloadTemplatePdf(HttpServletResponse response,
|
|
public byte[] downloadTemplatePdf(HttpServletResponse response,
|
|
|
@RequestBody PdfDTO pdf) throws IOException, InterruptedException {
|
|
@RequestBody PdfDTO pdf) throws IOException, InterruptedException {
|