Adempiere 3.5.2a

org.compiere.model
Class MSetup

java.lang.Object
  extended by org.compiere.model.MSetup

public final class MSetup
extends Object

Initial Setup Model

Version:
$Id: MSetup.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • FR [ 1795384 ] Setup: create default accounts records is too rigid

  • Field Summary
    protected  CLogger log
              Logger
     
    Constructor Summary
    MSetup(Properties ctx, int WindowNo)
              Constructor
     
    Method Summary
     boolean createAccounting(KeyNamePair currency, boolean hasProduct, boolean hasBPartner, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, File AccountingFile)
              Create Accounting elements
     boolean createClient(String clientName, String orgName, String userClient, String userOrg)
              Create Client Info
     boolean createEntities(int C_Country_ID, String City, int C_Region_ID, int C_Currency_ID)
              Create Default main entities
     int getAD_Client_ID()
              Get Client
     int getAD_Org_ID()
              Get AD_Org_ID
     int getAD_User_ID()
              Get AD_User_ID
     String getInfo()
              Get Info
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    log

    protected CLogger log
    Logger

    Constructor Detail

    MSetup

    public MSetup(Properties ctx,
                  int WindowNo)
    Constructor

    Parameters:
    ctx - context
    WindowNo - window
    Method Detail

    createClient

    public boolean createClient(String clientName,
                                String orgName,
                                String userClient,
                                String userOrg)
    Create Client Info. - Client, Trees, Org, Role, User, User_Role

    Parameters:
    clientName - client name
    orgName - org name
    userClient - user id client
    userOrg - user id org
    Returns:
    true if created

    createAccounting

    public boolean createAccounting(KeyNamePair currency,
                                    boolean hasProduct,
                                    boolean hasBPartner,
                                    boolean hasProject,
                                    boolean hasMCampaign,
                                    boolean hasSRegion,
                                    File AccountingFile)
    Create Accounting elements. - Calendar - Account Trees - Account Values - Accounting Schema - Default Accounts

    Parameters:
    currency - currency
    hasProduct - has product segment
    hasBPartner - has bp segment
    hasProject - has project segment
    hasMCampaign - has campaign segment
    hasSRegion - has sales region segment
    AccountingFile - file name of accounting file
    Returns:
    true if created

    createEntities

    public boolean createEntities(int C_Country_ID,
                                  String City,
                                  int C_Region_ID,
                                  int C_Currency_ID)
    Create Default main entities. - Dimensions & BPGroup, Prod Category) - Location, Locator, Warehouse - PriceList - Cashbook, PaymentTerm

    Parameters:
    C_Country_ID - country
    City - city
    C_Region_ID - region
    C_Currency_ID - currency
    Returns:
    true if created

    getAD_Client_ID

    public int getAD_Client_ID()
    Get Client

    Returns:
    AD_Client_ID

    getAD_Org_ID

    public int getAD_Org_ID()
    Get AD_Org_ID

    Returns:
    AD_Org_ID

    getAD_User_ID

    public int getAD_User_ID()
    Get AD_User_ID

    Returns:
    AD_User_ID

    getInfo

    public String getInfo()
    Get Info

    Returns:
    Info

    Adempiere 3.5.2a

    Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.