com.konakartadmin.utils
Class KKMessages

java.lang.Object
  extended by com.konakartadmin.utils.KKMessages

public class KKMessages
extends java.lang.Object

A utility for operating on KonaKart Messages


Field Summary
private static java.lang.String adminEngineClassname
           
private static boolean categoriesShared
           
private static java.lang.String consoleEncoding
           
private static boolean customersShared
           
private static java.lang.String DEFAULT_KONAKARTADMIN_PROPS_FILENAME
           
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
           
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 Summary
KKMessages()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

KKMessages

public KKMessages()
Method Detail

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.