Class ReportManager
- java.lang.Object
-
- org.openbravo.erpCommon.utility.reporting.ReportManager
-
public class ReportManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
GENERATED_BY_EMAILING
static String
GENERATED_BY_PRINTING
-
Constructor Summary
Constructors Constructor Description ReportManager(String ftpDirectory, String replaceWithFull, String baseDesignPath, String defaultDesignPath, String prefix, boolean multiReport)
ReportManager(ConnectionProvider connectionProvider, String ftpDirectory, String replaceWithFull, String baseDesignPath, String defaultDesignPath, String prefix, boolean multiReport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReprint(Report report, VariablesSecureApp vars)
File
createAttachmentForReport(ConnectionProvider connectionProvider, Report report, String tableId, VariablesSecureApp vars)
File
createAttachmentForReport(ConnectionProvider connectionProvider, Report report, String tableId, VariablesSecureApp vars, String textForAttachment)
net.sf.jasperreports.engine.JasperPrint
processReport(Report report, VariablesSecureApp variables)
net.sf.jasperreports.engine.JasperPrint
processReport(Report report, VariablesSecureApp variables, Map<String,Object> extraDesignParameters)
void
saveTempReport(Report report, VariablesSecureApp vars)
void
setTargetDirectory(Report report)
-
-
-
Field Detail
-
GENERATED_BY_PRINTING
public static final String GENERATED_BY_PRINTING
- See Also:
- Constant Field Values
-
GENERATED_BY_EMAILING
public static final String GENERATED_BY_EMAILING
- See Also:
- Constant Field Values
-
-
Method Detail
-
processReport
public net.sf.jasperreports.engine.JasperPrint processReport(Report report, VariablesSecureApp variables) throws ReportingException
- Throws:
ReportingException
-
processReport
public net.sf.jasperreports.engine.JasperPrint processReport(Report report, VariablesSecureApp variables, Map<String,Object> extraDesignParameters) throws ReportingException
- Throws:
ReportingException
-
setTargetDirectory
public void setTargetDirectory(Report report)
-
saveTempReport
public void saveTempReport(Report report, VariablesSecureApp vars)
-
canReprint
public boolean canReprint(Report report, VariablesSecureApp vars)
-
createAttachmentForReport
public File createAttachmentForReport(ConnectionProvider connectionProvider, Report report, String tableId, VariablesSecureApp vars) throws ReportingException, IOException
- Throws:
ReportingException
IOException
-
createAttachmentForReport
public File createAttachmentForReport(ConnectionProvider connectionProvider, Report report, String tableId, VariablesSecureApp vars, String textForAttachment) throws ReportingException, IOException
- Throws:
ReportingException
IOException
-
-