Class ReportStarter

java.lang.Object
org.adempiere.report.jasper.ReportStarter
All Implemented Interfaces:
ClientProcess, ProcessCall

public class ReportStarter extends Object implements ProcessCall, ClientProcess
Author:
rlemeill, Ashley Ramdass, victor.perez@e-evolution.com see FR 1906632 https://sourceforge.net/p/adempiere/feature-requests/382/, Teo Sarca, www.arhipac.ro
  • FR [ 2581145 ] Jasper: Provide parameters info, Cristina Ghita, www.arhipac.ro
  • BF [ 2778472 ] Subreport bug
    • Field Details

    • Constructor Details

      • ReportStarter

        public ReportStarter()
    • Method Details

      • getConnection

        protected Connection getConnection()
        Returns read only connection for reporting author Ashley Ramdass
        Returns:
        Connection DB Connection
      • startProcess

        public boolean startProcess(Properties ctx, ProcessInfo pi, Trx trx)
        Start the Jasper Report process.
        Setup context class loader and do the actual work in startProcess0(Properties, ProcessInfo, Trx).
        Specified by:
        startProcess in interface ProcessCall
        Parameters:
        ctx - context
        pi - standard process info
        trx -
        Returns:
        true if success
      • getViewerProviderList

        public static JRViewerProviderList getViewerProviderList()
        Returns:
        JRViewerProviderList
      • getViewerProvider

        public static JRViewerProvider getViewerProvider()
        Returns:
        JRViewerProvider
      • getReport

        protected Object getReport(String reportPath, String reportType)
        author alinv
        Parameters:
        reportPath -
        reportType - optional postfix parameter to select a different jasper report file
        Returns:
        File or URL
      • getReport

        protected Object getReport(String reportPath)
        author alinv
        Parameters:
        reportPath -
        Returns:
        File or URL
      • getJasperInfo

        protected org.adempiere.report.jasper.ReportStarter.JasperInfo getJasperInfo(File reportFile)
        Process/Compile report file author rlemeill
        Parameters:
        reportFile -
        Returns:
        JasperInfo
      • getJasperInfo

        protected org.adempiere.report.jasper.ReportStarter.JasperInfo getJasperInfo(URL reportURL)
      • setProcessUI

        public void setProcessUI(IProcessUI processUI)
        Description copied from interface: ProcessCall
        Set process UI interface
        Specified by:
        setProcessUI in interface ProcessCall