com.konakartadmin.utils
Class KKMessages
java.lang.Object
com.konakartadmin.utils.KKMessages
public class KKMessages
- extends java.lang.Object
A utility for operating on KonaKart Messages
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static org.apache.commons.logging.Log log
- logger
consoleEncoding
private static java.lang.String consoleEncoding
fileEncoding
private static java.lang.String fileEncoding
usage
static final java.lang.String usage
DEFAULT_KONAKARTADMIN_PROPS_FILENAME
private static final java.lang.String DEFAULT_KONAKARTADMIN_PROPS_FILENAME
- See Also:
- Constant Field Values
propsFileName
private static java.lang.String propsFileName
storeId
private static java.lang.String storeId
username
private static java.lang.String username
password
private static java.lang.String password
adminEngineClassname
private static java.lang.String adminEngineClassname
locale
private static java.lang.String locale
importFilename
private static java.lang.String importFilename
exportFilename
private static java.lang.String exportFilename
replace
private static boolean replace
listLanguages
private static boolean listLanguages
listMessages
private static boolean listMessages
doImport
private static boolean doImport
doExport
private static boolean doExport
doSqlExport
private static boolean doSqlExport
msgType
private static int msgType
engineMode
private static int engineMode
customersShared
private static boolean customersShared
productsShared
private static boolean productsShared
categoriesShared
private static boolean categoriesShared
eng
private static KKAdminIf eng
outPrintStream
private static java.io.PrintStream outPrintStream
KKMessages
public KKMessages()
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
processArgs
public static void processArgs(java.lang.String[] args)
throws java.lang.Exception
- Process the Args to operate on KonaKart Messages
- Parameters:
args
- command line arguments
- Throws:
java.lang.Exception
println
private static void println(java.lang.String str)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
quoteForSQL
private static java.lang.String quoteForSQL(java.lang.String in)
getAnEng
private static KKAdminIf getAnEng()
throws KKAdminException,
java.lang.IllegalArgumentException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException,
java.lang.reflect.InvocationTargetException
- Throws:
KKAdminException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
isMultiStoreSingleDB
public static boolean isMultiStoreSingleDB()
- Returns:
- true if the mode is multi-store single DB
isCustomersShared
public static boolean isCustomersShared()
- Returns:
- the customersShared
setCustomersShared
public static void setCustomersShared(boolean customersShared)
- Parameters:
customersShared
- the customersShared to set
isProductsShared
public static boolean isProductsShared()
- Returns:
- the productsShared
setProductsShared
public static void setProductsShared(boolean productsShared)
- Parameters:
productsShared
- the productsShared to set
getStoreId
public static java.lang.String getStoreId()
- Returns:
- the storeId
setStoreId
public static void setStoreId(java.lang.String storeId)
- Parameters:
storeId
- the storeId to set
getUsername
public static java.lang.String getUsername()
- Returns:
- the username
setUsername
public static void setUsername(java.lang.String username)
- Parameters:
username
- the username to set
getPassword
public static java.lang.String getPassword()
- Returns:
- the password
setPassword
public static void setPassword(java.lang.String password)
- Parameters:
password
- the password to set
getEngineMode
public static int getEngineMode()
- Returns:
- the engineMode
setEngineMode
public static void setEngineMode(int engineMode)
- Parameters:
engineMode
- the engineMode to set
getAdminEngineClassname
public static java.lang.String getAdminEngineClassname()
- Returns:
- the adminEngineClassname
setAdminEngineClassname
public static void setAdminEngineClassname(java.lang.String adminEngineClassname)
- Parameters:
adminEngineClassname
- the adminEngineClassname to set
getEng
public static KKAdminIf getEng()
- Returns:
- the eng
setEng
public static void setEng(KKAdminIf eng)
- Parameters:
eng
- the eng to set
getLocale
public static java.lang.String getLocale()
- Returns:
- the locale
setLocale
public static void setLocale(java.lang.String locale)
- Parameters:
locale
- the locale to set
getImportFilename
public static java.lang.String getImportFilename()
- Returns:
- the importFilename
setImportFilename
public static void setImportFilename(java.lang.String importFilename)
- Parameters:
importFilename
- the importFilename to set
getExportFilename
public static java.lang.String getExportFilename()
- Returns:
- the exportFilename
setExportFilename
public static void setExportFilename(java.lang.String exportFilename)
- Parameters:
exportFilename
- the exportFilename to set
isReplace
public static boolean isReplace()
- Returns:
- the replace
setReplace
public static void setReplace(boolean replace)
- Parameters:
replace
- the replace to set
isListLanguages
public static boolean isListLanguages()
- Returns:
- the listLanguages
setListLanguages
public static void setListLanguages(boolean listLanguages)
- Parameters:
listLanguages
- the listLanguages to set
isListMessages
public static boolean isListMessages()
- Returns:
- the listMessages
setListMessages
public static void setListMessages(boolean listMessages)
- Parameters:
listMessages
- the listMessages to set
isDoImport
public static boolean isDoImport()
- Returns:
- the doImport
setDoImport
public static void setDoImport(boolean doImport)
- Parameters:
doImport
- the doImport to set
isDoExport
public static boolean isDoExport()
- Returns:
- the doExport
setDoExport
public static void setDoExport(boolean doExport)
- Parameters:
doExport
- the doExport to set
getMsgType
public static int getMsgType()
- Returns:
- the msgType
setMsgType
public static void setMsgType(int msgType)
- Parameters:
msgType
- the msgType to set
isDoSqlExport
public static boolean isDoSqlExport()
- Returns:
- the doSqlExport
setDoSqlExport
public static void setDoSqlExport(boolean doSqlExport)
- Parameters:
doSqlExport
- the doSqlExport to set
getFileEncoding
public static java.lang.String getFileEncoding()
- Returns:
- the current file encoding used when reading files
setFileEncoding
public static void setFileEncoding(java.lang.String fileEncoding)
- Parameters:
fileEncoding
- set the file encoding used when reading files
getConsoleEncoding
public static java.lang.String getConsoleEncoding()
- Returns:
- the consoleEncoding
setConsoleEncoding
public static void setConsoleEncoding(java.lang.String consoleEncoding)
- Parameters:
consoleEncoding
- the consoleEncoding to set
isCategoriesShared
public static boolean isCategoriesShared()
- Returns:
- the categoriesShared
setCategoriesShared
public static void setCategoriesShared(boolean categoriesShared)
- Parameters:
categoriesShared
- the categoriesShared to set
Copyright © 2011 DS Data Systems UK Ltd.