public class VelocityContextMgr extends BaseMgr implements VelocityContextMgrIf
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
templateBaseDir
ORDER_CONFIRMATION_EMAIL, SEND_NEW_PASSWORD, STOCK_REORDER_EMAIL, TEMPLATE_MAIL_TO_CUST, WELCOME_EMAIL
Constructor and Description |
---|
VelocityContextMgr(KKEngIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addToContext(org.apache.velocity.VelocityContext context,
KKEngIf eng,
int contextType,
int langId,
EmailOptionsIf options,
int customInt,
java.lang.String customString)
Put an object into the VelocityContext
|
protected java.lang.String |
contextTypeToString(int contextType)
Just for diagnostic purposes to translate the contextType integer into a human-readable
String
|
acquireLock, addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkRequired, escapeHTML, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCacheMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getEventMgr, getExportMgr, getHTMLEscaper, getKonaKartConfig, getKonaKartConfig, getKonaKartConfig, getLangMgr, getManuMgr, getMiscItemMgr, getMiscPriceMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderIntegrationMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getProductsToCategoresCriteria, getPromMgr, getPunchOutMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getStoreTime, getSuggestionMgr, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isClassPresent, isCommunity, isDeadlockException, isEnterprise, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreSharedDb, isMultiStoreShareProducts, isMultiVendor, isUnix, manageThrowable, releaseLock, updateStaticVariablesNow
public VelocityContextMgr(KKEngIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic void addToContext(org.apache.velocity.VelocityContext context, KKEngIf eng, int contextType, int langId, EmailOptionsIf options, int customInt, java.lang.String customString) throws com.konakart.app.KKException
VelocityContextMgrIf
addToContext
in interface VelocityContextMgrIf
context
- The velocity contexteng
- enginecontextType
- one of:
langId
- languageIdoptions
- EmailOptionscustomInt
- a custom Integer - the meaning depends on the contextType:
customString
- a custom String - the meaning depends on the contextType:
com.konakart.app.KKException
- an unexpected KKException exceptionprotected java.lang.String contextTypeToString(int contextType)
contextType
- the contextTypeCopyright © 2018 DS Data Systems UK Ltd.