|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.BaseMgr
public class BaseMgr
Base Manager
| Field Summary | |
|---|---|
protected java.lang.String |
templateBaseDir
Velocity template base directory under WEB-INF/classes. |
| Constructor Summary | |
|---|---|
BaseMgr()
|
|
| Method Summary | |
|---|---|
protected static void |
addInsertAttr(org.apache.torque.util.Criteria c,
java.lang.String attrName,
int value)
A utility method to not add integers that are equal to ConstantsMgr.NOT_SET |
protected static void |
addInsertAttr(org.apache.torque.util.Criteria c,
java.lang.String attrName,
java.lang.Object value)
A utility to not add null objects |
protected void |
checkRequired(java.lang.Object param,
java.lang.String paramType,
java.lang.String paramName)
Throws an exception with a proper message if the required parameter is null or null or empty for the case of a string. |
protected AdminEngineMgrIf |
getAdminEngMgr()
|
protected BasketMgrIf |
getBasketMgr()
|
protected BillingMgrIf |
getBillingMgr()
|
protected BookableProductMgrIf |
getBookableProductMgr()
|
protected CategoryMgrIf |
getCatMgr()
|
protected ConfigurationMgrIf |
getConfigMgr()
|
protected CookieMgrIf |
getCookieMgr()
|
protected CurrencyMgrIf |
getCurrMgr()
|
protected CustomerMgrIf |
getCustMgr()
|
protected int |
getCustomerIdFromSession(java.lang.String sessionId)
Throws an exception if the customer isn't valid. |
protected CustomerStatsMgrIf |
getCustomerStatsMgr()
|
protected CustomerTagMgrIf |
getCustomerTagMgr()
|
protected EmailMgrIf |
getEmailMgr()
|
KKEngIf |
getEng()
|
protected LanguageMgrIf |
getLangMgr()
|
protected ManufacturerMgrIf |
getManuMgr()
|
protected MiscItemMgrIf |
getMiscItemMgr()
|
protected int |
getMode()
Return the engine mode |
protected java.lang.String |
getModeString()
Return the engine mode - as a descriptive String for diagnostic purposes only |
protected MqMgrIf |
getMqMgr()
|
protected MultiStoreMgrIf |
getMultiStoreMgr()
|
protected KKCriteria |
getNewCriteria()
Gets a new KKCriteria object |
protected KKCriteria |
getNewCriteria(boolean allStores)
Gets a new KKCriteria object with the option of it being for all stores when in multi-store single db mode. |
protected OrderMgrIf |
getOrderMgr()
|
protected OrderTotalMgrIf |
getOrderTotalMgr()
|
protected PaymentMgrIf |
getPaymentMgr()
|
protected ProductMgrIf |
getProdMgr()
|
protected PromotionMgrIf |
getPromMgr()
|
protected RewardPointMgrIf |
getRewardPointMgr()
|
protected SecurityMgrIf |
getSecMgr()
|
protected ShippingMgrIf |
getShippingMgr()
|
protected SolrMgrIf |
getSolrMgr()
|
protected java.lang.String |
getStoreId()
Return the storeId |
protected TaxMgrIf |
getTaxMgr()
|
protected org.apache.velocity.Template |
getTemplate(org.apache.velocity.app.VelocityEngine ve,
java.lang.String configDir,
java.lang.String templateName)
Helper method to search for the velocity templates in the correct sub-directory within the class path. |
protected java.lang.String |
getTemplateRoot(java.lang.String configDir)
Returns the template base directory which is created by concatenating the following: Value of the Directory configuration variable specified current storeId |
protected VelocityContextMgrIf |
getVelocityContextMgr()
|
protected WishListMgrIf |
getWishListMgr()
|
protected void |
init(KKEngIf eng,
org.apache.commons.logging.Log log)
Init method called from the super class. |
protected boolean |
isEnterprise()
Returns true if we are in Enterprise Mode |
protected boolean |
isMultiStoreShareCustomers()
Returns true if we need to share customers in multi-store single db mode |
protected boolean |
isMultiStoreShareProducts()
Returns true if we can share products in multi-store single db mode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String templateBaseDir
| Constructor Detail |
|---|
public BaseMgr()
| Method Detail |
|---|
protected void init(KKEngIf eng,
org.apache.commons.logging.Log log)
throws java.lang.Exception
eng - log -
java.lang.Exception
protected WishListMgrIf getWishListMgr()
throws java.lang.Exception
java.lang.Exception
protected TaxMgrIf getTaxMgr()
throws java.lang.Exception
java.lang.Exception
protected LanguageMgrIf getLangMgr()
throws java.lang.Exception
java.lang.Exception
protected CustomerMgrIf getCustMgr()
throws java.lang.Exception
java.lang.Exception
protected ConfigurationMgrIf getConfigMgr()
throws java.lang.Exception
java.lang.Exception
protected ProductMgrIf getProdMgr()
throws java.lang.Exception
java.lang.Exception
protected CurrencyMgrIf getCurrMgr()
throws java.lang.Exception
java.lang.Exception
protected SecurityMgrIf getSecMgr()
throws java.lang.Exception
java.lang.Exception
protected CategoryMgrIf getCatMgr()
throws java.lang.Exception
java.lang.Exception
protected EmailMgrIf getEmailMgr()
throws java.lang.Exception
java.lang.Exception
protected ManufacturerMgrIf getManuMgr()
throws java.lang.Exception
java.lang.Exception
protected VelocityContextMgrIf getVelocityContextMgr()
throws java.lang.Exception
java.lang.Exception
protected OrderMgrIf getOrderMgr()
throws java.lang.Exception
java.lang.Exception
protected PromotionMgrIf getPromMgr()
throws java.lang.Exception
java.lang.Exception
protected BasketMgrIf getBasketMgr()
throws java.lang.Exception
java.lang.Exception
protected CookieMgrIf getCookieMgr()
throws java.lang.Exception
java.lang.Exception
protected ShippingMgrIf getShippingMgr()
throws java.lang.Exception
java.lang.Exception
protected PaymentMgrIf getPaymentMgr()
throws java.lang.Exception
java.lang.Exception
protected OrderTotalMgrIf getOrderTotalMgr()
throws java.lang.Exception
java.lang.Exception
protected SolrMgrIf getSolrMgr()
throws java.lang.Exception
java.lang.Exception
protected MiscItemMgrIf getMiscItemMgr()
throws java.lang.Exception
java.lang.Exceptionprotected MultiStoreMgrIf getMultiStoreMgr()
protected CustomerTagMgrIf getCustomerTagMgr()
throws java.lang.Exception
java.lang.Exception
protected CustomerStatsMgrIf getCustomerStatsMgr()
throws java.lang.Exception
java.lang.Exception
protected BillingMgrIf getBillingMgr()
throws java.lang.Exception
java.lang.Exception
protected BookableProductMgrIf getBookableProductMgr()
throws java.lang.Exception
java.lang.Exception
protected RewardPointMgrIf getRewardPointMgr()
throws java.lang.Exception
java.lang.Exception
protected AdminEngineMgrIf getAdminEngMgr()
throws java.lang.Exception
java.lang.Exception
protected MqMgrIf getMqMgr()
throws java.lang.Exception
java.lang.Exception
protected static void addInsertAttr(org.apache.torque.util.Criteria c,
java.lang.String attrName,
int value)
c - attrName - value -
protected static void addInsertAttr(org.apache.torque.util.Criteria c,
java.lang.String attrName,
java.lang.Object value)
c - attrName - value -
protected void checkRequired(java.lang.Object param,
java.lang.String paramType,
java.lang.String paramName)
throws KKException
param - paramType - paramName -
KKException
protected int getCustomerIdFromSession(java.lang.String sessionId)
throws java.lang.Exception
sessionId -
java.lang.Exceptionpublic KKEngIf getEng()
protected int getMode()
throws KKException
KKException
protected java.lang.String getModeString()
throws KKException
KKException
protected java.lang.String getStoreId()
throws KKException
KKExceptionprotected KKCriteria getNewCriteria()
protected KKCriteria getNewCriteria(boolean allStores)
protected boolean isEnterprise()
throws KKException
KKException - if the engine config has not yet been defined
protected boolean isMultiStoreShareCustomers()
throws KKException
KKException
protected boolean isMultiStoreShareProducts()
throws KKException
KKException
protected org.apache.velocity.Template getTemplate(org.apache.velocity.app.VelocityEngine ve,
java.lang.String configDir,
java.lang.String templateName)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
KKException,
java.lang.Exception
ve - configDir - the configuration parameter that defines the root directory for the templatetemplateName -
java.lang.Exception
KKException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.ResourceNotFoundException
protected java.lang.String getTemplateRoot(java.lang.String configDir)
throws org.apache.torque.TorqueException,
KKException,
com.workingdogs.village.DataSetException,
java.lang.Exception
If the config variable isn't available, a default value of the current directory is returned.
configDir - the configuration parameter that defines the root directory for the template
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||