Class ImportCSVProcess

java.lang.Object
org.compiere.process.SvrProcess
org.idempiere.process.ImportCSVProcess
All Implemented Interfaces:
EventListener, DataStatusListener, ProcessCall

public class ImportCSVProcess extends SvrProcess implements DataStatusListener
  • Constructor Details

    • ImportCSVProcess

      public ImportCSVProcess()
  • Method Details

    • prepare

      protected void prepare()
      Description copied from class: SvrProcess
      Prepare process - e.g., get Parameters.
      
      		ProcessInfoParameter[] para = getParameter();
      		for (int i = 0; i < para.length; i++)
      		{
      			String name = para[i].getParameterName();
      			if (para[i].getParameter() == null)
      				;
      			else if (name.equals("A_Asset_Group_ID"))
      				p_A_Asset_Group_ID = para[i].getParameterAsInt();
      			else if (name.equals("GuaranteeDate"))
      				p_GuaranteeDate = (Timestamp)para[i].getParameter();
      			else if (name.equals("AttachAsset"))
      				p_AttachAsset = "Y".equals(para[i].getParameter());
      			else
      				log.log(Level.SEVERE, "Unknown Parameter: " + name);
      		}
        
      Specified by:
      prepare in class SvrProcess
      See Also:
    • doIt

      protected String doIt() throws Exception
      Description copied from class: SvrProcess
      Process implementation class will override this method to execution process actions.
      Specified by:
      doIt in class SvrProcess
      Returns:
      Message (variables are parsed)
      Throws:
      Exception - if not successful e.g. throw new AdempiereUserError ("@FillMandatory@ @C_BankAccount_ID@");
    • initGridTab

      protected void initGridTab() throws Exception
      Throws:
      Exception
    • initImporter

      protected IGridTabImporter initImporter() throws Exception
      Throws:
      Exception
    • importFile

      protected void importFile(String filePath, IGridTabImporter csvImporter, GridTab activeTab, List<GridTab> childTabs) throws Exception
      Throws:
      Exception
    • dataStatusChanged

      public void dataStatusChanged(DataStatusEvent e)
      Description copied from interface: DataStatusListener
      Data Changed
      Specified by:
      dataStatusChanged in interface DataStatusListener
      Parameters:
      e -
      See Also: