Package org.adempiere.report.jasper
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 Summary
Fields Modifier and Type Field Description static String
IDEMPIERE_REPORT_TYPE
-
Constructor Summary
Constructors Constructor Description ReportStarter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Connection
getConnection()
Returns read only connection for reporting author Ashley Ramdassprotected org.adempiere.report.jasper.ReportStarter.JasperInfo
getJasperInfo(File reportFile)
Process/Compile report file author rlemeillprotected org.adempiere.report.jasper.ReportStarter.JasperInfo
getJasperInfo(URL reportURL)
protected Object
getReport(String reportPath)
author alinvprotected Object
getReport(String reportPath, String reportType)
author alinvstatic JRViewerProvider
getViewerProvider()
static JRViewerProviderList
getViewerProviderList()
void
setProcessUI(IProcessUI processUI)
boolean
startProcess(Properties ctx, ProcessInfo pi, Trx trx)
Start the process.
-
-
-
Field Detail
-
IDEMPIERE_REPORT_TYPE
public static final String IDEMPIERE_REPORT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 process. It should only return false, if the function could not be performed as this causes the process to abort. author rlemeill- Specified by:
startProcess
in interfaceProcessCall
- Parameters:
ctx
- contextpi
- standard process infotrx
-- 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)
- Specified by:
setProcessUI
in interfaceProcessCall
-
-