private TechReportModel createTechReportBase(GraphContext graphContext) { ApplicationReportService applicationReportService = new ApplicationReportService(graphContext); ApplicationReportModel report = applicationReportService.create(); report.setTemplateType(TemplateType.FREEMARKER); report.setMainApplicationReport(false); report.setReportPriority(103); return new GraphService<>(graphContext, TechReportModel.class).addTypeToModel(report); } }
private void createIndexReport(GraphContext context) ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel report = applicationReportService.create(); report.setReportPriority(1); report.setReportIconClass("glyphicon glyphicon-home"); final Iterable<ApplicationReportModel> apps = applicationReportService.findAll(); List<ApplicationReportModel> appsList = new ArrayList(); for (ApplicationReportModel applicationReportModel : apps)
sourceReportModel.setTemplatePath(TEMPLATE); sourceReportModel.setTemplateType(TemplateType.FREEMARKER); ApplicationReportService applicationReportService = new ApplicationReportService(event.getGraphContext()); ApplicationReportModel mainAppReport = applicationReportService.getMainApplicationReportForFile(sourceFile); if (mainAppReport != null)
GraphTraversal<Vertex, Vertex> pipe = new GraphTraversalSource(getGraphContext().getGraph()).V(rootProjectModel.getElement()); pipe.in(ApplicationReportModel.REPORT_TO_PROJECT_MODEL); pipe.has(ApplicationReportModel.MAIN_APPLICATION_REPORT, true); for (Vertex v : pipe.toList()) ApplicationReportModel appReport = frame(v);
sourceReportModel.setTemplatePath(TEMPLATE); sourceReportModel.setTemplateType(TemplateType.FREEMARKER); ApplicationReportService applicationReportService = new ApplicationReportService(event.getGraphContext()); ApplicationReportModel mainAppReport = applicationReportService.getMainApplicationReportForFile(sourceFile); if (mainAppReport != null)
GraphTraversal<Vertex, Vertex> pipe = new GraphTraversalSource(getGraphContext().getGraph()).V(rootProjectModel.getElement()); pipe.in(ApplicationReportModel.REPORT_TO_PROJECT_MODEL); pipe.has(ApplicationReportModel.MAIN_APPLICATION_REPORT, true); for (Vertex v : pipe.toList()) ApplicationReportModel appReport = frame(v);
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 createIndexReport(GraphContext context) ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel report = applicationReportService.create(); report.setReportPriority(1); report.setReportIconClass("glyphicon glyphicon-home"); final Iterable<ApplicationReportModel> apps = applicationReportService.findAll(); List<ApplicationReportModel> appsList = new ArrayList(); for (ApplicationReportModel applicationReportModel : apps)
private TechReportModel createTechReportBase(GraphContext graphContext) { ApplicationReportService applicationReportService = new ApplicationReportService(graphContext); ApplicationReportModel report = applicationReportService.create(); report.setTemplateType(TemplateType.FREEMARKER); report.setMainApplicationReport(false); report.setReportPriority(103); return new GraphService<>(graphContext, TechReportModel.class).addTypeToModel(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 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; }
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"); }
private DependenciesReportModel createReportModel(GraphContext context) { ApplicationReportService service = new ApplicationReportService(context); DependenciesReportModel applicationReportModel = context .service(DependenciesReportModel.class) .addTypeToModel(service.create()); applicationReportModel.setDisplayInApplicationReportIndex(Boolean.TRUE); applicationReportModel.setReportPriority(120); applicationReportModel.setReportName(REPORT_NAME); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("glyphicon glyphicon-retweet"); applicationReportModel.setTemplatePath(TEMPLATE); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); return applicationReportModel; } }
private DependenciesReportModel createReportModel(GraphContext context) { ApplicationReportService service = new ApplicationReportService(context); DependenciesReportModel applicationReportModel = context .service(DependenciesReportModel.class) .addTypeToModel(service.create()); applicationReportModel.setDisplayInApplicationReportIndex(Boolean.TRUE); applicationReportModel.setReportPriority(120); applicationReportModel.setReportName(REPORT_NAME); applicationReportModel.setDescription(REPORT_DESCRIPTION); applicationReportModel.setReportIconClass("glyphicon glyphicon-retweet"); applicationReportModel.setTemplatePath(TEMPLATE); applicationReportModel.setTemplateType(TemplateType.FREEMARKER); return applicationReportModel; } }
@Override public void perform(GraphRewrite event, EvaluationContext context) { WindupConfigurationModel cfg = WindupConfigurationService.getConfigurationModel(event.getGraphContext()); FileModel inputFM = cfg.getInputPath(); ProjectModel inputProjectModel = inputFM.getProjectModel(); ApplicationReportModel applicationReportModel = new ApplicationReportService(event.getGraphContext()).create(); applicationReportModel.setReportName("Tattletale"); applicationReportModel.setDisplayInApplicationReportIndex(true); applicationReportModel.setProjectModel(inputProjectModel); applicationReportModel.setTemplateType(TemplateType.OTHER); applicationReportModel.setReportFilename(TATTLETALE_INDEX_HTML); } }
return; ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = applicationReportService.create(); applicationReportModel.setReportPriority(300); applicationReportModel.setDisplayInApplicationReportIndex(true);
return; ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = applicationReportService.create(); applicationReportModel.setReportPriority(300); applicationReportModel.setDisplayInApplicationReportIndex(true);
ApplicationReportService applicationReportService = new ApplicationReportService(context); ApplicationReportModel applicationReportModel = applicationReportService.create(); applicationReportModel.setReportPriority(400); applicationReportModel.setDisplayInApplicationReportIndex(true);