private ApplicationReportModel createGlobalMigrationIssuesReport(GraphContext context) { ReportService reportService = new ReportService(context); ApplicationReportModel report = createMigrationIssuesReportBase(context); report.setReportName(ALL_MIGRATION_ISSUES_REPORT_NAME); report.setDisplayInGlobalApplicationIndex(true); reportService.setUniqueFilename(report, "migration_issues", "html"); return report; } }
private void createGlobalAppDependencyGraphReport(GraphContext context) { ReportService reportService = new ReportService(context); ApplicationReportModel report = createAppDependencyGraphReport(context); report.setReportName(REPORT_NAME); report.setDisplayInGlobalApplicationIndex(Boolean.TRUE); report.setDescription(GLOBAL_REPORT_DESCRIPTION + "."); reportService.setUniqueFilename(report, REPORT_BASEFILENAME + "_global", "html"); } }
private void createGlobalAppDependencyGraphReport(GraphContext context) { ReportService reportService = new ReportService(context); ApplicationReportModel report = createAppDependencyGraphReport(context); report.setReportName(REPORT_NAME); report.setDisplayInGlobalApplicationIndex(Boolean.TRUE); report.setDescription(GLOBAL_REPORT_DESCRIPTION + "."); reportService.setUniqueFilename(report, REPORT_BASEFILENAME + "_global", "html"); } }
private ApplicationReportModel createGlobalMigrationIssuesReport(GraphContext context, boolean exportAllIssuesCSV) { ReportService reportService = new ReportService(context); ApplicationReportModel report = createMigrationIssuesReportBase(context); report.setReportName(ALL_MIGRATION_ISSUES_REPORT_NAME); report.setDisplayInGlobalApplicationIndex(true); report.setExportAllIssuesCSV(exportAllIssuesCSV); reportService.setUniqueFilename(report, "migration_issues", "html"); return report; } }
private ApplicationReportModel createAboutWindup(GraphContext context, ProjectModel projectModel) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = applicationReportService.create(); applicationReportModel.setReportPriority(10000); applicationReportModel.setReportName(REPORT_NAME); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("fa fa-question-circle"); applicationReportModel.setMainApplicationReport(false); applicationReportModel.setDisplayInApplicationReportIndex(true); if (projectModel == null) applicationReportModel.setDisplayInGlobalApplicationIndex(true); else applicationReportModel.setProjectModel(projectModel); applicationReportModel.setTemplatePath(TEMPLATE_APPLICATION_REPORT); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); Map<String, WindupVertexFrame> related = new HashMap<>(); AboutWindupModel aboutWindupModel = context.getFramed().addFramedVertex(AboutWindupModel.class); aboutWindupModel.setWindupRuntimeVersion(addon.getId().getVersion().toString()); related.put("windupAbout", aboutWindupModel); applicationReportModel.setRelatedResource(related); // Set the filename for the report ReportService reportService = new ReportService(context); String filename = projectModel == null ? "about_global" : "about_" + projectModel.getName(); reportService.setUniqueFilename(applicationReportModel, filename, "html"); return applicationReportModel; }
private ApplicationReportModel createAboutWindup(GraphContext context, ProjectModel projectModel) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = applicationReportService.create(); applicationReportModel.setReportPriority(10000); applicationReportModel.setReportName(REPORT_NAME); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("fa fa-question-circle"); applicationReportModel.setMainApplicationReport(false); applicationReportModel.setDisplayInApplicationReportIndex(true); if (projectModel == null) applicationReportModel.setDisplayInGlobalApplicationIndex(true); else applicationReportModel.setProjectModel(projectModel); applicationReportModel.setTemplatePath(TEMPLATE_APPLICATION_REPORT); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); Map<String, WindupVertexFrame> related = new HashMap<>(); AboutWindupModel aboutWindupModel = context.getFramed().addFramedVertex(AboutWindupModel.class); aboutWindupModel.setWindupRuntimeVersion(addon.getId().getVersion().toString()); related.put("windupAbout", aboutWindupModel); applicationReportModel.setRelatedResource(related); // Set the filename for the report ReportService reportService = new ReportService(context); String filename = projectModel == null ? "about_global" : "about_" + projectModel.getName(); reportService.setUniqueFilename(applicationReportModel, filename, "html"); return applicationReportModel; }