Class TaskPrintService

java.lang.Object
fr.tiogars.chat.domains.task.services.TaskPrintService

@Service public class TaskPrintService extends Object
Generates a printable PDF for one active Task.
  • 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