Class DomainTemplatePrintService

java.lang.Object
fr.tiogars.inception.domains.domaintemplate.services.DomainTemplatePrintService

@Service public class DomainTemplatePrintService extends Object
Generates a printable PDF for one active DomainTemplate.
  • Constructor Details

  • Method Details

    • print

      @Transactional(readOnly=true) public Optional<byte[]> print(Long id) throws IOException
      Prints an active record.
      Parameters:
      id - persistent identifier
      Returns:
      PDF bytes, or empty if the record was not found
      Throws:
      IOException - when the PDF cannot be generated