Codota Logo
ReportModel
Code IndexAdd Codota to your IDE (free)

How to use
ReportModel
in
org.jboss.windup.reporting.model

Best Java code snippets using org.jboss.windup.reporting.model.ReportModel (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.jboss.windup.reporting/windup-reporting-impl

  @Override
  public void perform(GraphRewrite event, EvaluationContext context)
  {
    ReportService reportService = new ReportService(event.getGraphContext());
    ReportModel reportModel = reportService.create();
    reportModel.setReportFilename(OUTPUT_FILENAME);
    reportModel.setReportName(REPORT_NAME);
    reportModel.setTemplateType(TemplateType.FREEMARKER);
    reportModel.setTemplatePath(TEMPLATE);
  }
}
origin: org.jboss.windup.reporting/windup-reporting-api

  /**
   * Get all ReportModels that should be displayed in the path to this report.
   */
  default List<ReportModel> getAllParentsInReversedOrder()
  {
    List<ReportModel> reports = new ArrayList<>();
    ReportModel currentReport = this;
    reports.add(this);
    while (currentReport.getParentReport() != null)
    {
      reports.add(currentReport.getParentReport());
      currentReport = currentReport.getParentReport();
    }

    Collections.reverse(reports);
    return reports;
  }
}
origin: windup/windup

  @Override
  public Void call() throws Exception
  {
    while (true)
    {
      final ReportModel reportModel;
      WindupVertexFrame reportModelObject = reportModels.remove();
      if (reportModelObject == null)
        return null;
      reportModel = (ReportModel) reportModelObject;
      try
      {
        Thread.currentThread().setName(reportModel.getTemplatePath() + "_" + reportModel.getReportFilename());
        iterationProgress.perform(event, context);
        freeMarkerIterationOperation.perform(event, context, reportModel);
      }
      catch (Throwable t)
      {
        LOG.log(Level.WARNING, "Failed to render freemarker report:\n    " + reportModel + System.lineSeparator() + t.getMessage(), t);
      }
    }
  }
});
origin: org.jboss.windup.reporting/windup-reporting-api

/**
 * Gets a unique filename (that has not been used before in the output folder) for this report and sets it on the report model.
 */
public void setUniqueFilename(ReportModel model, String baseFilename, String extension)
{
  model.setReportFilename(this.getUniqueFilename(baseFilename, extension, true, null));
}
origin: org.jboss.windup.reporting/windup-reporting-impl

  @Override
  public Void call() throws Exception
  {
    while (true)
    {
      final ReportModel reportModel;
      WindupVertexFrame reportModelObject = reportModels.remove();
      if (reportModelObject == null)
        return null;
      reportModel = (ReportModel) reportModelObject;
      try
      {
        Thread.currentThread().setName(reportModel.getTemplatePath() + "_" + reportModel.getReportFilename());
        iterationProgress.perform(event, context);
        freeMarkerIterationOperation.perform(event, context, reportModel);
      }
      catch (Throwable t)
      {
        LOG.log(Level.WARNING, "Failed to render freemarker report:\n    " + reportModel + System.lineSeparator() + t.getMessage(), t);
      }
    }
  }
});
origin: windup/windup

/**
 * Gets a unique filename (that has not been used before in the output folder) for this report and sets it on the report model.
 */
public void setUniqueFilename(ReportModel model, String baseFilename, String extension)
{
  model.setReportFilename(this.getUniqueFilename(baseFilename, extension, true, null));
}
origin: org.jboss.windup.reporting/windup-reporting-api

@Override
public void perform(final GraphRewrite event, final EvaluationContext evalCtx, final ReportModel payload)
  String templatePath = payload.getTemplatePath().replace('\\', '/');
  String outputFilename = payload.getReportFilename();
origin: windup/windup

  @Override
  public void perform(GraphRewrite event, EvaluationContext context)
  {
    ReportService reportService = new ReportService(event.getGraphContext());
    ReportModel reportModel = reportService.create();
    reportModel.setReportFilename(OUTPUT_FILENAME);
    reportModel.setReportName(REPORT_NAME);
    reportModel.setTemplateType(TemplateType.FREEMARKER);
    reportModel.setTemplatePath(TEMPLATE);
  }
}
origin: windup/windup

  /**
   * Get all ReportModels that should be displayed in the path to this report.
   */
  default List<ReportModel> getAllParentsInReversedOrder()
  {
    List<ReportModel> reports = new ArrayList<>();
    ReportModel currentReport = this;
    reports.add(this);
    while (currentReport.getParentReport() != null)
    {
      reports.add(currentReport.getParentReport());
      currentReport = currentReport.getParentReport();
    }

    Collections.reverse(reports);
    return reports;
  }
}
origin: windup/windup

@Override
public void perform(final GraphRewrite event, final EvaluationContext evalCtx, final ReportModel payload)
  String templatePath = payload.getTemplatePath().replace('\\', '/');
  String outputFilename = payload.getReportFilename();
org.jboss.windup.reporting.modelReportModel

Javadoc

Provides the base object for all reports.

Most used methods

  • getReportFilename
    The filename of the report on disk (useful for other reports that need to link to this one)
  • getTemplatePath
    The path to the template that produced this report (for example, /reports/blacklist.ftl)
  • setReportFilename
    The filename of the report on disk (useful for other reports that need to link to this one)
  • getParentReport
    The parent report... this could be the root (index) or another level of summary report.
  • setReportName
    The name of the report (for example, 'ClassLoader Report' or 'EJB Report')
  • setTemplatePath
    The path to the template that produced this report (for example, /reports/blacklist.ftl)
  • setTemplateType
    The templating technology used to produce this report (for example, freemarker)

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getExternalFilesDir (Context)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now