Package org.adempiere.pipo2
Class PackOut
java.lang.Object
org.adempiere.pipo2.PackOut
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTextElement(TransformerHandler handler, String qName, String text, AttributesImpl atts) voidvoidexport(String packoutDirectory, String destinationPath, PackoutDocument packoutDocument, List<PackoutItem> packoutItems, String trxName) Start the transformation to XMLgetCtx()intgetHandler(String name) booleanbooleanisExported(String key) voidsetCtx(Properties ctx) voidsetExportDictionaryEntity(boolean isExportDictionaryEntity) voidsetFromDate(Timestamp fromDate) writeBlob(byte[] data)
-
Field Details
-
PackOutVersion
1.0.0- See Also:
-
MAX_OFFICIAL_ID
public static final int MAX_OFFICIAL_ID- See Also:
-
PACKOUT_BLOB_FILE_EXTENSION
- See Also:
-
-
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
- Parameters:
sourceName-destName-
-
getCtx
-
writeBlob
- Parameters:
data-- Returns:
- Throws:
IOException
-
getCurrentPackoutItem
- Returns:
- MPackageExpDetail
-
getPackoutDocument
- Returns:
- PackoutDocument
-
getPackoutDirectory
-
getHandler
- Parameters:
name-- Returns:
- ElementHandler
-
getExportCount
public int getExportCount()- Returns:
- number of records exported
-
getExportFile
- Returns:
- absolute path for export file
-
setFromDate
- Parameters:
fromDate-
-
getFromDate
- Returns:
- from date
-
setCtx
- Parameters:
ctx-
-
isExported
-
isExportDictionaryEntity
public boolean isExportDictionaryEntity() -
setExportDictionaryEntity
public void setExportDictionaryEntity(boolean isExportDictionaryEntity)
-