public class ModuleUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
adminEngineClassname |
private static boolean |
categoriesShared |
private static KKConfiguration[] |
configs |
private static boolean |
customersShared |
private static KKAdminIf |
eng |
private static int |
engineMode |
static org.apache.commons.logging.Log |
log
logger
|
static java.lang.String |
MODULE_TYPE_ORDERTOTAL
Module Type
|
static java.lang.String |
MODULE_TYPE_OTHER
Module Type
|
static java.lang.String |
MODULE_TYPE_PAYMENT
Module Type
|
static java.lang.String |
MODULE_TYPE_SHIPPING
Module Type
|
private static java.lang.String |
moduleName |
private static java.lang.String |
moduleType |
private static java.lang.String |
password |
private static boolean |
productsShared |
private static java.lang.String |
propsFileName |
private static java.lang.String |
sessionId |
private static java.lang.String |
storeId |
private static java.lang.String |
username |
Constructor and Description |
---|
ModuleUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAdminEngineClassname() |
protected static KKAdminIf |
getAnEng() |
protected static java.lang.String |
getCodeForModuleName() |
static KKConfiguration[] |
getConfigs() |
static KKAdminIf |
getEng() |
static int |
getEngineMode() |
protected static java.lang.String |
getImplementationForModuleName() |
protected static KKConfiguration |
getInstalled() |
static java.lang.String |
getModuleName() |
static java.lang.String |
getModuleType() |
protected static OrderTotalModule |
getOrderTotalModuleForName(java.lang.String moduleName)
Called to instantiate an Admin Order Total module.
|
protected static OtherModule |
getOtherModuleForName(java.lang.String moduleName)
Called to instantiate an Admin Other module.
|
static java.lang.String |
getPassword() |
protected static PaymentModule |
getPaymentModuleForName(java.lang.String moduleNameIn)
Called to instantiate an Admin payment module.
|
static java.lang.String |
getSessionId() |
protected static ShippingModule |
getShippingModuleForName(java.lang.String moduleName)
Called to instantiate an Admin shipping module.
|
static java.lang.String |
getStoreId() |
static java.lang.String |
getUsername() |
static boolean |
isCategoriesShared() |
static boolean |
isCustomersShared() |
static boolean |
isMultiStoreSingleDB() |
static boolean |
isProductsShared() |
protected static java.lang.String |
moduleClassForModuleName(java.lang.String moduleName) |
static int |
processArgs(java.lang.String[] args,
java.lang.String usage)
Install the module
|
static void |
setAdminEngineClassname(java.lang.String adminEngineClassname) |
static void |
setCategoriesShared(boolean categoriesShared) |
static void |
setConfigs(KKConfiguration[] configs) |
static void |
setCustomersShared(boolean customersShared) |
static void |
setEng(KKAdminIf eng) |
static void |
setEngineMode(int engineMode) |
static void |
setModuleName(java.lang.String module) |
static void |
setModuleType(java.lang.String moduleType) |
static void |
setPassword(java.lang.String password) |
static void |
setProductsShared(boolean productsShared) |
static void |
setSessionId(java.lang.String sessionId) |
static void |
setStoreId(java.lang.String storeId) |
static void |
setUsername(java.lang.String username) |
public static org.apache.commons.logging.Log log
public static final java.lang.String MODULE_TYPE_PAYMENT
public static final java.lang.String MODULE_TYPE_SHIPPING
public static final java.lang.String MODULE_TYPE_ORDERTOTAL
public static final java.lang.String MODULE_TYPE_OTHER
private static java.lang.String propsFileName
private static java.lang.String storeId
private static java.lang.String username
private static java.lang.String password
private static java.lang.String sessionId
private static java.lang.String adminEngineClassname
private static java.lang.String moduleName
private static java.lang.String moduleType
private static int engineMode
private static boolean customersShared
private static boolean productsShared
private static boolean categoriesShared
private static KKAdminIf eng
private static KKConfiguration[] configs
public static int processArgs(java.lang.String[] args, java.lang.String usage)
args
- command line argumentsusage
- the usage statementprotected static java.lang.String getCodeForModuleName() throws KKAdminException
KKAdminException
protected static java.lang.String getImplementationForModuleName() throws KKAdminException
KKAdminException
protected static java.lang.String moduleClassForModuleName(java.lang.String moduleName)
protected static ShippingModule getShippingModuleForName(java.lang.String moduleName) throws KKAdminException
moduleName
- the moduleNameKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected static PaymentModule getPaymentModuleForName(java.lang.String moduleNameIn) throws KKAdminException
moduleNameIn
- the moduleNameInKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected static OrderTotalModule getOrderTotalModuleForName(java.lang.String moduleName) throws KKAdminException
moduleName
- the moduleNameKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected static OtherModule getOtherModuleForName(java.lang.String moduleName) throws KKAdminException
moduleName
- the moduleNameKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected static KKConfiguration getInstalled() throws KKAdminException
KKAdminException
protected static KKAdminIf getAnEng() throws KKAdminException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
KKAdminException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
public static boolean isMultiStoreSingleDB()
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 java.lang.String getStoreId()
public static void setStoreId(java.lang.String storeId)
storeId
- the storeId to setpublic static java.lang.String getUsername()
public static void setUsername(java.lang.String username)
username
- the username to setpublic static java.lang.String getPassword()
public static int getEngineMode()
public static void setEngineMode(int engineMode)
engineMode
- the engineMode to setpublic static java.lang.String getAdminEngineClassname()
public static void setAdminEngineClassname(java.lang.String adminEngineClassname)
adminEngineClassname
- the adminEngineClassname to setpublic static KKAdminIf getEng()
public static void setEng(KKAdminIf eng)
eng
- the eng to setpublic static boolean isCategoriesShared()
public static void setCategoriesShared(boolean categoriesShared)
categoriesShared
- the categoriesShared to setpublic static void setPassword(java.lang.String password)
password
- the password to setpublic static KKConfiguration[] getConfigs()
public static void setConfigs(KKConfiguration[] configs)
configs
- the configs to setpublic static java.lang.String getModuleName()
public static void setModuleName(java.lang.String module)
module
- the module to setpublic static java.lang.String getModuleType()
public static void setModuleType(java.lang.String moduleType)
moduleType
- the moduleType to setpublic static java.lang.String getSessionId()
public static void setSessionId(java.lang.String sessionId)
sessionId
- the sessionId to setCopyright © 2018 DS Data Systems UK Ltd.