Package org.adempiere.pipo2
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 Summary
Fields Modifier and Type Field Description static int
MAX_OFFICIAL_ID
static String
PACKOUT_BLOB_FILE_EXTENSION
static String
PackOutVersion
1.0.0
-
Constructor Summary
Constructors Constructor Description PackOut()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addTextElement(TransformerHandler handler, String qName, String text, AttributesImpl atts)
void
copyFile(String sourceName, String destName)
void
export(String packoutDirectory, String destinationPath, PackoutDocument packoutDocument, List<PackoutItem> packoutItems, String trxName)
Start the transformation to XMLPIPOContext
getCtx()
PackoutItem
getCurrentPackoutItem()
int
getExportCount()
String
getExportFile()
Timestamp
getFromDate()
ElementHandler
getHandler(String name)
String
getPackoutDirectory()
PackoutDocument
getPackoutDocument()
boolean
isExportDictionaryEntity()
boolean
isExported(String key)
void
setCtx(Properties ctx)
void
setExportDictionaryEntity(boolean isExportDictionaryEntity)
void
setFromDate(Timestamp fromDate)
String
writeBlob(byte[] data)
-
-
-
Field Detail
-
PackOutVersion
public static final String PackOutVersion
1.0.0- See Also:
- Constant Field Values
-
MAX_OFFICIAL_ID
public static final int MAX_OFFICIAL_ID
- See Also:
- Constant Field Values
-
PACKOUT_BLOB_FILE_EXTENSION
public static final String PACKOUT_BLOB_FILE_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-