|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminModulesMgr
public class AdminModulesMgr
Manages the add-on-modules... currently three types: Payment, Order Total and Shipping
| Nested Class Summary | |
|---|---|
protected class |
AdminModulesMgr.StaticData
Used to store the static data of this manager |
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
protected static java.lang.String |
mutex
|
protected static java.util.Map<java.lang.String,AdminModulesMgr.StaticData> |
staticDataHM
Hash Map that contains the static data |
| Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
|---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
| Constructor Summary | |
|---|---|
AdminModulesMgr(KKAdminIf eng)
Constructor |
|
| Method Summary | |
|---|---|
com.konakart.app.NameValue[] |
callPaymentModule(java.lang.String moduleClassName,
com.konakart.app.PaymentOptions options)
This method is used to call a payment module from the Admin App. |
void |
fetchModules()
Initialise the modules - regardless of the setting of initDone |
protected ModuleInterface |
getModuleInstanceByName(java.lang.String moduleName)
Called to instantiate a module. |
KKModule[] |
getModules(int moduleType)
Returns an array of Module objects for the module type specified |
int |
getNumOrderTotalModules()
Returns the number of Order Total modules that can be set up |
int |
getNumOtherModules()
Returns the number of Other modules that can be set up |
int |
getNumPaymentModules()
Returns the number of payment modules that can be set up |
int |
getNumShippingModules()
Returns the number of shipping modules that can be set up |
OrderTotalModule[] |
getOrderTotalModules()
Returns an array of Order Total Modules |
OtherModule[] |
getOtherModules()
Returns an array of Other Modules |
protected AdminPaymentIf |
getPaymentModuleForName(java.lang.String moduleClassName)
Called to instantiate a payment module. |
PaymentModule[] |
getPaymentModules()
Returns an array of payment modules |
ShippingModuleInterface |
getShippingModuleByCode(java.lang.String code)
Get a ShippingModuleInterface with the specified code |
ShippingModule[] |
getShippingModules()
Returns an array of Shipping Modules |
private AdminModulesMgr.StaticData |
getStaticDataForStore()
|
void |
init()
Initialise the modules - if not already initialised |
protected ModuleInterface[] |
loadModules(java.lang.String classesStr,
int moduleType)
Load up the modules identified in the classesStr. |
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager |
void |
setNumOrderTotalModules(int numOrderTotalModules)
Set the number of modules that can be set up |
void |
setNumOtherModules(int numOtherModules)
Set the number of Other modules that can be set up |
void |
setNumPaymentModules(int numberPaymentModules)
Set the number of modules that can be set up |
void |
setNumShippingModules(int numShippingModules)
Set the number of modules that can be set up |
void |
setOrderTotalModules(OrderTotalModule[] orderTotalModules)
*Sets an array of Order Total modules |
void |
setOtherModules(OtherModule[] otherModules)
Sets an array of Other modules |
void |
setPaymentModules(PaymentModule[] paymentModules)
Sets an array of payment modules |
void |
setShippingModules(ShippingModule[] shippingModules)
Sets an array of Shipping modules |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,AdminModulesMgr.StaticData> staticDataHM
| Constructor Detail |
|---|
public AdminModulesMgr(KKAdminIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public void init()
throws KKAdminException
init in interface AdminModulesMgrIfKKAdminException
public void fetchModules()
throws KKAdminException
fetchModules in interface AdminModulesMgrIfKKAdminException
protected ModuleInterface[] loadModules(java.lang.String classesStr,
int moduleType)
throws KKAdminException
classesStr - moduleType - the type of module
KKAdminException
protected ModuleInterface getModuleInstanceByName(java.lang.String moduleName)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
moduleName -
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException
public KKModule[] getModules(int moduleType)
throws com.konakart.app.KKException,
KKAdminException
getModules in interface AdminModulesMgrIfmoduleType - the module type
com.konakart.app.KKException
KKAdminExceptionpublic ShippingModuleInterface getShippingModuleByCode(java.lang.String code)
getShippingModuleByCode in interface AdminModulesMgrIfcode - the code for the Shipping Module
public com.konakart.app.NameValue[] callPaymentModule(java.lang.String moduleClassName,
com.konakart.app.PaymentOptions options)
throws java.lang.Exception
AdminModulesMgrIfcom.konakartadmin.modules.AdminPaymentIf interface, is
instantiated and the execute method is called.
callPaymentModule in interface AdminModulesMgrIfmoduleClassName - The full class name such as
com.konakartadmin.modules.payment.authorizenet.AdminPaymentoptions - An object containing all of the parameters required for the transaction
java.lang.Exception
protected AdminPaymentIf getPaymentModuleForName(java.lang.String moduleClassName)
throws java.lang.IllegalArgumentException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.ClassNotFoundException
moduleClassName -
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundExceptionprivate AdminModulesMgr.StaticData getStaticDataForStore()
public int getNumOrderTotalModules()
AdminModulesMgrIf
getNumOrderTotalModules in interface AdminModulesMgrIfpublic int getNumPaymentModules()
AdminModulesMgrIf
getNumPaymentModules in interface AdminModulesMgrIfpublic int getNumShippingModules()
AdminModulesMgrIf
getNumShippingModules in interface AdminModulesMgrIfpublic int getNumOtherModules()
AdminModulesMgrIf
getNumOtherModules in interface AdminModulesMgrIfpublic OrderTotalModule[] getOrderTotalModules()
AdminModulesMgrIf
getOrderTotalModules in interface AdminModulesMgrIfpublic OtherModule[] getOtherModules()
AdminModulesMgrIf
getOtherModules in interface AdminModulesMgrIfpublic PaymentModule[] getPaymentModules()
AdminModulesMgrIf
getPaymentModules in interface AdminModulesMgrIfpublic ShippingModule[] getShippingModules()
AdminModulesMgrIf
getShippingModules in interface AdminModulesMgrIfpublic void setNumOrderTotalModules(int numOrderTotalModules)
AdminModulesMgrIf
setNumOrderTotalModules in interface AdminModulesMgrIfnumOrderTotalModules - the numOrderTotalModules to setpublic void setNumPaymentModules(int numberPaymentModules)
AdminModulesMgrIf
setNumPaymentModules in interface AdminModulesMgrIfnumberPaymentModules - set the number of modules that can be set uppublic void setNumShippingModules(int numShippingModules)
AdminModulesMgrIf
setNumShippingModules in interface AdminModulesMgrIfnumShippingModules - the numShippingModules to setpublic void setNumOtherModules(int numOtherModules)
AdminModulesMgrIf
setNumOtherModules in interface AdminModulesMgrIfpublic void setOrderTotalModules(OrderTotalModule[] orderTotalModules)
AdminModulesMgrIf
setOrderTotalModules in interface AdminModulesMgrIforderTotalModules - the orderTotalModules to setpublic void setPaymentModules(PaymentModule[] paymentModules)
AdminModulesMgrIf
setPaymentModules in interface AdminModulesMgrIfpaymentModules - the paymentModules to setpublic void setShippingModules(ShippingModule[] shippingModules)
AdminModulesMgrIf
setShippingModules in interface AdminModulesMgrIfshippingModules - the shippingModules to setpublic void setOtherModules(OtherModule[] otherModules)
AdminModulesMgrIf
setOtherModules in interface AdminModulesMgrIfotherModules - the otherModules to set
public void refreshConfigs()
throws java.lang.Exception
refreshConfigs in interface AdminModulesMgrIfrefreshConfigs in class AdminBaseMgrjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||