Class TaskPrintController
java.lang.Object
fr.tiogars.chat.domains.task.controllers.TaskPrintController
Exposes printable PDFs for single, all, and selected Tasks.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskPrintController(TaskPrintService printService, TasksPrintAllService printAllService, TasksPrintSelectedService printSelectedService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<byte[]> org.springframework.http.ResponseEntity<byte[]> printSelectedTasks(@Valid PrintSelectedTasksRequest request) org.springframework.http.ResponseEntity<byte[]>
-
Constructor Details
-
TaskPrintController
public TaskPrintController(TaskPrintService printService, TasksPrintAllService printAllService, TasksPrintSelectedService printSelectedService)
-
-
Method Details
-
printTask
@GetMapping(value="/{id}/print.pdf", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printTask(@PathVariable Long id) throws IOException - Throws:
IOException
-
printAllTasks
@GetMapping(value="/print.pdf", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printAllTasks() throws IOException- Throws:
IOException
-
printSelectedTasks
@PostMapping(value="/print-selected.pdf", consumes="application/json", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printSelectedTasks(@Valid @RequestBody @Valid PrintSelectedTasksRequest request) throws IOException - Throws:
IOException
-