Examples of createDirectly()


Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

    try
    {
      ResourceManager manager = new ResourceManager();
      manager.registerDefaults();
      Resource res = manager.createDirectly(file, MasterReport.class);
      return (MasterReport) res.getResource();
    }
    catch (Exception e)
    {
      throw new ReportDefinitionException("Parsing failed", e);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

        final ResourceManager resourceManager = new ResourceManager();
        resourceManager.registerDefaults();
        try
        {
            final Resource res = resourceManager.createDirectly("res://com/sun/star/report/pentaho/parser/selectors.properties", Properties.class);
            final Properties resProps = (Properties) res.getResource();
            props.putAll(resProps);
        }
        catch (ResourceException e)
        {
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

          }
        }

        final byte[] responseBody = method.getResponseBody();
        final ResourceManager manager = new ResourceManager();
        final Resource resource = manager.createDirectly(responseBody, ParameterDocument.class);
        final ParameterDocument o = (ParameterDocument) resource.getResource();
        parameters = o.getParameter();
      }
      catch (Exception e)
      {
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

  public void testLayoutEmptyBand() throws Exception
  {
    final URL url = ReportLayouterTest.class.getResource("report-layouter-01.prpt");
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource resource = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) resource.getResource();

    final ReportLayouter l = new ReportLayouter
        (new ReportRenderContext(report, report, null, new GlobalAuthenticationStore()));
    final LogicalPageBox layout = l.layout();
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

    final URL resource = getClass().getResource("Prd-4634.prpt");
    assertNotNull(resource);

    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final TestRootBandRenderer r = new TestRootBandRenderer(report.getReportHeader(), reportContext);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

    final URL resource = getClass().getResource("Prd-4634.prpt");
    assertNotNull(resource);

    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final ReportFooter reportFooter = report.getReportFooter();
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

    final URL resource = getClass().getResource("Prd-4634.prpt");
    assertNotNull(resource);

    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final TestRootBandRenderer r = new TestRootBandRenderer(report.getPageFooter(), reportContext);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

    final URL resource = getClass().getResource("Prd-4638.prpt");
    assertNotNull(resource);

    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final TestRootBandRenderer r = new TestRootBandRenderer(report.getPageFooter(), reportContext);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

  {
    final URL url = getClass().getResource("Prd-2054.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();

    ReportRenderContext rcontext = new ReportRenderContext(report, report, null, new GlobalAuthenticationStore());
    final ReportLayouter layouter = new ReportLayouter(rcontext);
    final LogicalPageBox logicalPageBox = layouter.layout();
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly()

    final URL resource = getClass().getResource("Prd-4637.prpt");
    assertNotNull(resource);

    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final TestRootBandRenderer r = new TestRootBandRenderer(report.getPageFooter(), reportContext);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.