Package org.idempiere.process
Class MoveClient
java.lang.Object
org.compiere.process.SvrProcess
org.idempiere.process.MoveClient
- All Implemented Interfaces:
ProcessCall
Process to move a client from a external database to current, or copy a template in current database
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.compiere.process.SvrProcess
log, MSG_InvalidArguments, MSG_SaveErrorRowNotFound, PROCESS_INFO_CTX_KEY, PROCESS_UI_CTX_KEY, processUI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
doIt()
Perform process.static MoveClient.FallbackRecord
getFallbackRecordByTableName
(List<MoveClient.FallbackRecord> records, String tableName, String foreignUUID) Get the fallback record associated to the tablename in the fallbackRecords listparseFallbackRecordsString
(String fallbackRecordsString) Convert a string of table=ID (or table=UUID) to a List of String,PO mapsprotected void
prepare()
Prepare - e.g., get Parameters.Methods inherited from class org.compiere.process.SvrProcess
addBufferLog, addLog, addLog, addLog, commit, commitEx, doIt, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getCtx, getName, getParameter, getProcessInfo, getRecord_ID, getRecord_IDs, getRecord_UU, getRecord_UUs, getTable_ID, isLocked, lockObject, postProcess, rollback, saveProgress, saveStatus, setProcessUI, startProcess, statusUpdate, unlockObject, updateProgress
-
Constructor Details
-
MoveClient
public MoveClient()
-
-
Method Details
-
prepare
protected void prepare()Prepare - e.g., get Parameters.- Specified by:
prepare
in classSvrProcess
- See Also:
-
doIt
Perform process.- Specified by:
doIt
in classSvrProcess
- Returns:
- Message (variables are parsed)
- Throws:
Exception
- if not successful
-
parseFallbackRecordsString
Convert a string of table=ID (or table=UUID) to a List of String,PO maps- Parameters:
fallbackRecordsString
-- Returns:
-
getFallbackRecordByTableName
public static MoveClient.FallbackRecord getFallbackRecordByTableName(List<MoveClient.FallbackRecord> records, String tableName, String foreignUUID) Get the fallback record associated to the tablename in the fallbackRecords list- Parameters:
fallbackRecords
-tableName
-foreignUUID
-- Returns:
-