Commit 05b9c34b authored by Julius Mischok's avatar Julius Mischok

update demo data generation

parent 80b7a940
......@@ -16,8 +16,11 @@ public class BugreportService {
@Autowired
private PdfService pdfService;
// FIXME: Remove
private BugreportModel demoModel() {
/**
* Generates the report model, filled with demo data here.
* @return the model
*/
private BugreportModel generateModel() {
TableRowModel<TableColumns> row1 = TableRowModel.<TableColumns>builder()
.value(TableColumns.BUGID, "SUP-4392")
.value(TableColumns.TITLE, "Lorem ipsum dolor")
......@@ -59,7 +62,8 @@ public class BugreportService {
* @return PDF report as byte stream
*/
public byte[] generateMonthlyReport() {
// FIXME: Correct later!
return pdfService.modelToPdf(demoModel());
BugreportModel model = generateModel();
return pdfService.modelToPdf(model);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment