|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModuleInterface
All Konakart Admin modules must implement the ModuleInterface
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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)
|
java.lang.String |
toString()
|
Field Detail |
---|
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
Method Detail |
---|
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 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
java.lang.String getImplementationFileName()
java.lang.String getModuleTitle()
java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |