private ApplicationReportModel createSingleApplicationMigrationIssuesReport(GraphContext context, ProjectModel projectModel) { ReportService reportService = new ReportService(context); ApplicationReportModel report = createMigrationIssuesReportBase(context); report.setReportName(MIGRATION_ISSUES_REPORT_NAME); report.setProjectModel(projectModel); reportService.setUniqueFilename(report, "migration_issues", "html"); return report; }
private ApplicationReportModel createSingleApplicationMigrationIssuesReport(GraphContext context, ProjectModel projectModel) { ReportService reportService = new ReportService(context); ApplicationReportModel report = createMigrationIssuesReportBase(context); report.setReportName(MIGRATION_ISSUES_REPORT_NAME); report.setProjectModel(projectModel); reportService.setUniqueFilename(report, "migration_issues", "html"); return report; }
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 createReport(GraphContext context, ProjectModel application) { ReportService reportService = new ReportService(context); DependenciesReportModel reportModel = createReportModel(context); addAll(context, reportModel, new ProjectModelTraversal(application), new HashMap<String, DependencyReportDependencyGroupModel>()); reportModel.setProjectModel(application); reportService.setUniqueFilename(reportModel, "dependency_report_" + application.getName(), "html"); }
private void createReport(GraphContext context, ProjectModel application) { ReportService reportService = new ReportService(context); DependenciesReportModel reportModel = createReportModel(context); addAll(context, reportModel, new ProjectModelTraversal(application), new HashMap<String, DependencyReportDependencyGroupModel>()); reportModel.setProjectModel(application); reportService.setUniqueFilename(reportModel, "dependency_report_" + application.getName(), "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 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 createSingleAppDependencyGraphReport(GraphContext context, ProjectModel projectModel) { ReportService reportService = new ReportService(context); ApplicationReportModel report = createAppDependencyGraphReport(context); report.setReportName(REPORT_NAME); report.setProjectModel(projectModel); report.setMainApplicationReport(Boolean.FALSE); report.setDescription(SINGLE_APPLICATION_REPORT_DESCRIPTION + "."); reportService.setUniqueFilename(report, REPORT_BASEFILENAME, "html"); }
private void createGlobalReport(GraphContext context, WindupConfigurationModel configuration) { ReportService reportService = new ReportService(context); DependenciesReportModel reportModel = createReportModel(context); Map<String, DependencyReportDependencyGroupModel> sha1ToGroup = new HashMap<>(); for (FileModel inputApplication : configuration.getInputPaths()) { ProjectModel projectModel = inputApplication.getProjectModel(); // Do not include shared libs in the global report as this is not really a user app if (StringUtils.equals(projectModel.getUniqueID(), ProjectService.SHARED_LIBS_UNIQUE_ID)) continue; ProjectModelTraversal traversal = new ProjectModelTraversal(inputApplication.getProjectModel()); addAll(context, reportModel, traversal, sha1ToGroup); } reportModel.setDisplayInGlobalApplicationIndex(Boolean.TRUE); reportService.setUniqueFilename(reportModel, "dependency_report_global", "html"); }
private void createGlobalReport(GraphContext context, WindupConfigurationModel configuration) { ReportService reportService = new ReportService(context); DependenciesReportModel reportModel = createReportModel(context); Map<String, DependencyReportDependencyGroupModel> sha1ToGroup = new HashMap<>(); for (FileModel inputApplication : configuration.getInputPaths()) { ProjectModel projectModel = inputApplication.getProjectModel(); // Do not include shared libs in the global report as this is not really a user app if (StringUtils.equals(projectModel.getUniqueID(), ProjectService.SHARED_LIBS_UNIQUE_ID)) continue; ProjectModelTraversal traversal = new ProjectModelTraversal(inputApplication.getProjectModel()); addAll(context, reportModel, traversal, sha1ToGroup); } reportModel.setDisplayInGlobalApplicationIndex(Boolean.TRUE); reportService.setUniqueFilename(reportModel, "dependency_report_global", "html"); }
private void createSingleAppDependencyGraphReport(GraphContext context, ProjectModel projectModel) { ReportService reportService = new ReportService(context); ApplicationReportModel report = createAppDependencyGraphReport(context); report.setReportName(REPORT_NAME); report.setProjectModel(projectModel); report.setMainApplicationReport(Boolean.FALSE); report.setDescription(SINGLE_APPLICATION_REPORT_DESCRIPTION + "."); reportService.setUniqueFilename(report, REPORT_BASEFILENAME, "html"); }
private TechReportModel createTechReportPunchCard( GraphContext graphContext) { TechReportModel report = createTechReportBase(graphContext); report.setReportName(REPORT_NAME_PUNCH); report.setTemplatePath(TEMPLATE_PATH_PUNCH); report.setDescription(REPORT_DESCRIPTION_PUNCH); report.setReportIconClass("fa fa-rocket"); report.setDisplayInGlobalApplicationIndex(true); report.setDisplayInApplicationReportIndex(true); new ReportService(graphContext).setUniqueFilename(report, "techReport-punch", "html"); return report; }
private TechReportModel createTechReportPunchCard( GraphContext graphContext) { TechReportModel report = createTechReportBase(graphContext); report.setReportName(REPORT_NAME_PUNCH); report.setTemplatePath(TEMPLATE_PATH_PUNCH); report.setDescription(REPORT_DESCRIPTION_PUNCH); report.setReportIconClass("fa fa-rocket"); report.setDisplayInGlobalApplicationIndex(true); report.setDisplayInApplicationReportIndex(true); new ReportService(graphContext).setUniqueFilename(report, "techReport-punch", "html"); return report; }
private TechReportModel createTechReportBoxes(GraphContext graphContext, ProjectModel appModel) { TechReportModel report = createTechReportBase(graphContext); report.setProjectModel(appModel); report.setDisplayInGlobalApplicationIndex(false); report.setDisplayInApplicationReportIndex(true); report.setReportName(REPORT_NAME_BOXES); report.setTemplatePath(TEMPLATE_PATH_BOXES); report.setDescription(REPORT_DESCRIPTION_BOXES); report.setReportIconClass("fa fa-rocket"); // Set the filename for the report new ReportService(graphContext).setUniqueFilename(report, "techReport-" + appModel.getName(), "html"); return new GraphService<>(graphContext, TechReportModel.class).addTypeToModel(report); }
private TechReportModel createTechReportBoxes(GraphContext graphContext, ProjectModel appModel) { TechReportModel report = createTechReportBase(graphContext); report.setProjectModel(appModel); report.setDisplayInGlobalApplicationIndex(false); report.setDisplayInApplicationReportIndex(true); report.setReportName(REPORT_NAME_BOXES); report.setTemplatePath(TEMPLATE_PATH_BOXES); report.setDescription(REPORT_DESCRIPTION_BOXES); report.setReportIconClass("fa fa-rocket"); // Set the filename for the report new ReportService(graphContext).setUniqueFilename(report, "techReport-" + appModel.getName(), "html"); return new GraphService<>(graphContext, TechReportModel.class).addTypeToModel(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; } }