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, wait
toString
protected 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 ModuleInterface
moduleName
- the module's ClassName (only the final part, not including the package)public java.lang.String getClassPrefix()
getClassPrefix
in interface ModuleInterface
public int getModuleType()
getModuleType
in interface ModuleInterface
public java.lang.String getModuleTitle()
getModuleTitle
in interface ModuleInterface
public void install() throws com.konakart.app.KKException
ModuleInterface
install
in interface ModuleInterface
com.konakart.app.KKException
- if something unexpected happens with the databasepublic void setInstalled(boolean installed)
setInstalled
in interface ModuleInterface
installed
- set to true if the module is currently installedpublic boolean installed() throws com.konakart.app.KKException
ModuleInterface
installed
in interface ModuleInterface
com.konakart.app.KKException
- if something unexpected happens with the databasepublic void remove() throws com.konakart.app.KKException
ModuleInterface
remove
in interface ModuleInterface
com.konakart.app.KKException
- if something unexpected happens with the databasepublic KKConfiguration[] getConfigs()
getConfigs
in interface ModuleInterface
public 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 ModuleInterface
com.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 ModuleInterface
public void setImplementationFileName(java.lang.String implementationFileName)
implementationFileName
- the implementationFileName to setpublic java.lang.String getConfigKeyStub()
getConfigKeyStub
in interface ModuleInterface
public void setConfigKeyStub(java.lang.String configKeyStub)
setConfigKeyStub
in interface ModuleInterface
configKeyStub
- the configKeyStub to setpublic int getModuleSubType()
getModuleSubType
in interface ModuleInterface
public java.lang.String getModuleCode()
getModuleCode
in interface ModuleInterface
public static java.util.Date getKonakartTimeStampDate()
Copyright © 2018 DS Data Systems UK Ltd.