public class SqlPopulator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
addrFormatId |
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> |
addrFormatMap
Map of source to target Address Format Id
|
private static int |
adminRoleId |
(package private) static int |
catCartoonId |
(package private) static int |
catCdromId |
(package private) static int |
catComedyId |
(package private) static int |
catDramaId |
(package private) static int |
catDvdActionId |
(package private) static int |
catDvdId |
(package private) static boolean |
categoriesShared |
(package private) static int |
catGamesId |
(package private) static int |
catGiftId |
(package private) static int |
catGraphicsId |
(package private) static int |
catHardwareId |
(package private) static int |
catKeyboardId |
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> |
catMap
Map of source to target Category Id
|
(package private) static int |
catMemoryId |
(package private) static int |
catMonitorId |
(package private) static int |
catMouseId |
(package private) static int |
catPrinterId |
(package private) static int |
CatSciFiId |
(package private) static int |
catSimulationId |
(package private) static int |
catSoftActionId |
(package private) static int |
catSpeakerId |
(package private) static int |
catStrategyId |
(package private) static int |
catTestCatId |
(package private) static int |
catThrillerId |
(package private) static int |
countryGbId |
(package private) static int |
countryUsId |
(package private) static boolean |
customersShared |
(package private) static java.lang.String |
dbDirectory |
(package private) static com.konakart.db.DbPortabilityIf |
dbPort |
(package private) static boolean |
debug |
private static int |
DEFAULT_ADMIN_ROLE_ID |
private static java.lang.String |
DEFAULT_HTTP_PORT |
private static java.lang.String |
DEFAULT_HTTPS_PORT |
private static int |
DEFAULT_SUPER_USER_ID |
private static int |
DEFAULT_SUPER_USER_ROLE_ID |
private static java.lang.String |
DEFAULT_USERNAME
Default credentials for accessing the KonaKart Admin App
|
(package private) static int |
engineMode |
private static java.lang.String |
httpPort |
private static java.lang.String |
httpsPort |
(package private) static java.lang.String |
kkHome |
(package private) static int |
langDeId |
(package private) static int |
langEsId |
(package private) static int |
langGbId |
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> |
langMap
Map of source to target Language Id
|
(package private) static int |
langPtId |
static org.apache.commons.logging.Log |
log
logger
|
(package private) static int |
manuCanon |
(package private) static int |
manuDell |
(package private) static int |
manuFox |
(package private) static int |
manuGTInteractive |
(package private) static int |
manuHP |
(package private) static int |
manuKonaKart |
(package private) static int |
manuLionsgate |
(package private) static int |
manuLogitech |
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> |
manuMap
Map of source to target Manufacturer Id
|
(package private) static int |
manuMatrox |
(package private) static int |
manuMicrosoft |
(package private) static int |
manuSierra |
(package private) static int |
manuWarner |
(package private) static boolean |
minimalStore |
(package private) static org.apache.commons.configuration2.Configuration |
miscConf |
(package private) static java.lang.String |
miscPropsFileName |
private static int |
newSuperUserId |
(package private) static int |
optColorId |
(package private) static int |
optMemoryId |
(package private) static int |
optModelId |
(package private) static int |
optSizeId |
(package private) static int |
optTypeId |
(package private) static int |
optVal16MbId |
(package private) static int |
optVal32MbId |
(package private) static int |
optVal4MbId |
(package private) static int |
optVal8MbId |
(package private) static int |
optValBronzeId |
(package private) static int |
optValDeluxeId |
(package private) static int |
optValGoldId |
(package private) static int |
optValOrangeId |
(package private) static int |
optValPremiumId |
(package private) static int |
optValPs2Id |
(package private) static int |
optValRedId |
(package private) static int |
optValSilverId |
(package private) static int |
optValUsbId |
(package private) static int |
optValValueId |
(package private) static int |
optValYellowId |
(package private) static int |
platform |
(package private) static int |
PLATFORM_LINUX |
(package private) static int |
PLATFORM_WINDOWS |
(package private) static int |
prodSomeAbtMaryId |
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> |
productMap
Map of source to target Product Id
|
(package private) static boolean |
productsShared |
(package private) static java.lang.String |
propsFileName |
(package private) static int |
roleStoreAdministratorId |
(package private) static int |
roleSuperUserId |
private static AdminAddressMgrIf |
sourceAddressMgr
Source AddressMgr
|
private static KKAdminIf |
sourceAdminEng
Source Admin Engine
|
private static AdminCategoryMgrIf |
sourceCategoryMgr
Source CategoryMgr
|
private static AdminConfigurationMgrIf |
sourceConfigMgr
Source ConfigurationMgr
|
private static AdminContentMgrIf |
sourceContentMgr
Source ContentMgr
|
private static AdminCustomerTagMgrIf |
sourceCustomerTagMgr
Source CustomerTagMgr
|
private static AdminLanguageMgrIf |
sourceLanguageMgr
Source LanguageMgr
|
private static AdminManufacturerMgrIf |
sourceManufacturerMgr
Source ManufacturerMgr
|
private static AdminOrderMgrIf |
sourceOrderMgr
Source OrderMgr
|
private static AdminProductMgrIf |
sourceProductMgr
Source ProductMgr
|
private static AdminSecurityMgrIf |
sourceSecurityMgr
Source SecurityMgr
|
private static AdminTaxMgrIf |
sourceTaxMgr
Source TaxMgr
|
(package private) static int |
stateFloridaId |
(package private) static int |
stateTexasId |
(package private) static java.lang.String |
storeId |
(package private) static int |
storeNum |
private static int |
superUserId |
private static int |
superUserRoleId |
(package private) static int |
taxClassId |
(package private) static java.lang.String |
usage |
(package private) static int |
userAdminId |
(package private) static int |
userCatId |
(package private) static int |
userOrderId |
(package private) static int |
userRootId |
Constructor and Description |
---|
SqlPopulator() |
Modifier and Type | Method and Description |
---|---|
static void |
addRoleForNewSuperUser(KKAdminIf eng,
java.lang.String sessionId)
We assign the super user role to the new super user in the new store
|
static void |
copyApiCalls(KKAdminIf eng,
java.lang.String sessionId)
Copy the API calls from one database to another.
|
static void |
copyCategories(KKAdminIf eng,
java.lang.String sessionId) |
static void |
copyCategory(KKAdminIf eng,
java.lang.String sessionId,
AdminCategory sourceCat) |
static void |
copyConfigurations(KKAdminIf eng,
java.lang.String sessionId) |
static void |
copyContents(KKAdminIf eng,
java.lang.String sessionId)
Copy Contents
|
static void |
copyContentTypes(KKAdminIf eng,
java.lang.String sessionId)
Copy ContentTypes
|
static void |
copyCountries(KKAdminIf eng,
java.lang.String sessionId)
Populate the db with countries from the source store.
|
static void |
copyCustomerTags(KKAdminIf eng,
java.lang.String sessionId) |
static void |
copyManufacturers(KKAdminIf eng,
java.lang.String sessionId) |
static void |
copyOrderReturnStatuses(KKAdminIf eng,
java.lang.String sessionId) |
static void |
copyOrderStatusNames(KKAdminIf eng,
java.lang.String sessionId) |
static void |
copyProducts(KKAdminIf eng,
java.lang.String sessionId) |
static void |
derivePlatform()
Derive the platform from the os.name
|
static java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getAddrFormatMap(KKAdminIf eng) |
private static java.lang.String |
getAdminUserNameForStore(java.lang.String store) |
private static KKAdminIf |
getAnEng(java.lang.String theStoreId) |
private static int |
getCountryIdForISO3(KKAdminIf eng,
java.lang.String iso3) |
private static int |
getNewCatId(int oldCatId) |
private static int |
getNewLangId(int oldLangId) |
private static int |
getNewManuId(int oldManuId) |
private static int |
getNewProdId(int oldProdId) |
static AdminAddressMgrIf |
getSourceAddressMgr() |
static KKAdminIf |
getSourceAdminEng() |
static AdminCategoryMgrIf |
getSourceCategoryMgr() |
static AdminConfigurationMgrIf |
getSourceConfigMgr() |
static AdminContentMgrIf |
getSourceContentMgr() |
static AdminCustomerTagMgrIf |
getSourceCustomerTagMgr() |
static AdminLanguageMgrIf |
getSourceLanguageMgr() |
static AdminManufacturerMgrIf |
getSourceManufacturerMgr() |
static AdminOrderMgrIf |
getSourceOrderMgr() |
static AdminProductMgrIf |
getSourceProductMgr() |
static AdminSecurityMgrIf |
getSourceSecurityMgr() |
static AdminTaxMgrIf |
getSourceTaxMgr() |
static java.lang.String |
getStoreId() |
private static int |
getStoreNum() |
private static int |
getTaxClassIdForTitle(KKAdminIf eng,
java.lang.String title) |
private static int |
getUserIdForEmail(KKAdminIf eng,
java.lang.String sessionId,
java.lang.String email) |
private static int |
getZoneIdForCodeAndName(KKAdminIf eng,
java.lang.String code,
java.lang.String name) |
static void |
insertAddressFormats(KKAdminIf eng,
java.lang.String sessionId)
Insert address formats and save an id to be used elsewhere
|
static void |
insertApiCalls(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertCategories(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertConfigurationGroups(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertConfigurations(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertCountries(KKAdminIf eng,
java.lang.String sessionId)
Populate the db with countries.
|
static void |
insertCurrencies(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertCustomers(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertCustomerTags(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertLanguages(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertManufacturers(KKAdminIf eng,
java.lang.String sessionId)
No Longer Used
|
static void |
insertOptions(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertOptionValues(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertPanels(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertProducts(KKAdminIf eng,
java.lang.String sessionId)
No Longer Used
|
static void |
insertProductsToCategories(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertProductsToStores(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertReviews(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertRoles(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertRolesForSuperUser(KKAdminIf eng,
java.lang.String sessionId)
We assign the super user role to the super user in the new store
|
static void |
insertStoreAdminRole(KKAdminIf eng,
java.lang.String sessionId)
We assign the adminRoleId to the store admin user of our new store.
|
static int |
insertSuperUser(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertTaxData(KKAdminIf eng,
java.lang.String sessionId) |
static void |
insertUtility(KKAdminIf eng,
java.lang.String sessionId)
Insert the Utility Table values
|
static boolean |
isCategoriesShared() |
static boolean |
isCustomersOrProductsShared() |
static boolean |
isCustomersShared() |
static boolean |
isLanguagesShared() |
static boolean |
isMultiStoreSingleDB() |
static boolean |
isProductsShared() |
static java.lang.String |
login(java.lang.String user,
KKAdminIf eng)
Login customer so that a login can be performed.
|
static void |
main(java.lang.String[] args) |
static int |
populate()
Populate the store
|
static int |
populateStore(java.lang.String storeIdP,
java.lang.String kkHomeP,
int engineModeP,
java.lang.String propsFileNameP,
boolean customersSharedP,
boolean productsSharedP,
boolean categoriesSharedP,
java.lang.String miscPropsFileNameP,
boolean minimalStoreP,
int adminRoleIdP,
int superUserIdP,
int superUserRoleIdP,
boolean debugP,
java.lang.String httpPortNumber,
java.lang.String httpsPortNumber)
Populate the store using the specified parameters.
|
static void |
removeStoreIdForTable(java.lang.String tableName)
Set the store_id column to '' in the specified table
|
static void |
setCategoriesShared(boolean categoriesShared) |
static void |
setCustomersShared(boolean customersShared) |
static void |
setProductsShared(boolean productsShared) |
static void |
setSourceAdminEng(KKAdminIf sourceAdminEng) |
private static void |
setUpMiscConfiguration() |
private static void |
updateConfig(KKAdminIf eng,
java.lang.String sessionId,
java.lang.String key,
int group,
java.lang.String value) |
public static org.apache.commons.logging.Log log
static final java.lang.String usage
static java.lang.String propsFileName
static java.lang.String miscPropsFileName
static boolean debug
static boolean minimalStore
private static final int DEFAULT_ADMIN_ROLE_ID
private static int adminRoleId
private static final int DEFAULT_SUPER_USER_ROLE_ID
private static int superUserRoleId
private static final int DEFAULT_SUPER_USER_ID
private static int superUserId
private static int newSuperUserId
static int userRootId
static int userAdminId
static int userOrderId
static int userCatId
static int roleSuperUserId
static int roleStoreAdministratorId
static int addrFormatId
static int catHardwareId
static int catGamesId
static int catDvdId
static int catGraphicsId
static int catPrinterId
static int catMonitorId
static int catSpeakerId
static int catKeyboardId
static int catMouseId
static int catSoftActionId
static int CatSciFiId
static int catComedyId
static int catCartoonId
static int catThrillerId
static int catDramaId
static int catTestCatId
static int catGiftId
static int catMemoryId
static int catCdromId
static int catSimulationId
static int catDvdActionId
static int catStrategyId
static int manuMatrox
static int manuMicrosoft
static int manuDell
static int manuWarner
static int manuFox
static int manuLogitech
static int manuCanon
static int manuSierra
static int manuGTInteractive
static int manuHP
static int manuLionsgate
static int manuKonaKart
static int langGbId
static int langDeId
static int langEsId
static int langPtId
static int countryUsId
static int countryGbId
static int stateFloridaId
static int stateTexasId
static int taxClassId
static int optColorId
static int optSizeId
static int optModelId
static int optMemoryId
static int optTypeId
static int optVal4MbId
static int optVal8MbId
static int optVal16MbId
static int optVal32MbId
static int optValValueId
static int optValPremiumId
static int optValDeluxeId
static int optValPs2Id
static int optValUsbId
static int optValBronzeId
static int optValSilverId
static int optValGoldId
static int optValRedId
static int optValOrangeId
static int optValYellowId
static int prodSomeAbtMaryId
static java.lang.String storeId
static int storeNum
static final int PLATFORM_LINUX
static final int PLATFORM_WINDOWS
static int platform
static java.lang.String kkHome
static java.lang.String dbDirectory
static com.konakart.db.DbPortabilityIf dbPort
static int engineMode
static boolean customersShared
static boolean productsShared
static boolean categoriesShared
static org.apache.commons.configuration2.Configuration miscConf
private static final java.lang.String DEFAULT_HTTP_PORT
private static java.lang.String httpPort
private static final java.lang.String DEFAULT_HTTPS_PORT
private static java.lang.String httpsPort
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> addrFormatMap
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> langMap
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> catMap
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> manuMap
private static java.util.HashMap<java.lang.Integer,java.lang.Integer> productMap
private static java.lang.String DEFAULT_USERNAME
private static KKAdminIf sourceAdminEng
private static AdminAddressMgrIf sourceAddressMgr
private static AdminConfigurationMgrIf sourceConfigMgr
private static AdminCustomerTagMgrIf sourceCustomerTagMgr
private static AdminCategoryMgrIf sourceCategoryMgr
private static AdminManufacturerMgrIf sourceManufacturerMgr
private static AdminProductMgrIf sourceProductMgr
private static AdminOrderMgrIf sourceOrderMgr
private static AdminLanguageMgrIf sourceLanguageMgr
private static AdminSecurityMgrIf sourceSecurityMgr
private static AdminTaxMgrIf sourceTaxMgr
private static AdminContentMgrIf sourceContentMgr
public static void main(java.lang.String[] args)
args
- the argspublic static void derivePlatform()
public static int populateStore(java.lang.String storeIdP, java.lang.String kkHomeP, int engineModeP, java.lang.String propsFileNameP, boolean customersSharedP, boolean productsSharedP, boolean categoriesSharedP, java.lang.String miscPropsFileNameP, boolean minimalStoreP, int adminRoleIdP, int superUserIdP, int superUserRoleIdP, boolean debugP, java.lang.String httpPortNumber, java.lang.String httpsPortNumber)
storeIdP
- the storeIdPkkHomeP
- the kkHomePengineModeP
- the engineModePpropsFileNameP
- the propsFileNamePcustomersSharedP
- the customersSharedPproductsSharedP
- the productsSharedPcategoriesSharedP
- the categoriesSharedPmiscPropsFileNameP
- the name of a file containing Miscellaneous Property valuesminimalStoreP
- if true we create the smallest store we can (no products etc)adminRoleIdP
- the role id to give the admin user in the new storesuperUserIdP
- the superUserIdPsuperUserRoleIdP
- the superUserRoleIdPdebugP
- debug flaghttpPortNumber
- HTTP port numberhttpsPortNumber
- HTTPS port numberpublic static int populate()
private static java.lang.String getAdminUserNameForStore(java.lang.String store)
private static void setUpMiscConfiguration()
private static KKAdminIf getAnEng(java.lang.String theStoreId) throws KKAdminException
KKAdminException
private static int getStoreNum()
public static java.lang.String login(java.lang.String user, KKAdminIf eng) throws org.apache.torque.TorqueException, KKAdminException
user
- the usereng
- the engorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic static void insertAddressFormats(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyCountries(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertCountries(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionprivate static int getZoneIdForCodeAndName(KKAdminIf eng, java.lang.String code, java.lang.String name) throws KKAdminException
KKAdminException
private static int getTaxClassIdForTitle(KKAdminIf eng, java.lang.String title) throws KKAdminException
KKAdminException
private static int getCountryIdForISO3(KKAdminIf eng, java.lang.String iso3) throws KKAdminException
KKAdminException
private static int getUserIdForEmail(KKAdminIf eng, java.lang.String sessionId, java.lang.String email) throws KKAdminException
KKAdminException
public static void insertLanguages(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- enginesessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionprivate static int getNewLangId(int oldLangId)
private static int getNewProdId(int oldProdId)
public static void insertCategories(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyCategories(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyCategory(KKAdminIf eng, java.lang.String sessionId, AdminCategory sourceCat) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdsourceCat
- the sourceCatjava.lang.Exception
- an unexpected exceptionprivate static int getNewCatId(int oldCatId)
public static void insertConfigurationGroups(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertConfigurations(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyConfigurations(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertCustomerTags(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyCustomerTags(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the target enginesessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyManufacturers(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionprivate static int getNewManuId(int oldManuId)
public static void insertManufacturers(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyContentTypes(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyContents(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyOrderStatusNames(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the eng the Admin engine for the new storesessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyOrderReturnStatuses(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the eng the Admin engine for the new storesessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertTaxData(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void removeStoreIdForTable(java.lang.String tableName) throws java.lang.Exception
tableName
- the tableNamejava.lang.Exception
- an unexpected exceptionpublic static void insertProductsToStores(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertProductsToCategories(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertProducts(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyProducts(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertCurrencies(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertOptions(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertOptionValues(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertCustomers(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static int insertSuperUser(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertReviews(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertUtility(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void copyApiCalls(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertApiCalls(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertRoles(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionprivate static void updateConfig(KKAdminIf eng, java.lang.String sessionId, java.lang.String key, int group, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public static void insertStoreAdminRole(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertRolesForSuperUser(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void addRoleForNewSuperUser(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static void insertPanels(KKAdminIf eng, java.lang.String sessionId) throws java.lang.Exception
eng
- the engsessionId
- the sessionIdjava.lang.Exception
- an unexpected exceptionpublic static boolean isLanguagesShared()
public static boolean isMultiStoreSingleDB()
public static boolean isCustomersOrProductsShared()
public static boolean isCustomersShared()
public static void setCustomersShared(boolean customersShared)
customersShared
- the customersShared to setpublic static boolean isProductsShared()
public static void setProductsShared(boolean productsShared)
productsShared
- the productsShared to setpublic static boolean isCategoriesShared()
public static void setCategoriesShared(boolean categoriesShared)
categoriesShared
- the categoriesShared to setpublic static KKAdminIf getSourceAdminEng()
public static void setSourceAdminEng(KKAdminIf sourceAdminEng)
sourceAdminEng
- the sourceAdminEng to setpublic static AdminConfigurationMgrIf getSourceConfigMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminCategoryMgrIf getSourceCategoryMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminProductMgrIf getSourceProductMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminOrderMgrIf getSourceOrderMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminLanguageMgrIf getSourceLanguageMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminManufacturerMgrIf getSourceManufacturerMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminContentMgrIf getSourceContentMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminCustomerTagMgrIf getSourceCustomerTagMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminTaxMgrIf getSourceTaxMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminSecurityMgrIf getSourceSecurityMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static AdminAddressMgrIf getSourceAddressMgr() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic static java.util.HashMap<java.lang.Integer,java.lang.Integer> getAddrFormatMap(KKAdminIf eng) throws KKAdminException, java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic static java.lang.String getStoreId()
Copyright © 2018 DS Data Systems UK Ltd.