Tabnine Logo
ReportModel
Code IndexAdd Tabnine 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)

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
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JButton (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now