Package pt.webdetails.cpf

Examples of pt.webdetails.cpf.InterPluginCall


    Map<String, Object> params = new HashMap<String, Object>();
    params.put( "dataAccessId", id );
    params.put( "path", path );
    logger.info( "[Timing] Executing autoinclude query: "
        + ( new SimpleDateFormat( "HH:mm:ss.SSS" ) ).format( new Date() ) );
    InterPluginCall ipc = new InterPluginCall( InterPluginCall.CDA, "doQuery", params );
    String reply = ipc.callInPluginClassLoader();
    logger.info( "[Timing] Done executing autoinclude query: "
        + ( new SimpleDateFormat( "HH:mm:ss.SSS" ) ).format( new Date() ) );
    return reply;
  }
View Full Code Here


    try {
      Map<String, Object> params = new HashMap<String, Object>();

      params.put( "path", cda );
      params.put( "outputType", "xml" );
      InterPluginCall ipc = new InterPluginCall( InterPluginCall.CDA, "listQueries", params );
      String reply = ipc.call();
      Document queryList = reader.read( new StringReader( reply ) );
      @SuppressWarnings( "unchecked" )
      List<Node> queries = queryList.selectNodes( "//ResultSet/Row/Col[1]" );
      for ( Node query : queries ) {
        queryOutput.add( query.getText() );
View Full Code Here

   * will add a json entry for each data access id in the cda queries applicable to currents dashboard.
   */
  private JSONObject processAutoIncludes( String dashboardPath, Document config ) {
    JSONObject queries = new JSONObject();
    /* Bail out immediately if CDA isn' available */
    if ( !( new InterPluginCall( InterPluginCall.CDA, "" ) ).pluginExists() ) {
      logger.warn( "Couldn't find CDA. Skipping auto-includes" );
      return queries;
    }

    /* Bail out if cdf/includes folder does not exists */
 
View Full Code Here

    try {
      Map<String, Object> params = new HashMap<String, Object>();

      params.put( "path", cda );
      params.put( "outputType", "xml" );
      InterPluginCall ipc = new InterPluginCall( InterPluginCall.CDA, "listQueries", params );
      String reply = ipc.call();
      Document queryList = reader.read( new StringReader( reply ) );
      @SuppressWarnings( "unchecked" )
      List<Node> queries = queryList.selectNodes( "//ResultSet/Row/Col[1]" );
      for ( Node query : queries ) {
        queryOutput.add( query.getText() );
View Full Code Here

    Map<String, Object> params = new HashMap<String, Object>();
    params.put( "dataAccessId", id );
    params.put( "path", path );
    logger.info( "[Timing] Executing autoinclude query: "
        + ( new SimpleDateFormat( "HH:mm:ss.SSS" ) ).format( new Date() ) );
    InterPluginCall ipc = new InterPluginCall( InterPluginCall.CDA, "doQueryInterPluginOld", params );
    String reply = ipc.callInPluginClassLoader();
    logger.info( "[Timing] Done executing autoinclude query: "
        + ( new SimpleDateFormat( "HH:mm:ss.SSS" ) ).format( new Date() ) );
    return reply;
  }
View Full Code Here

    try {
      Map<String, Object> params = new HashMap<String, Object>();

      params.put( "path", cda );
      params.put( "outputType", "xml" );
      InterPluginCall ipc = new InterPluginCall( InterPluginCall.CDA, "listQueriesInterPluginOld", params );
      String reply = ipc.call();
      Document queryList = reader.read( new StringReader( reply ) );
      @SuppressWarnings( "unchecked" )
      List<Node> queries = queryList.selectNodes( "//ResultSet/Row/Col[1]" );
      for ( Node query : queries ) {
        queryOutput.add( query.getText() );
View Full Code Here

    return DashboardManager.getInstance().getDashboardCdfRunJs(
      wcdfFilePath, options, bypassCacheRead, style );
  }

  private String getCdfContext() {
    InterPluginCall cdfContext = new InterPluginCall( InterPluginCall.CDF,
      "Context" );
    cdfContext.setRequest( getRequest() );
    cdfContext.setRequestParameters( getRequestParameters() );
    return cdfContext.callInPluginClassLoader();
  }
View Full Code Here

  }

  public static String getDataSourceDefinitions( String pluginId, String service, String method, boolean forceRefresh )
    throws Exception {
    PentahoCdeEnvironment.env().getPluginCall( pluginId, service, method );
    InterPluginCall listDATypesCall = new InterPluginCall( new InterPluginCall.Plugin( pluginId ), method );
    // listDATypesCall.setSession(PentahoSessionHolder.getSession()); //TODO: why?
    listDATypesCall.putParameter( "refreshCache", Boolean.toString( forceRefresh ) );
    return listDATypesCall.call();
  }
View Full Code Here

TOP

Related Classes of pt.webdetails.cpf.InterPluginCall

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.