Class PackOut

java.lang.Object
org.adempiere.pipo2.PackOut

public class PackOut extends Object
Convert AD to XML
Version:
$Id: PackOut.java,v 1.0 Contributor: William G. Heath - Export of workflows and dynamic validations
Author:
Robert Klein, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1819315 ] PackOut: fix xml indentation not working
  • BF [ 1819319 ] PackOut: use just active AD_Package_Exp_Detail lines
    • Field Details

    • Constructor Details

      • PackOut

        public PackOut()
    • Method Details

      • addTextElement

        public static void addTextElement(TransformerHandler handler, String qName, String text, AttributesImpl atts) throws SAXException
        Throws:
        SAXException
      • export

        public void export(String packoutDirectory, String destinationPath, PackoutDocument packoutDocument, List<PackoutItem> packoutItems, String trxName) throws Exception
        Start the transformation to XML
        Parameters:
        packoutDirectory -
        destinationPath -
        packoutDocument -
        packoutItems -
        trxName -
        Throws:
        Exception
      • copyFile

        public void copyFile(String sourceName, String destName)
        Parameters:
        sourceName -
        destName -
      • getCtx

        public PIPOContext getCtx()
      • writeBlob

        public String writeBlob(byte[] data) throws IOException
        Parameters:
        data -
        Returns:
        Throws:
        IOException
      • getCurrentPackoutItem

        public PackoutItem getCurrentPackoutItem()
        Returns:
        MPackageExpDetail
      • getPackoutDocument

        public PackoutDocument getPackoutDocument()
        Returns:
        PackoutDocument
      • getPackoutDirectory

        public String getPackoutDirectory()
      • getHandler

        public ElementHandler getHandler(String name)
        Parameters:
        name -
        Returns:
        ElementHandler
      • getExportCount

        public int getExportCount()
        Returns:
        number of records exported
      • getExportFile

        public String getExportFile()
        Returns:
        absolute path for export file
      • setFromDate

        public void setFromDate(Timestamp fromDate)
        Parameters:
        fromDate -
      • getFromDate

        public Timestamp getFromDate()
        Returns:
        from date
      • setCtx

        public void setCtx(Properties ctx)
        Parameters:
        ctx -
      • isExported

        public boolean isExported(String key)
      • isExportDictionaryEntity

        public boolean isExportDictionaryEntity()
      • setExportDictionaryEntity

        public void setExportDictionaryEntity(boolean isExportDictionaryEntity)