Class TasksPrintSelectedService
java.lang.Object
fr.tiogars.chat.domains.task.services.TasksPrintSelectedService
Generates a printable PDF for selected active Tasks.
-
Constructor Summary
ConstructorsConstructorDescriptionTasksPrintSelectedService(TaskRepository repository, TaskPdfRenderer renderer) -
Method Summary
Modifier and TypeMethodDescriptionOptional<byte[]> printSelected(List<Long> ids) Prints a selection ordered by code without duplicating records.
-
Constructor Details
-
TasksPrintSelectedService
-
-
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
-