Package org.pentaho.platform.api.engine

Examples of org.pentaho.platform.api.engine.IPentahoRequestContext


  @Override
  public Document getXmlContent() {

    // Create a document that describes the result
    Document result = DocumentHelper.createDocument();
    IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
    setXslProperty( "baseUrl", requestContext.getContextPath() ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    setXslProperty( "fullyQualifiedServerUrl", PentahoSystem.getApplicationContext().getFullyQualifiedServerURL() ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

    String mapName = "chart" + AbstractChartComponent.chartCount++; //$NON-NLS-1$
    Document chartDefinition = jcrHelper.getSolutionDocument( definitionPath, RepositoryFilePermission.READ );
    if ( chartDefinition == null ) {
View Full Code Here


    JFreeChartEngine.saveChart( widget, dialTitle, units, filePathWithoutExtension, width, height,
        JFreeChartEngine.OUTPUT_PNG, printWriter, this );

    // Create a document that describes the result
    Document result = DocumentHelper.createDocument();
    IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
    setXslProperty( "baseUrl", requestContext.getContextPath() ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    setXslProperty( "fullyQualifiedServerUrl", PentahoSystem.getApplicationContext().getFullyQualifiedServerURL() ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    Element root = result.addElement( "widget" ); //$NON-NLS-1$
    root.addElement( "title" ).setText( title ); //$NON-NLS-1$
    root.addElement( "units" ).setText( units ); //$NON-NLS-1$
    root.addElement( "width" ).setText( Integer.toString( width ) ); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.engine.IPentahoRequestContext

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.