Class 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 Detail

      • archive

        public byte[] archive​(LayoutEngine layout,
                              PrintInfo info)
        Get/Create Archive.
        Parameters:
        layout - layout
        info - 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