Package it.eng.spagobi.engines.exporters

Examples of it.eng.spagobi.engines.exporters.KpiExporter


      HashedMap parameters=new HashedMap();
      String userId=null;
      Object userIdO=serviceRequest.getAttribute("user_id")
      if(userIdO!=null)userId=userIdO.toString();
     
      it.eng.spagobi.engines.exporters.KpiExporter exporter=new KpiExporter();
      tmpFile=exporter.getKpiExportXML(listKpiBlocks, document, userId);

      String outputType = "XML";

      String mimeType = "text/xml";
View Full Code Here


      HashedMap parameters=new HashedMap();
      String userId=null;
      Object userIdO=serviceRequest.getAttribute("user_id")
      if(userIdO!=null)userId=userIdO.toString();

      it.eng.spagobi.engines.exporters.KpiExporter exporter=new KpiExporter();
      tmpFile=exporter.getKpiReportPDF(listKpiBlocks, document, userId);

      String outputType = "PDF";

      String mimeType = "application/pdf";
View Full Code Here

    String mimeType = "application/pdf";
    logger.debug("setting object to return of type SDKExecuteDocumentContent");
    toReturn=new SDKExecutedDocumentContent();
    // call exporter!
    try{
      KpiExporter exporter=new KpiExporter();
      if(ouputType.equals("PDF")){
        logger.debug("call PDF Exporter");
        tmpFile=exporter.getKpiReportPDF(blocksList, biobj, userId);
        toReturn.setFileName(biobj.getLabel()+".pdf");
      }else if (ouputType.equals("XML")){
        mimeType = "text/xml";
        logger.debug("call XML Exporter");
        tmpFile=exporter.getKpiExportXML(blocksList, biobj, userId);
        toReturn.setFileName(biobj.getLabel()+".xml");
      }
    }
    catch (Exception e) {
      logger.error("error while exporting",e);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.exporters.KpiExporter

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.