Package org.compiere.model
Class MSetup
java.lang.Object
org.compiere.model.MSetup
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, Carlos Ruiz - globalqss
- Setup correctly IsSOTrx for return documents
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMSetup
(Properties ctx, int WindowNo) ConstructorMSetup
(Properties ctx, int WindowNo, boolean dryRun) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
createAccounting
(KeyNamePair currency, boolean hasProduct, boolean hasBPartner, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, boolean hasActivity, File AccountingFile, boolean useDefaultCoA, boolean inactivateDefaults) Create Accounting elementsboolean
createAccounting
(KeyNamePair currency, boolean hasProduct, boolean hasBPartner, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, File AccountingFile) Deprecated.boolean
createClient
(String clientName, String orgValue, String orgName, String userClient, String userOrg, String phone, String phone2, String fax, String eMail, String taxID, String adminEmail, String userEmail, boolean isSetInitialPassword) Create Client Info.boolean
createEntities
(int C_Country_ID, String City, int C_Region_ID, int C_Currency_ID, String postal, String address1) Create default main entitiesint
Get Clientint
Get AD_Org_IDint
Get AD_User_IDgetInfo()
Get Infovoid
rollback()
Rollback Internal Transaction
-
Field Details
-
TRXNAME_PREFIX
- See Also:
-
TRX_DISPLAYNAME
- See Also:
-
log
Logger
-
-
Constructor Details
-
MSetup
Constructor- Parameters:
ctx
- contextWindowNo
- window
-
MSetup
Constructor- Parameters:
ctx
- contextWindowNo
- window
-
-
Method Details
-
createClient
public boolean createClient(String clientName, String orgValue, String orgName, String userClient, String userOrg, String phone, String phone2, String fax, String eMail, String taxID, String adminEmail, String userEmail, boolean isSetInitialPassword) Create Client Info.
- Client, Trees, Org, Role, User, User_Role- Parameters:
clientName
- client nameorgValue
- org ValueorgName
- org nameuserClient
- client user nameuserOrg
- org user namephone
-phone2
-fax
-eMail
-taxID
-adminEmail
-userEmail
-isSetInitialPassword
-- Returns:
- true if created
-
createAccounting
@Deprecated public boolean createAccounting(KeyNamePair currency, boolean hasProduct, boolean hasBPartner, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, File AccountingFile) Deprecated.preserving backward compatibility with swing client- Parameters:
currency
-hasProduct
-hasBPartner
-hasProject
-hasMCampaign
-hasSRegion
-AccountingFile
-- Returns:
- true if created
-
createAccounting
public boolean createAccounting(KeyNamePair currency, boolean hasProduct, boolean hasBPartner, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, boolean hasActivity, File AccountingFile, boolean useDefaultCoA, boolean inactivateDefaults) Create Accounting elements. - Calendar - Account Trees - Account Values - Accounting Schema - Default Accounts
- Parameters:
currency
- currencyhasProduct
- has product segmenthasBPartner
- has bp segmenthasProject
- has project segmenthasMCampaign
- has campaign segmenthasSRegion
- has sales region segmenthasActivity
- has activity segmentAccountingFile
- accounting fileuseDefaultCoA
- use the Default CoA (load and group summary account)inactivateDefaults
- inactivate the default accounts after created- Returns:
- true if created
-
createEntities
public boolean createEntities(int C_Country_ID, String City, int C_Region_ID, int C_Currency_ID, String postal, String address1) Create default main entities. - Dimensions, BPGroup and Product Category - Location, Locator, Warehouse - PriceList - Cashbook, PaymentTerm
- Parameters:
C_Country_ID
- countryCity
- cityC_Region_ID
- regionC_Currency_ID
- currencypostal
-address1
-- 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
Get Info- Returns:
- Info
-
rollback
public void rollback()Rollback Internal Transaction -
getTrxName
- Returns:
- trxName
-