Package org.pentaho.reporting.engine.classic.core.modules.output.fast.validator

Examples of org.pentaho.reporting.engine.classic.core.modules.output.fast.validator.ReportStructureValidator


        tempFile.deleteOnExit();
        final FileOutputStream fout = new FileOutputStream(tempFile);
        try
        {
          final BufferedOutputStream bout = new BufferedOutputStream(fout);
          ReportStructureValidator validator = new ReportStructureValidator();
          ReportProcessor reportProcessor;
          if (validator.isValidForFastProcessing(report) == false)
          {
            final FlowExcelOutputProcessor target =
                new FlowExcelOutputProcessor(report.getConfiguration(), bout, report.getResourceManager());
            target.setUseXlsxFormat(true);
            reportProcessor = new FlowReportProcessor(report, target);
View Full Code Here


          final FileRepository targetRepository = new FileRepository(tempDir);
          final ContentLocation targetRoot = targetRepository.getRoot();


          ReportProcessor reportProcessor;
          ReportStructureValidator validator = new ReportStructureValidator();
          if (validator.isValidForFastProcessing(report) == false)
          {
            final HtmlOutputProcessor outputProcessor = new StreamHtmlOutputProcessor(report.getConfiguration());
            final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
            printer.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, "index", "html"));
            printer.setDataWriter(targetRoot, new DefaultNameGenerator(targetRoot, "content")); //$NON-NLS-1$
View Full Code Here

        final FileOutputStream fout = new FileOutputStream(tempFile);
        try
        {
          final BufferedOutputStream bout = new BufferedOutputStream(fout);

          ReportStructureValidator validator = new ReportStructureValidator();
          ReportProcessor reportProcessor;
          if (validator.isValidForFastProcessing(report) == false)
          {
            final FlowExcelOutputProcessor target =
                new FlowExcelOutputProcessor(report.getConfiguration(), bout, report.getResourceManager());
            target.setUseXlsxFormat(false);
            reportProcessor = new FlowReportProcessor(report, target);
View Full Code Here

        {

          final BufferedOutputStream bout = new BufferedOutputStream(fout);

          ReportProcessor reportProcessor;
          ReportStructureValidator validator = new ReportStructureValidator();
          if (validator.isValidForFastProcessing(report) == false)
          {
            final StreamCSVOutputProcessor target = new StreamCSVOutputProcessor(bout);
            reportProcessor = new StreamReportProcessor(report, target);
          }
          else
View Full Code Here

  @Test
  public void testRowBandingTriggersSlowMode() throws ResourceException
  {
    URL url = getClass().getResource("Prd-5240.prpt");
    MasterReport report = (MasterReport) new ResourceManager().createDirectly(url, MasterReport.class).getResource();
    ReportStructureValidator val = new ReportStructureValidator();
    Assert.assertFalse(val.isValidForFastProcessing(report));
  }
View Full Code Here

  public static void processFastStreamHtml(MasterReport report,
                                           OutputStream out)
      throws ReportProcessingException, IOException, ContentIOException
  {
    ReportStructureValidator validator = new ReportStructureValidator();
    Assert.assertTrue(validator.isValidForFastProcessing(report));

    final ZipRepository zipRepository = new ZipRepository();
    final StreamRepository targetRepository = new StreamRepository(out);
    final ContentLocation targetRoot = targetRepository.getRoot();
    final FastHtmlContentItems contentItems = new FastHtmlContentItems();
View Full Code Here

    sr.getReportHeader().addElement(srInner);

    MasterReport report = new MasterReport();
    report.getReportHeader().addElement(sr);

    ReportStructureValidator v = new ReportStructureValidator();
    Assert.assertFalse(v.isValidForFastProcessing(report));
  }
View Full Code Here

    sr.getReportHeader().addElement(srInner);

    MasterReport report = new MasterReport();
    report.getReportHeader().addSubReport(sr);

    ReportStructureValidator v = new ReportStructureValidator();
    Assert.assertFalse(v.isValidForFastProcessing(report));
  }
View Full Code Here

    sr.getReportHeader().addElement(band);

    MasterReport report = new MasterReport();
    report.getReportHeader().addSubReport(sr);

    ReportStructureValidator v = new ReportStructureValidator();
    Assert.assertFalse(v.isValidForFastProcessing(report));
  }
View Full Code Here

    sr.getReportHeader().addSubReport(srInner);

    MasterReport report = new MasterReport();
    report.getReportHeader().addSubReport(sr);

    ReportStructureValidator v = new ReportStructureValidator();
    Assert.assertTrue(v.isValidForFastProcessing(report));
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.fast.validator.ReportStructureValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.