private ApplicationReportModel createAppDependencyGraphReport(GraphContext context) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel report = applicationReportService.create(); report.setReportPriority(104); report.setReportIconClass("glyphicon glyphicon-tree-deciduous"); report.setTemplatePath(TEMPLATE); report.setTemplateType(TemplateType.FREEMARKER); report.setDisplayInApplicationReportIndex(Boolean.TRUE); return report; }
private ApplicationReportModel createAppDependencyGraphReport(GraphContext context) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel report = applicationReportService.create(); report.setReportPriority(104); report.setReportIconClass("glyphicon glyphicon-tree-deciduous"); report.setTemplatePath(TEMPLATE); report.setTemplateType(TemplateType.FREEMARKER); report.setDisplayInApplicationReportIndex(Boolean.TRUE); return report; }
private void createReportModel(GraphContext context, FileModel input, String reportRelativePath, String tattletaleAbsolutePath) { ProjectModel inputProjectModel = input.getProjectModel(); Path reportIndexPath = Paths.get(tattletaleAbsolutePath, "index.html"); if (!Files.exists(reportIndexPath)) { return; } ApplicationReportModel applicationReportModel = new ApplicationReportService(context).create(); applicationReportModel.setReportName("Tattletale"); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("glyphicon tattletale-nav-logo"); applicationReportModel.setReportPriority(500); applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setProjectModel(inputProjectModel); applicationReportModel.setTemplatePath(REPORT_TEMPLATE); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); Map<String, String> reportProperties = new HashMap<>(); reportProperties.put("embeddedTitle", "Tattletale Report"); reportProperties.put("embeddedUrl", reportRelativePath + "/index.html"); applicationReportModel.setReportProperties(reportProperties); ReportService reportService = new ReportService(context); reportService.setUniqueFilename(applicationReportModel, "tattletale" + "_" + inputProjectModel.getName(), "html"); }
private void createReportModel(GraphContext context, FileModel input, String reportRelativePath, String tattletaleAbsolutePath) { ProjectModel inputProjectModel = input.getProjectModel(); Path reportIndexPath = Paths.get(tattletaleAbsolutePath, "index.html"); if (!Files.exists(reportIndexPath)) { return; } ApplicationReportModel applicationReportModel = new ApplicationReportService(context).create(); applicationReportModel.setReportName("Tattletale"); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("glyphicon tattletale-nav-logo"); applicationReportModel.setReportPriority(500); applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setProjectModel(inputProjectModel); applicationReportModel.setTemplatePath(REPORT_TEMPLATE); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); Map<String, String> reportProperties = new HashMap<>(); reportProperties.put("embeddedTitle", "Tattletale Report"); reportProperties.put("embeddedUrl", reportRelativePath + "/index.html"); applicationReportModel.setReportProperties(reportProperties); ReportService reportService = new ReportService(context); reportService.setUniqueFilename(applicationReportModel, "tattletale" + "_" + inputProjectModel.getName(), "html"); }
report.setReportIconClass("glyphicon glyphicon-home"); report.setReportName(APPLICATION_LIST_REPORT); report.setTemplatePath(TEMPLATE_PATH);
applicationReportModel.setReportName("Spring Beans"); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("glyphicon glyphicon-leaf"); applicationReportModel.setProjectModel(application); applicationReportModel.setReportIconClass("glyphicon glyphicon-leaf"); applicationReportModel.setTemplatePath(TEMPLATE_SPRING_REPORT); applicationReportModel.setTemplateType(TemplateType.FREEMARKER);
report.setReportIconClass("glyphicon glyphicon-home"); report.setReportName(APPLICATION_LIST_REPORT); report.setTemplatePath(TEMPLATE_PATH);
applicationReportModel.setReportName("Spring Beans"); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("glyphicon glyphicon-leaf"); applicationReportModel.setProjectModel(application); applicationReportModel.setReportIconClass("glyphicon glyphicon-leaf"); applicationReportModel.setTemplatePath(TEMPLATE_SPRING_REPORT); applicationReportModel.setTemplateType(TemplateType.FREEMARKER);
private ApplicationReportModel createMigrationIssuesReportBase(GraphContext context) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel report = applicationReportService.create(); report.setReportPriority(101); report.setReportIconClass("glyphicon glyphicon-warning-sign"); report.setTemplatePath(TEMPLATE_PATH); report.setTemplateType(TemplateType.FREEMARKER); report.setDisplayInApplicationReportIndex(true); report.setDescription(REPORT_DESCRIPTION); new GraphService<>(context, MigrationIssuesReportModel.class).addTypeToModel(report); return report; }
private ApplicationReportModel createMigrationIssuesReportBase(GraphContext context) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel report = applicationReportService.create(); report.setReportPriority(101); report.setReportIconClass("glyphicon glyphicon-warning-sign"); report.setTemplatePath(TEMPLATE_PATH); report.setTemplateType(TemplateType.FREEMARKER); report.setDisplayInApplicationReportIndex(true); report.setDescription(REPORT_DESCRIPTION); new GraphService<>(context, MigrationIssuesReportModel.class).addTypeToModel(report); return report; }
applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setReportName("Spring Bean Report"); applicationReportModel.setReportIconClass("glyphicon glyphicon-leaf"); applicationReportModel.setProjectModel(projectModel); applicationReportModel.setReportIconClass("glyphicon glyphicon-leaf"); applicationReportModel.setTemplatePath(TEMPLATE_SPRING_REPORT); applicationReportModel.setTemplateType(TemplateType.FREEMARKER);
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; }
applicationReport.setTemplatePath(TEMPLATE_REPORT); applicationReport.setDisplayInApplicationReportIndex(true); applicationReport.setReportIconClass("glyphicon glyphicon-map-marker"); applicationReport.setTemplateType(TemplateType.FREEMARKER); applicationReport.setProjectModel(rootProjectModel);
applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setReportName("Hibernate Report"); applicationReportModel.setReportIconClass("glyphicon hibernate-nav-logo"); applicationReportModel.setProjectModel(projectModel); applicationReportModel.setTemplatePath(TEMPLATE_HIBERNATE_REPORT);
private void createReportIndex(GraphContext context, ProjectModel projectModel) { ApplicationReportService service = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = service.create(); applicationReportModel.setReportPriority(100); applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setReportName(REPORT_INDEX); applicationReportModel.setReportIconClass("glyphicon glyphicon-dashboard"); applicationReportModel.setMainApplicationReport(true); applicationReportModel.setTemplatePath(TEMPLATE); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); applicationReportModel.setProjectModel(projectModel); applicationReportModel.setDescription( "Dashboard report aggregating findings from the analysis."); // Set the filename for the report ReportService reportService = new ReportService(context); reportService.setUniqueFilename(applicationReportModel, "report_index_" + projectModel.getName(), "html"); }
private ApplicationReportModel createApplicationReport(GraphContext context, ProjectModel application) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = applicationReportService.create(); applicationReportModel.setReportPriority(200); applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setReportName("Compatible Files"); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("glyphicon glyphicon-check"); applicationReportModel.setMainApplicationReport(false); applicationReportModel.setProjectModel(application); applicationReportModel.setTemplatePath(TEMPLATE_APPLICATION_REPORT); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); // Set the filename for the report ReportService reportService = new ReportService(context); reportService.setUniqueFilename(applicationReportModel, "compatiblefiles_" + application.getName(), "html"); return applicationReportModel; } }
private void createReportIndex(GraphContext context, ProjectModel projectModel) { ApplicationReportService service = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = service.create(); applicationReportModel.setReportPriority(100); applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setReportName(REPORT_INDEX); applicationReportModel.setReportIconClass("glyphicon glyphicon-dashboard"); applicationReportModel.setMainApplicationReport(true); applicationReportModel.setTemplatePath(TEMPLATE); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); applicationReportModel.setProjectModel(projectModel); applicationReportModel.setDescription( "Dashboard report aggregating findings from the analysis."); // Set the filename for the report ReportService reportService = new ReportService(context); reportService.setUniqueFilename(applicationReportModel, "report_index_" + projectModel.getName(), "html"); }
private ApplicationReportModel createApplicationReport(GraphContext context, ProjectModel projectModel) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = applicationReportService.create(); applicationReportModel.setReportPriority(200); applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setReportName("Unclassified Files"); applicationReportModel.setReportIconClass("glyphicon glyphicon-question-sign"); applicationReportModel.setMainApplicationReport(false); applicationReportModel.setProjectModel(projectModel); applicationReportModel.setTemplatePath(TEMPLATE_APPLICATION_REPORT); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); applicationReportModel.setDisplayInApplicationList(false); // Set the filename for the report ReportService reportService = new ReportService(context); reportService.setUniqueFilename(applicationReportModel, "nonclassifiedfiles_" + projectModel.getName(), "html"); return applicationReportModel; } }
private ApplicationReportModel createApplicationReport(GraphContext context, ProjectModel application) { ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = applicationReportService.create(); applicationReportModel.setReportPriority(200); applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setReportName("Compatible Files"); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("glyphicon glyphicon-check"); applicationReportModel.setMainApplicationReport(false); applicationReportModel.setProjectModel(application); applicationReportModel.setTemplatePath(TEMPLATE_APPLICATION_REPORT); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); // Set the filename for the report ReportService reportService = new ReportService(context); reportService.setUniqueFilename(applicationReportModel, "compatiblefiles_" + application.getName(), "html"); return applicationReportModel; } }