Class 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 Detail

      • ServerBean

        public ServerBean()
    • 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:
        postImmediate in interface Server
        Parameters:
        ctx - Client Context
        AD_Client_ID - Client ID of Document
        AD_Table_ID - Table ID of Document
        Record_ID - Record ID of this document
        force - force posting
        Returns:
        null, if success or error message
      • workflow

        public ProcessInfo workflow​(Properties ctx,
                                    ProcessInfo pi,
                                    int AD_Workflow_ID)
        Run Workflow (and wait) on Server
        Specified by:
        workflow in interface Server
        Parameters:
        ctx - Context
        pi - Process Info
        AD_Workflow_ID - id
        Returns:
        process info
      • executeTask

        public String executeTask​(Properties ctx,
                                  int AD_Task_ID)
        Execute task on server
        Specified by:
        executeTask in interface Server
        Parameters:
        ctx - Context
        AD_Task_ID - task
        Returns:
        execution trace
      • cacheReset

        public int cacheReset​(Properties ctx,
                              String tableName,
                              int Record_ID)
        Cash Reset
        Specified by:
        cacheReset in interface Server
        Parameters:
        ctx - Context
        tableName - table name
        Record_ID - record or 0 for all
        Returns:
        number of records reset
      • sendEMail

        public String sendEMail​(Properties ctx,
                                EMail email)
        Description copied from interface: Server
        Send EMail from Server
        Specified by:
        sendEMail in interface Server
        Parameters:
        ctx - Context
        Returns:
        message return from email server