Package org.adempiere.report.jasper
Class AttachmentResourceLoader
java.lang.Object
org.adempiere.report.jasper.AttachmentResourceLoader
Load report resources from attachment to process
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetReportFile
(ProcessInfo processInfo, String reportPath) Get report file from process attachmentgetResourceBundle
(String bundleName, Language currLang) Get property resource file from process attachmentFile[]
getSubreports
(String reportPath) Get subreports and other resources (for e.g images) from attachment.static boolean
-
Constructor Details
-
AttachmentResourceLoader
- Parameters:
destinationFolder
-
-
-
Method Details
-
getReportFile
Get report file from process attachment- Parameters:
reportPath
- must of syntax attachment:filename- Returns:
- File
-
getResourceBundle
Get property resource file from process attachment- Parameters:
bundleName
-currLang
-- Returns:
- File
-
getSubreports
Get subreports and other resources (for e.g images) from attachment. Assume all other jasper attachment is subreport.- Parameters:
reportPath
-- Returns:
- File[] of subreports
-
isAttachmentResourcePath
- Parameters:
path
-- Returns:
- true if path starts with "attachment:"
-