public interface ModuleInterface
Modifier and Type | Field and Description |
---|---|
static int |
MODULE_SUB_TYPE_PROMOTION
Order Total sub-type module constant
|
static int |
MODULE_TYPE_ORDER_TOTAL
Order Total type module constant
|
static int |
MODULE_TYPE_OTHER
Other module type constant
|
static int |
MODULE_TYPE_PAYMENT
Payment type module constant
|
static int |
MODULE_TYPE_SHIPPING
Shipping type module constant
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassPrefix() |
java.lang.String |
getConfigKeyStub() |
KKConfiguration[] |
getConfigs() |
java.lang.String |
getImplementationFileName() |
java.lang.String[] |
getKeys() |
java.lang.String |
getModuleCode() |
int |
getModuleSubType() |
java.lang.String |
getModuleTitle() |
int |
getModuleType() |
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 |
setInstalled(boolean installed)
Set the module installation status
|
java.lang.String |
toString() |
static final int MODULE_TYPE_PAYMENT
static final int MODULE_TYPE_SHIPPING
static final int MODULE_TYPE_ORDER_TOTAL
static final int MODULE_TYPE_OTHER
static final int MODULE_SUB_TYPE_PROMOTION
void init(java.lang.String moduleName)
moduleName
- the module's ClassName (only the final part, not including the package)int getModuleType()
int getModuleSubType()
java.lang.String getModuleCode()
java.lang.String getClassPrefix()
java.lang.String getConfigKeyStub()
void setConfigKeyStub(java.lang.String configKeyStub)
configKeyStub
- set this config key stubboolean installed() throws com.konakart.app.KKException
com.konakart.app.KKException
- if something unexpected happens with the databasevoid setInstalled(boolean installed)
installed
- set to true if the module is currently installedvoid install() throws com.konakart.app.KKException
com.konakart.app.KKException
- if something unexpected happens with the databaseKKConfiguration[] getConfigs()
void remove() throws com.konakart.app.KKException
com.konakart.app.KKException
- if something unexpected happens with the databasejava.lang.String[] getKeys() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionjava.lang.String getImplementationFileName()
java.lang.String getModuleTitle()
java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 DS Data Systems UK Ltd.