public class KKMessages
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
adminEngineClassname |
private static boolean |
categoriesShared |
private static java.lang.String |
consoleEncoding |
private static boolean |
customersShared |
private static boolean |
doExport |
private static boolean |
doImport |
private static boolean |
doSqlExport |
private static KKAdminIf |
eng |
private static int |
engineMode |
private static java.lang.String |
exportFilename |
private static java.lang.String |
fileEncoding |
private static java.lang.String |
importFilename |
private static boolean |
listLanguages |
private static boolean |
listMessages |
private static java.lang.String |
locale |
static org.apache.commons.logging.Log |
log
logger
|
private static int |
msgType |
private static java.io.PrintStream |
outPrintStream |
private static java.lang.String |
password |
private static boolean |
productsShared |
(package private) static java.lang.String |
propsFileName |
private static boolean |
replace |
private static java.lang.String |
storeId |
(package private) static java.lang.String |
usage |
private static java.lang.String |
username |
Constructor and Description |
---|
KKMessages() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAdminEngineClassname() |
private static KKAdminIf |
getAnEng() |
static java.lang.String |
getConsoleEncoding() |
static KKAdminIf |
getEng() |
static int |
getEngineMode() |
static java.lang.String |
getExportFilename() |
static java.lang.String |
getFileEncoding() |
static java.lang.String |
getImportFilename() |
static java.lang.String |
getLocale() |
static int |
getMsgType() |
static java.lang.String |
getPassword() |
static java.lang.String |
getStoreId() |
static java.lang.String |
getUsername() |
static boolean |
isCategoriesShared() |
static boolean |
isCustomersShared() |
static boolean |
isDoExport() |
static boolean |
isDoImport() |
static boolean |
isDoSqlExport() |
static boolean |
isListLanguages() |
static boolean |
isListMessages() |
static boolean |
isMultiStoreSingleDB() |
static boolean |
isProductsShared() |
static boolean |
isReplace() |
static void |
main(java.lang.String[] args) |
private static void |
println(java.lang.String str) |
static void |
processArgs(java.lang.String[] args)
Process the Args to operate on KonaKart Messages
|
private static java.lang.String |
quoteForSQL(java.lang.String in) |
static void |
setAdminEngineClassname(java.lang.String adminEngineClassname) |
static void |
setCategoriesShared(boolean categoriesShared) |
static void |
setConsoleEncoding(java.lang.String consoleEncoding) |
static void |
setCustomersShared(boolean customersShared) |
static void |
setDoExport(boolean doExport) |
static void |
setDoImport(boolean doImport) |
static void |
setDoSqlExport(boolean doSqlExport) |
static void |
setEng(KKAdminIf eng) |
static void |
setEngineMode(int engineMode) |
static void |
setExportFilename(java.lang.String exportFilename) |
static void |
setFileEncoding(java.lang.String fileEncoding) |
static void |
setImportFilename(java.lang.String importFilename) |
static void |
setListLanguages(boolean listLanguages) |
static void |
setListMessages(boolean listMessages) |
static void |
setLocale(java.lang.String locale) |
static void |
setMsgType(int msgType) |
static void |
setPassword(java.lang.String password) |
static void |
setProductsShared(boolean productsShared) |
static void |
setReplace(boolean replace) |
static void |
setStoreId(java.lang.String storeId) |
static void |
setUsername(java.lang.String username) |
public static org.apache.commons.logging.Log log
private static java.lang.String consoleEncoding
private static java.lang.String fileEncoding
static final java.lang.String usage
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 adminEngineClassname
private static java.lang.String locale
private static java.lang.String importFilename
private static java.lang.String exportFilename
private static boolean replace
private static boolean listLanguages
private static boolean listMessages
private static boolean doImport
private static boolean doExport
private static boolean doSqlExport
private static int msgType
private static int engineMode
private static boolean customersShared
private static boolean productsShared
private static boolean categoriesShared
private static KKAdminIf eng
private static java.io.PrintStream outPrintStream
public static void main(java.lang.String[] args)
args
- the argspublic static void processArgs(java.lang.String[] args) throws java.lang.Exception
args
- command line argumentsjava.lang.Exception
- an unexpected exceptionprivate static void println(java.lang.String str) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
private static java.lang.String quoteForSQL(java.lang.String in)
private 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 void setPassword(java.lang.String password)
password
- the password to setpublic 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 java.lang.String getLocale()
public static void setLocale(java.lang.String locale)
locale
- the locale to setpublic static java.lang.String getImportFilename()
public static void setImportFilename(java.lang.String importFilename)
importFilename
- the importFilename to setpublic static java.lang.String getExportFilename()
public static void setExportFilename(java.lang.String exportFilename)
exportFilename
- the exportFilename to setpublic static boolean isReplace()
public static void setReplace(boolean replace)
replace
- the replace to setpublic static boolean isListLanguages()
public static void setListLanguages(boolean listLanguages)
listLanguages
- the listLanguages to setpublic static boolean isListMessages()
public static void setListMessages(boolean listMessages)
listMessages
- the listMessages to setpublic static boolean isDoImport()
public static void setDoImport(boolean doImport)
doImport
- the doImport to setpublic static boolean isDoExport()
public static void setDoExport(boolean doExport)
doExport
- the doExport to setpublic static int getMsgType()
public static void setMsgType(int msgType)
msgType
- the msgType to setpublic static boolean isDoSqlExport()
public static void setDoSqlExport(boolean doSqlExport)
doSqlExport
- the doSqlExport to setpublic static java.lang.String getFileEncoding()
public static void setFileEncoding(java.lang.String fileEncoding)
fileEncoding
- set the file encoding used when reading filespublic static java.lang.String getConsoleEncoding()
public static void setConsoleEncoding(java.lang.String consoleEncoding)
consoleEncoding
- the consoleEncoding to setpublic static boolean isCategoriesShared()
public static void setCategoriesShared(boolean categoriesShared)
categoriesShared
- the categoriesShared to setCopyright © 2018 DS Data Systems UK Ltd.