Package org.compiere.interfaces.impl
Class ServerBean
- java.lang.Object
-
- org.compiere.interfaces.impl.ServerBean
-
- All Implemented Interfaces:
Server
public class ServerBean extends Object implements Server
Adempiere Server Bean.- Version:
- $Id: ServerBean.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $
- Author:
- Jorg Janke, Low Heng Sin - Added remote transaction management - Added support to run db process remotely on server, Teo Sarca, SC ARHIPAC SERVICE SRL - BF [ 1757523 ]
-
-
Constructor Summary
Constructors Constructor Description ServerBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcacheReset(Properties ctx, String tableName, int Record_ID)Cash ResetProcessInfodbProcess(Properties ctx, ProcessInfo processInfo, String procedureName)Execute db proces on serverStringexecuteTask(Properties ctx, int AD_Task_ID)Execute task on serverStringpostImmediate(Properties ctx, int AD_Client_ID, int AD_Table_ID, int Record_ID, boolean force)Post ImmediateProcessInfoprocess(Properties ctx, ProcessInfo pi)Process RemoteStringsendEMail(Properties ctx, EMail email)Send EMail from ServerProcessInfoworkflow(Properties ctx, ProcessInfo pi, int AD_Workflow_ID)Run Workflow (and wait) on Server
-
-
-
Method Detail
-
postImmediate
public String postImmediate(Properties ctx, int AD_Client_ID, int AD_Table_ID, int Record_ID, boolean force)
Post Immediate- Specified by:
postImmediatein interfaceServer- Parameters:
ctx- Client ContextAD_Client_ID- Client ID of DocumentAD_Table_ID- Table ID of DocumentRecord_ID- Record ID of this documentforce- force posting- Returns:
- null, if success or error message
-
process
public ProcessInfo process(Properties ctx, ProcessInfo pi)
Process Remote
-
workflow
public ProcessInfo workflow(Properties ctx, ProcessInfo pi, int AD_Workflow_ID)
Run Workflow (and wait) on Server
-
executeTask
public String executeTask(Properties ctx, int AD_Task_ID)
Execute task on server- Specified by:
executeTaskin interfaceServer- Parameters:
ctx- ContextAD_Task_ID- task- Returns:
- execution trace
-
cacheReset
public int cacheReset(Properties ctx, String tableName, int Record_ID)
Cash Reset- Specified by:
cacheResetin interfaceServer- Parameters:
ctx- ContexttableName- table nameRecord_ID- record or 0 for all- Returns:
- number of records reset
-
dbProcess
public ProcessInfo dbProcess(Properties ctx, ProcessInfo processInfo, String procedureName)
Execute db proces on server
-
-