public class KKCmd
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static KKAdminIf |
adminEng |
private static java.lang.String |
adminEngineName |
private static java.lang.String |
brokerUrl |
private static boolean |
categoriesShared |
private static java.lang.String |
catLogId |
private static java.lang.String |
cmd |
private static java.lang.String |
cmds |
private static java.lang.String |
consoleEncoding |
private static java.lang.String |
credsFilename |
private static int |
custId |
private static java.lang.String |
custom1 |
private static java.lang.String |
custom2 |
private static java.lang.String |
custom3 |
private static java.lang.String |
custom4 |
private static java.lang.String |
custom5 |
private static boolean |
customersShared |
private static boolean |
debug |
private static java.lang.String |
DEFAULT_CONSOLE_ENCODING |
private static int |
engineMode |
private static java.lang.String |
key |
private static int |
langId |
static org.apache.commons.logging.Log |
log
logger
|
private static com.konakart.appif.MqOptionsIf |
mqOptions
MQ Options
|
private static java.lang.String |
msgText |
private static int |
orderId |
private static java.io.PrintStream |
outPrintStream |
private static java.lang.String |
password |
private static int |
prodId |
private static boolean |
productsShared |
private static java.lang.String |
qpassword |
private static java.lang.String |
queue |
private static java.lang.String |
qusername |
private static java.lang.String |
sessionId |
private static com.konakart.appif.KKEngIf |
storeFrontEng |
private static java.lang.String |
storefrontEngineName |
private static java.lang.String |
storeId |
static int |
SUCCESSFUL_COMPLETION
Success
|
static int |
UNSUCCESSFUL_COMPLETION
Failure
|
private static java.lang.String |
usage |
private static java.lang.String |
username |
Constructor and Description |
---|
KKCmd() |
Modifier and Type | Method and Description |
---|---|
private static void |
adminLogin() |
static KKAdminIf |
getAdminEng() |
static java.lang.String |
getAdminEngineName() |
static java.lang.String |
getBrokerUrl() |
static java.lang.String |
getCatLogId() |
static java.lang.String |
getCmd() |
static java.lang.String |
getConsoleEncoding() |
static java.lang.String |
getCredsFilename() |
static int |
getCustId() |
static java.lang.String |
getCustom1() |
static java.lang.String |
getCustom2() |
static java.lang.String |
getCustom3() |
static java.lang.String |
getCustom4() |
static java.lang.String |
getCustom5() |
static int |
getEngineMode() |
static java.lang.String |
getKey() |
static int |
getLangId() |
static java.lang.String |
getMsgText() |
static int |
getOrderId() |
static java.io.PrintStream |
getOutPrintStream() |
static java.lang.String |
getPassword() |
static int |
getProdId() |
static java.lang.String |
getQpassword() |
static java.lang.String |
getQueue() |
static java.lang.String |
getQusername() |
static java.lang.String |
getSessionId() |
static com.konakart.appif.KKEngIf |
getStoreFrontEng() |
static java.lang.String |
getStorefrontEngineName() |
static java.lang.String |
getStoreId() |
static java.lang.String |
getUsername() |
static boolean |
isCategoriesShared() |
static boolean |
isCustomersShared() |
static boolean |
isDebug() |
static boolean |
isProductsShared() |
static void |
main(java.lang.String[] args) |
private static int |
postMsg() |
private static void |
printCategoryTree(com.konakart.appif.CategoryIf cat,
int catLevel) |
private static void |
println(java.lang.String str) |
static int |
processArgs(java.lang.String[] args)
Process the Args to operate on KonaKart Messages
|
private static int |
readCategories() |
private static int |
readConfigAdmin() |
private static int |
readCustomerAdmin() |
private static int |
readMsg() |
private static int |
readOrderAdmin() |
private static int |
readProduct() |
private static int |
readProductAdmin() |
static int |
runCmd()
Executes the command
|
static void |
setAdminEng(KKAdminIf adminEng) |
static void |
setAdminEngineName(java.lang.String adminEngineName) |
static void |
setBrokerUrl(java.lang.String brokerUrl) |
static void |
setCategoriesShared(boolean categoriesShared) |
static void |
setCatLogId(java.lang.String catLogId) |
static void |
setCmd(java.lang.String cmd) |
static void |
setConsoleEncoding(java.lang.String consoleEncoding) |
static void |
setCredsFilename(java.lang.String credsFilename) |
static void |
setCustId(int custId) |
static void |
setCustom1(java.lang.String custom1) |
static void |
setCustom2(java.lang.String custom2) |
static void |
setCustom3(java.lang.String custom3) |
static void |
setCustom4(java.lang.String custom4) |
static void |
setCustom5(java.lang.String custom5) |
static void |
setCustomersShared(boolean customersShared) |
static void |
setDebug(boolean debug) |
static void |
setEngineMode(int engineMode) |
static void |
setKey(java.lang.String key) |
static void |
setLangId(int langId) |
static void |
setMsgText(java.lang.String msgText) |
static void |
setOrderId(int orderId) |
static void |
setOutPrintStream(java.io.PrintStream outPrintStream) |
static void |
setPassword(java.lang.String password) |
static void |
setProdId(int prodId) |
static void |
setProductsShared(boolean productsShared) |
static void |
setQpassword(java.lang.String qpassword) |
static void |
setQueue(java.lang.String queue) |
static void |
setQusername(java.lang.String qusername) |
static void |
setSessionId(java.lang.String sessionId) |
static void |
setStoreFrontEng(com.konakart.appif.KKEngIf storeFrontEng) |
static void |
setStorefrontEngineName(java.lang.String storefrontEngineName) |
static void |
setStoreId(java.lang.String storeId) |
private static void |
setUpMqConnection() |
static void |
setUsername(java.lang.String username) |
private static void |
storeFrontLogin() |
public static org.apache.commons.logging.Log log
public static final int SUCCESSFUL_COMPLETION
public static final int UNSUCCESSFUL_COMPLETION
private static final java.lang.String DEFAULT_CONSOLE_ENCODING
private static java.lang.String consoleEncoding
private static final java.lang.String usage
private static final java.lang.String cmds
private static java.lang.String credsFilename
private static java.lang.String username
private static java.lang.String password
private static java.lang.String sessionId
private static java.lang.String cmd
private static java.lang.String storeId
private static java.lang.String storefrontEngineName
private static java.lang.String adminEngineName
private static int engineMode
private static boolean customersShared
private static boolean productsShared
private static boolean categoriesShared
private static int langId
private static int prodId
private static int orderId
private static int custId
private static java.lang.String catLogId
private static java.lang.String key
private static java.lang.String queue
private static java.lang.String qusername
private static java.lang.String qpassword
private static java.lang.String brokerUrl
private static java.lang.String msgText
private static java.lang.String custom1
private static java.lang.String custom2
private static java.lang.String custom3
private static java.lang.String custom4
private static java.lang.String custom5
private static boolean debug
private static com.konakart.appif.KKEngIf storeFrontEng
private static KKAdminIf adminEng
private static java.io.PrintStream outPrintStream
private static com.konakart.appif.MqOptionsIf mqOptions
public static void main(java.lang.String[] args)
args
- the argspublic static int processArgs(java.lang.String[] args) throws java.lang.Exception
args
- command line argumentsjava.lang.Exception
- an unexpected exceptionpublic static int runCmd() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
- an unexpected UnsupportedEncodingException exceptionprivate static int postMsg() throws java.lang.Exception
java.lang.Exception
private static int readCategories() throws java.io.UnsupportedEncodingException, com.konakart.app.KKException, java.lang.IllegalArgumentException, KKAdminException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
java.io.UnsupportedEncodingException
com.konakart.app.KKException
java.lang.IllegalArgumentException
KKAdminException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
private static int readConfigAdmin() throws java.io.UnsupportedEncodingException, com.konakart.app.KKException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException, KKAdminException
java.io.UnsupportedEncodingException
com.konakart.app.KKException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
KKAdminException
private static int readCustomerAdmin() throws java.io.UnsupportedEncodingException, com.konakart.app.KKException, java.lang.IllegalArgumentException, KKAdminException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
java.io.UnsupportedEncodingException
com.konakart.app.KKException
java.lang.IllegalArgumentException
KKAdminException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
private static int readMsg() throws java.lang.Exception
java.lang.Exception
private static int readOrderAdmin() throws java.io.UnsupportedEncodingException, com.konakart.app.KKException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException, KKAdminException
java.io.UnsupportedEncodingException
com.konakart.app.KKException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
KKAdminException
private static int readProduct() throws java.io.UnsupportedEncodingException, com.konakart.app.KKException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
java.io.UnsupportedEncodingException
com.konakart.app.KKException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
private static int readProductAdmin() throws java.io.UnsupportedEncodingException, com.konakart.app.KKException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException, KKAdminException
java.io.UnsupportedEncodingException
com.konakart.app.KKException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
KKAdminException
private static void storeFrontLogin() throws com.konakart.app.KKException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
com.konakart.app.KKException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
private static void adminLogin() throws com.konakart.app.KKException, java.lang.IllegalArgumentException, KKAdminException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
com.konakart.app.KKException
java.lang.IllegalArgumentException
KKAdminException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
private static void println(java.lang.String str) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
private static void printCategoryTree(com.konakart.appif.CategoryIf cat, int catLevel) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
private static void setUpMqConnection() throws java.lang.Exception
java.lang.Exception
public static java.lang.String getConsoleEncoding()
public static void setConsoleEncoding(java.lang.String consoleEncoding)
consoleEncoding
- the consoleEncoding to setpublic static java.lang.String getPassword()
public static void setPassword(java.lang.String password)
password
- the password to setpublic static boolean isDebug()
public static void setDebug(boolean debug)
debug
- the debug to setpublic static java.lang.String getCredsFilename()
public static void setCredsFilename(java.lang.String credsFilename)
credsFilename
- the credsFilename to setpublic static java.lang.String getUsername()
public static void setUsername(java.lang.String username)
username
- the username to setpublic static java.lang.String getCmd()
public static void setCmd(java.lang.String cmd)
cmd
- the cmd to setpublic static java.lang.String getStoreId()
public static void setStoreId(java.lang.String storeId)
storeId
- the storeId to setpublic static java.io.PrintStream getOutPrintStream()
public static void setOutPrintStream(java.io.PrintStream outPrintStream)
outPrintStream
- the outPrintStream to setpublic static int getEngineMode()
public static void setEngineMode(int engineMode)
engineMode
- the engineMode to setpublic 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 java.lang.String getStorefrontEngineName()
public static void setStorefrontEngineName(java.lang.String storefrontEngineName)
storefrontEngineName
- the storefrontEngineName to setpublic static com.konakart.appif.KKEngIf getStoreFrontEng() throws java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
- an unexpected InvocationTargetException exceptionjava.lang.ClassNotFoundException
- an unexpected ClassNotFoundException exceptionjava.lang.IllegalAccessException
- an unexpected IllegalAccessException exceptionjava.lang.InstantiationException
- an unexpected InstantiationException exceptionjava.lang.IllegalArgumentException
- an unexpected IllegalArgumentException exceptionpublic static void setStoreFrontEng(com.konakart.appif.KKEngIf storeFrontEng)
storeFrontEng
- the storeFrontEng to setpublic static int getProdId()
public static void setProdId(int prodId)
prodId
- the prodId to setpublic static java.lang.String getCatLogId()
public static void setCatLogId(java.lang.String catLogId)
catLogId
- the catLogId to setpublic static int getLangId()
public static void setLangId(int langId)
langId
- the langId to setpublic static java.lang.String getSessionId()
public static void setSessionId(java.lang.String sessionId)
sessionId
- the sessionId to setpublic static int getCustId()
public static void setCustId(int custId)
custId
- the custId to setpublic static KKAdminIf getAdminEng() throws java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
- an unexpected InvocationTargetException exceptionjava.lang.ClassNotFoundException
- an unexpected ClassNotFoundException exceptionjava.lang.IllegalAccessException
- an unexpected IllegalAccessException exceptionjava.lang.InstantiationException
- an unexpected InstantiationException exceptionjava.lang.IllegalArgumentException
- an unexpected IllegalArgumentException exceptionpublic static void setAdminEng(KKAdminIf adminEng)
adminEng
- the adminEng to setpublic static java.lang.String getAdminEngineName()
public static void setAdminEngineName(java.lang.String adminEngineName)
adminEngineName
- the adminEngineName to setpublic static java.lang.String getCustom1()
public static void setCustom1(java.lang.String custom1)
custom1
- the custom1 to setpublic static java.lang.String getCustom2()
public static void setCustom2(java.lang.String custom2)
custom2
- the custom2 to setpublic static java.lang.String getCustom3()
public static void setCustom3(java.lang.String custom3)
custom3
- the custom3 to setpublic static java.lang.String getCustom4()
public static void setCustom4(java.lang.String custom4)
custom4
- the custom4 to setpublic static java.lang.String getCustom5()
public static void setCustom5(java.lang.String custom5)
custom5
- the custom5 to setpublic static int getOrderId()
public static void setOrderId(int orderId)
orderId
- the orderIdpublic static java.lang.String getKey()
public static void setKey(java.lang.String key)
key
- the keypublic static java.lang.String getQueue()
public static void setQueue(java.lang.String queue)
queue
- the queue to setpublic static java.lang.String getQusername()
public static void setQusername(java.lang.String qusername)
qusername
- the qusername to setpublic static java.lang.String getQpassword()
public static void setQpassword(java.lang.String qpassword)
qpassword
- the qpassword to setpublic static java.lang.String getBrokerUrl()
public static void setBrokerUrl(java.lang.String brokerUrl)
brokerUrl
- the brokerUrl to setpublic static java.lang.String getMsgText()
public static void setMsgText(java.lang.String msgText)
msgText
- the msgText to setCopyright © 2018 DS Data Systems UK Ltd.