Package br.com.caelum.vraptor.jasperreports.download

Examples of br.com.caelum.vraptor.jasperreports.download.ReportDownload


      } else
        throw new NullPointerException("You've just returned a Null ReportDownload. Consider redirecting to another page/logic");
    }
   
    if(reportDownload instanceof ReportDownload){
      ReportDownload download = (ReportDownload) reportDownload;
      download.setExporter(exporter);
    }
   
    if(reportDownload instanceof ReportsDownload){
      ReportsDownload download = (ReportsDownload) reportDownload;
      download.setExporter(exporter);
    }
   
    if(reportDownload instanceof BatchReportsDownload){
      BatchReportsDownload download = (BatchReportsDownload) reportDownload;
      download.setExporter(exporter);
    }
   
    logger.debug("Injecting {} in {}", exporter.getClass().getName(), reportDownload.getClass().getName());
   
    stack.next(method, instance);
View Full Code Here


  @Override
  public Download resolveDownload(Object result) throws IOException {
   
    if(result instanceof Report) {
      Report report = (Report) result;
      ReportDownload download = new ReportDownload(report, resolver.getExportFormat(), resolver.doDownload());
      download.setExporter(exporter);
      return download;
    }
   
    if(result instanceof ReportDownload) {
      ReportDownload download = (ReportDownload) result;
      download.setExporter(exporter);
      return download;
    }
   
    if(result instanceof ReportsDownload) {
      ReportsDownload download = (ReportsDownload) result;
      download.setExporter(exporter);
      return download;
    }
   
    if(result instanceof BatchReportsDownload) {
      BatchReportsDownload download = (BatchReportsDownload) result;
      download.setExporter(exporter);
      return download;
    }

    return super.resolveDownload(result);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.jasperreports.download.ReportDownload

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.