Package org.compiere.print
Class ArchiveEngine
- java.lang.Object
-
- org.compiere.print.ArchiveEngine
-
public class ArchiveEngine extends Object
Archive Engine. Based on Settings on Client Level Keys set for - Menu Reports - AD_Report_ID - Win Report - AD_Table_ID - Documents - AD_Table_ID and Record_ID and C_Customer_ID- Version:
- $Id: ArchiveEngine.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
archive(File pdfFile, PrintInfo info)
Create Archive.byte[]
archive(LayoutEngine layout, PrintInfo info)
Get/Create Archive.static ArchiveEngine
get()
Get Archive Enginestatic boolean
isValid(LayoutEngine layout)
Can we archive the document?
-
-
-
Method Detail
-
archive
public byte[] archive(LayoutEngine layout, PrintInfo info)
Get/Create Archive.- Parameters:
layout
- layoutinfo
- print info- Returns:
- existing document or newly created if Client enabled archiving. Will return NULL if archiving not enabled
-
archive
public void archive(File pdfFile, PrintInfo info)
Create Archive.- Parameters:
pdfFile
-info
- print info
-
isValid
public static boolean isValid(LayoutEngine layout)
Can we archive the document?- Parameters:
layout
- layout- Returns:
- true if can be archived
-
get
public static ArchiveEngine get()
Get Archive Engine- Returns:
- engine
-
-