Class DomainTemplatesPrintSelectedService

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

@Service public class DomainTemplatesPrintSelectedService extends Object
Generates a printable PDF for selected active DomainTemplates.
  • Constructor Details

  • Method Details

    • printSelected

      @Transactional(readOnly=true) public Optional<byte[]> printSelected(List<Long> ids) throws IOException
      Prints a selection ordered by code without duplicating records.
      Parameters:
      ids - selected persistent identifiers
      Returns:
      PDF bytes, or empty if any selected record was not found
      Throws:
      IOException - when the PDF cannot be generated