public class Module extends java.lang.Object implements ModuleInterface
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
configKeyStub
the config Key Stub for the module
|
KKConfiguration[] |
configs
the set of configuration values for the module
|
java.lang.String |
implementationFileName
the implementation filename for the module
|
boolean |
installed
the installation status of the module
|
java.lang.String[] |
keys
the configuration keys for the module
|
protected static org.apache.commons.logging.Log |
log |
private java.util.ResourceBundle |
msgs |
MODULE_SUB_TYPE_PROMOTION, MODULE_TYPE_ORDER_TOTAL, MODULE_TYPE_OTHER, MODULE_TYPE_PAYMENT, MODULE_TYPE_SHIPPING| Constructor and Description |
|---|
Module() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassPrefix() |
java.lang.String |
getConfigKeyStub() |
KKConfiguration[] |
getConfigs() |
java.lang.String |
getImplementationFileName() |
java.lang.String[] |
getKeys() |
static java.util.Date |
getKonakartTimeStampDate() |
java.lang.String |
getModuleCode() |
int |
getModuleSubType() |
java.lang.String |
getModuleTitle() |
int |
getModuleType() |
java.util.ResourceBundle |
getMsgs() |
void |
init(java.lang.String moduleName)
Initialise the Module
|
void |
install()
Install the module
|
boolean |
installed()
Is the module currently installed?
|
void |
remove()
Remove the module
|
void |
setConfigKeyStub(java.lang.String configKeyStub) |
void |
setConfigs(KKConfiguration[] theConfigs) |
void |
setImplementationFileName(java.lang.String implementationFileName) |
void |
setInstalled(boolean installed)
Set the module installation status
|
void |
setKeys(java.lang.String[] theKeys) |
void |
setMsgs(java.util.ResourceBundle theMsgs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringprotected static org.apache.commons.logging.Log log
private java.util.ResourceBundle msgs
public java.lang.String[] keys
public java.lang.String implementationFileName
public boolean installed
public java.lang.String configKeyStub
public KKConfiguration[] configs
public void init(java.lang.String moduleName)
init in interface ModuleInterfacemoduleName - the module's ClassName (only the final part, not including the package)public java.lang.String getClassPrefix()
getClassPrefix in interface ModuleInterfacepublic int getModuleType()
getModuleType in interface ModuleInterfacepublic java.lang.String getModuleTitle()
getModuleTitle in interface ModuleInterfacepublic void install()
throws com.konakart.app.KKException
ModuleInterfaceinstall in interface ModuleInterfacecom.konakart.app.KKException - if something unexpected happens with the databasepublic void setInstalled(boolean installed)
setInstalled in interface ModuleInterfaceinstalled - set to true if the module is currently installedpublic boolean installed()
throws com.konakart.app.KKException
ModuleInterfaceinstalled in interface ModuleInterfacecom.konakart.app.KKException - if something unexpected happens with the databasepublic void remove()
throws com.konakart.app.KKException
ModuleInterfaceremove in interface ModuleInterfacecom.konakart.app.KKException - if something unexpected happens with the databasepublic KKConfiguration[] getConfigs()
getConfigs in interface ModuleInterfacepublic void setConfigs(KKConfiguration[] theConfigs)
theConfigs - the configs to setpublic void setKeys(java.lang.String[] theKeys)
theKeys - the keys to setpublic java.lang.String[] getKeys()
throws com.konakart.app.KKException
getKeys in interface ModuleInterfacecom.konakart.app.KKException - an unexpected KKException exceptionpublic java.util.ResourceBundle getMsgs()
public void setMsgs(java.util.ResourceBundle theMsgs)
theMsgs - the theMsgspublic java.lang.String getImplementationFileName()
getImplementationFileName in interface ModuleInterfacepublic void setImplementationFileName(java.lang.String implementationFileName)
implementationFileName - the implementationFileName to setpublic java.lang.String getConfigKeyStub()
getConfigKeyStub in interface ModuleInterfacepublic void setConfigKeyStub(java.lang.String configKeyStub)
setConfigKeyStub in interface ModuleInterfaceconfigKeyStub - the configKeyStub to setpublic int getModuleSubType()
getModuleSubType in interface ModuleInterfacepublic java.lang.String getModuleCode()
getModuleCode in interface ModuleInterfacepublic static java.util.Date getKonakartTimeStampDate()
Copyright © 2018 DS Data Systems UK Ltd.