org.adempiere.pipo
Class PackOut
java.lang.Object
org.compiere.process.SvrProcess
org.adempiere.pipo.PackOut
- All Implemented Interfaces:
- ProcessCall
public class PackOut
- extends SvrProcess
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
|
Method Summary |
void |
copyFile(String sourceName,
String copyName)
|
void |
createAdElement(int Ad_Element_id,
TransformerHandler packOutDocument)
|
void |
createData(int table_id,
String sql,
TransformerHandler packOutDocument)
|
void |
createDistributeFile(String FileName,
String Source_Directory,
String ReleaseNo,
String Target_Directory,
TransformerHandler packOutDocument)
|
void |
createDynamicRuleValidation(int AD_Val_Rule_ID,
TransformerHandler packOutDocument)
|
void |
createFieldGroupElement(int FieldGroup_id,
TransformerHandler packOutDocument)
|
void |
createForm(int AD_Form_ID,
TransformerHandler packOutDocument)
|
void |
createImpFormat(int import_id,
TransformerHandler packOutDocument)
|
void |
createMenu(int AD_Menu_ID,
TransformerHandler packOutDocument)
|
void |
createMessage(int AD_Message_ID,
TransformerHandler packOutDocument)
|
void |
createPrintFormat(int AD_PrintFormat_ID,
TransformerHandler packOutDocument)
|
void |
createProcess(int AD_Process_ID,
TransformerHandler packOutDocument)
|
void |
createReference(int Reference_id,
TransformerHandler packOutDocument)
|
void |
createReportview(int Reportview_id,
TransformerHandler packOutDocument)
|
void |
createRoles(int Role_id,
TransformerHandler packOutDocument)
|
void |
createSnipit(String FileDir,
String FileName,
String OldCode,
String NewCode,
String ReleaseNo,
TransformerHandler packOutDocument)
|
void |
createSQL(String SQLStatement,
String DBType,
TransformerHandler packOutDocument)
|
void |
createTable(int table_id,
TransformerHandler packOutDocument)
|
void |
createTask(int AD_Task_ID,
TransformerHandler packOutDocument)
|
void |
createTranslations(String parentTableName,
int parentID,
TransformerHandler packOutDocument)
|
void |
createWindow(int AD_Window_ID,
TransformerHandler packOutDocument)
|
void |
createWorkflow(int AD_Workflow_ID,
TransformerHandler packOutDocument)
|
protected String |
doIt()
Start the transformation to XML |
Properties |
getCtx()
Get Properties |
protected void |
prepare()
Prepare - e.g., get Parameters. |
| Methods inherited from class org.compiere.process.SvrProcess |
addLog, addLog, commit, commitEx, doIt, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getName, getParameter, getProcessInfo, getRecord_ID, getTable_ID, isLocked, lockObject, postProcess, rollback, startProcess, unlockObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackOut
public PackOut()
prepare
protected void prepare()
- Prepare - e.g., get Parameters.
- Specified by:
prepare in class SvrProcess
doIt
protected String doIt()
throws Exception
- Start the transformation to XML
- Specified by:
doIt in class SvrProcess
- Returns:
- info
- Throws:
Exception
createMenu
public void createMenu(int AD_Menu_ID,
TransformerHandler packOutDocument)
throws Exception
- Parameters:
AD_Menu_ID - packOutDocument -
- Throws:
Exception
createPrintFormat
public void createPrintFormat(int AD_PrintFormat_ID,
TransformerHandler packOutDocument)
throws Exception
- Parameters:
AD_PrintFormat_ID - packOutDocument -
- Throws:
Exception
createMessage
public void createMessage(int AD_Message_ID,
TransformerHandler packOutDocument)
throws Exception
- Parameters:
AD_Message_ID - packOutDocument -
- Throws:
Exception
createDynamicRuleValidation
public void createDynamicRuleValidation(int AD_Val_Rule_ID,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
AD_Val_Rule_ID - packOutDocument -
- Throws:
Exception
SAXException
createWorkflow
public void createWorkflow(int AD_Workflow_ID,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
AD_Workflow_ID - packOutDocument -
- Throws:
SAXException
createDistributeFile
public void createDistributeFile(String FileName,
String Source_Directory,
String ReleaseNo,
String Target_Directory,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
FileName - Source_Directory - ReleaseNo - Target_Directory - atts - packOutDocument -
- Throws:
SAXException
createForm
public void createForm(int AD_Form_ID,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
AD_Form_ID - packOutDocument -
- Throws:
SAXException
createTask
public void createTask(int AD_Task_ID,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
AD_Task_ID - packOutDocument -
- Throws:
SAXException
createProcess
public void createProcess(int AD_Process_ID,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
AD_Process_ID - packOutDocument -
- Throws:
SAXException
createWindow
public void createWindow(int AD_Window_ID,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
AD_Window_ID - packOutDocument -
- Throws:
SAXException
createData
public void createData(int table_id,
String sql,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
table_id - sql - packOutDocument -
- Throws:
SAXException
createReportview
public void createReportview(int Reportview_id,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
Reportview_id - packOutDocument -
- Throws:
SAXException
createSQL
public void createSQL(String SQLStatement,
String DBType,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
SQLStatement - DBType - packOutDocument -
- Throws:
SAXException
createSnipit
public void createSnipit(String FileDir,
String FileName,
String OldCode,
String NewCode,
String ReleaseNo,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
FileDir - FileName - OldCode - NewCode - ReleaseNo - atts - packOutDocument -
- Throws:
SAXException
createRoles
public void createRoles(int Role_id,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
Role_id - packOutDocument -
- Throws:
SAXException
createReference
public void createReference(int Reference_id,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
Reference_id - packOutDocument -
- Throws:
SAXException
createImpFormat
public void createImpFormat(int import_id,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
import_id - packOutDocument -
- Throws:
SAXException
createTable
public void createTable(int table_id,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
table_id - packOutDocument -
- Throws:
SAXException
createFieldGroupElement
public void createFieldGroupElement(int FieldGroup_id,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
FieldGroup_id - packOutDocument -
- Throws:
SAXException
createAdElement
public void createAdElement(int Ad_Element_id,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
Reference_id - packOutDocument -
- Throws:
SAXException
createTranslations
public void createTranslations(String parentTableName,
int parentID,
TransformerHandler packOutDocument)
throws SAXException
- Parameters:
parentTableName - parentID - packOutDocument -
- Throws:
SAXException
copyFile
public void copyFile(String sourceName,
String copyName)
getCtx
public Properties getCtx()
- Description copied from class:
SvrProcess
- Get Properties
- Overrides:
getCtx in class SvrProcess
- Returns:
- Properties
Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.