Class DomainTemplatePrintController
java.lang.Object
fr.tiogars.inception.domains.domaintemplate.controllers.DomainTemplatePrintController
@RestController
@RequestMapping("/api/v1/domaintemplate")
public class DomainTemplatePrintController
extends Object
Exposes printable PDFs for single, all, and selected DomainTemplates.
-
Constructor Summary
ConstructorsConstructorDescriptionDomainTemplatePrintController(DomainTemplatePrintService printService, DomainTemplatesPrintAllService printAllService, DomainTemplatesPrintSelectedService printSelectedService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<byte[]> org.springframework.http.ResponseEntity<byte[]> org.springframework.http.ResponseEntity<byte[]> printSelectedDomainTemplates(@Valid PrintSelectedDomainTemplatesRequest request)
-
Constructor Details
-
DomainTemplatePrintController
public DomainTemplatePrintController(DomainTemplatePrintService printService, DomainTemplatesPrintAllService printAllService, DomainTemplatesPrintSelectedService printSelectedService)
-
-
Method Details
-
printDomainTemplate
@GetMapping(value="/{id}/print.pdf", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printDomainTemplate(@PathVariable Long id) throws IOException - Throws:
IOException
-
printAllDomainTemplates
@GetMapping(value="/print.pdf", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printAllDomainTemplates() throws IOException- Throws:
IOException
-
printSelectedDomainTemplates
@PostMapping(value="/print-selected.pdf", consumes="application/json", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printSelectedDomainTemplates(@Valid @RequestBody @Valid PrintSelectedDomainTemplatesRequest request) throws IOException - Throws:
IOException
-