Examples of SimpleUrlFactory


Examples of org.pentaho.platform.util.web.SimpleUrlFactory

  }

  public void testWidget1() {
    startTest();

    SimpleUrlFactory urlFactory = new SimpleUrlFactory( "/testurl?" ); //$NON-NLS-1$
    ArrayList messages = new ArrayList();

    DashboardWidgetComponent widget =
        new DashboardWidgetComponent( DashboardWidgetComponent.TYPE_DIAL, getSolutionPath()
            + "/samples/charts/dashboardwidget1.dial.xml", 300, 300, urlFactory, messages ); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

    String baseUrl = "http://testhost:testport/testcontent"; //$NON-NLS-1$
    Map<String, IParameterProvider> parameterProviders = new HashMap<String, IParameterProvider>();
    SimpleParameterProvider requestParams = new SimpleParameterProvider();
    parameterProviders.put( IParameterProvider.SCOPE_REQUEST, requestParams );
    SimpleUrlFactory urlFactory = new SimpleUrlFactory( baseUrl + "?" ); //$NON-NLS-1$
    List<String> messages = new ArrayList<String>();
    contentGenerator.setOutputHandler( outputHandler );
    MimeTypeListener mimeTypeListener = new MimeTypeListener();
    outputHandler.setMimeTypeListener( mimeTypeListener );
    contentGenerator.setMessagesList( messages );
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

    }

    int width = (int) parameterProvider.getLongParameter( "image-width", 150 ); //$NON-NLS-1$
    int height = (int) parameterProvider.getLongParameter( "image-height", 150 ); //$NON-NLS-1$

    SimpleUrlFactory urlFactory = new SimpleUrlFactory( urlDrillTemplate );

    // Determine the type of chart we are building; these values can come from the chart xml definition, or
    // from the parameter provider. Try the parameter provider first, for performance reasons.

    String chartTypeStr = parameterProvider.getStringParameter( ChartDefinition.TYPE_NODE_NAME, null );
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

    }

    int width = (int) parameterProvider.getLongParameter( "image-width", 150 ); //$NON-NLS-1$
    int height = (int) parameterProvider.getLongParameter( "image-height", 150 ); //$NON-NLS-1$

    SimpleUrlFactory urlFactory = new SimpleUrlFactory( urlDrillTemplate );

    PieDatasetChartComponent chartComponent = null;
    try {
      chartComponent =
          new PieDatasetChartComponent( JFreeChartEngine.PIE_CHART_TYPE, actionPath, width, height, urlFactory,
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

    }

    int width = (int) parameterProvider.getLongParameter( "image-width", 150 ); //$NON-NLS-1$
    int height = (int) parameterProvider.getLongParameter( "image-height", 150 ); //$NON-NLS-1$

    SimpleUrlFactory urlFactory = new SimpleUrlFactory( linkUrl );

    DashboardWidgetComponent widget = null;
    try {
      widget =
          new DashboardWidgetComponent( DashboardWidgetComponent.TYPE_DIAL, solutionName + File.separator + actionPath
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

   * context.getStatus()); //$NON-NLS-1$ finishTest(); }
   */
  public void testActionComponent() {
    startTest();
    IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
    IPentahoUrlFactory urlFactory = new SimpleUrlFactory( requestContext.getContextPath() );
    ArrayList messages = new ArrayList();
    SimpleParameterProvider parameterProvider = new SimpleParameterProvider();
    parameterProvider.setParameter( "solution", "test" ); //$NON-NLS-1$ //$NON-NLS-2$
    parameterProvider.setParameter( "path", "reporting" ); //$NON-NLS-1$ //$NON-NLS-2$
    parameterProvider.setParameter( "action", "custom-parameter-page-example.xaction" ); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

    String instanceId = null;
    ISolutionEngine solutionEngine = PentahoSystem.get( ISolutionEngine.class, session );
    solutionEngine.setLoggingLevel( ILogger.ERROR );
    solutionEngine.init( session );
    HashMap parameterProviderMap = new HashMap();
    IPentahoUrlFactory urlFactory = new SimpleUrlFactory( "" );
    IRuntimeContext runtimeContext = null;
    Reader reader = null;
    try {
      File file = new File( actionSequencePath + actionSequence );
      StringBuilder str = new StringBuilder();
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

    contentGenerator.setOutputHandler( outputHandler );
    contentGenerator.setMessagesList( new ArrayList<String>() );

    contentGenerator.setSession( session );
    contentGenerator.setUrlFactory( new SimpleUrlFactory( BASE_URL + "?" ) );

    assertNotNull( "contentGenerator is null", contentGenerator );
    assertNotNull( "Logger is null", contentGenerator.getLogger() );
  }
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

          sessionParameters = new PentahoSessionParameterProvider( session );
        }

        parameterProviderMap.put( SCOPE_SESSION, sessionParameters );

        IPentahoUrlFactory urlFactory = new SimpleUrlFactory( baseUrl );

        ArrayList messages = new ArrayList();

        IRuntimeContext context = null;
        try {
View Full Code Here

Examples of org.pentaho.platform.util.web.SimpleUrlFactory

        solutionEngine.setLoggingLevel( PentahoSystem.loggingLevel );
        solutionEngine.init( session );

        String baseUrl = ""; //$NON-NLS-1$
        HashMap parameterProviderMap = new HashMap();
        IPentahoUrlFactory urlFactory = new SimpleUrlFactory( baseUrl );

        ArrayList messages = new ArrayList();

        IRuntimeContext context = null;
        try {
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.