com.konakart.bl
Class VelocityContextMgr

java.lang.Object
  extended by com.konakart.bl.BaseMgr
      extended by com.konakart.bl.VelocityContextMgr
All Implemented Interfaces:
VelocityContextMgrIf

public class VelocityContextMgr
extends BaseMgr
implements VelocityContextMgrIf

The VelocityContextMgr - for Managing context Maps


Field Summary
protected static org.apache.commons.logging.Log log
          the log
 
Fields inherited from class com.konakart.bl.BaseMgr
templateBaseDir
 
Fields inherited from interface com.konakart.blif.VelocityContextMgrIf
ORDER_CONFIRMATION_EMAIL, SEND_NEW_PASSWORD, STOCK_REORDER_EMAIL, TEMPLATE_MAIL_TO_CUST, WELCOME_EMAIL
 
Constructor Summary
VelocityContextMgr(KKEngIf eng)
          Constructor
 
Method Summary
 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
 
Methods inherited from class com.konakart.bl.BaseMgr
addInsertAttr, addInsertAttr, checkRequired, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getLangMgr, getManuMgr, getMiscItemMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, isEnterprise, isMultiStoreShareCustomers, isMultiStoreShareProducts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log

Constructor Detail

VelocityContextMgr

public VelocityContextMgr(KKEngIf eng)
                   throws java.lang.Exception
Constructor

Parameters:
eng -
Throws:
java.lang.Exception
Method Detail

addToContext

public void addToContext(org.apache.velocity.VelocityContext context,
                         KKEngIf eng,
                         int contextType,
                         int langId,
                         EmailOptionsIf options,
                         int customInt,
                         java.lang.String customString)
                  throws KKException
Description copied from interface: VelocityContextMgrIf
Put an object into the VelocityContext

Specified by:
addToContext in interface VelocityContextMgrIf
Parameters:
context - The velocity context
eng - engine
contextType - one of:
  • VelocityContextMgrIf.ORDER_CONFIRMATION_EMAIL
  • VelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST
  • VelocityContextMgrIf.SEND_NEW_PASSWORD
  • VelocityContextMgrIf.STOCK_REORDER_EMAIL
  • VelocityContextMgrIf.WELCOME_EMAIL
langId - languageId
options - EmailOptions
customInt - a custom Integer - the meaning depends on the contextType:
  • VelocityContextMgrIf.ORDER_CONFIRMATION_EMAIL - orderId
  • VelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST - customerId
  • VelocityContextMgrIf.SEND_NEW_PASSWORD - customerId
  • VelocityContextMgrIf.STOCK_REORDER_EMAIL - productId
  • VelocityContextMgrIf.WELCOME_EMAIL - customerId
customString - a custom String - the meaning depends on the contextType:
  • VelocityContextMgrIf.ORDER_CONFIRMATION_EMAIL - customer's email address
  • VelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST - message
  • VelocityContextMgrIf.SEND_NEW_PASSWORD - customer's email address
  • VelocityContextMgrIf.STOCK_REORDER_EMAIL - sku
  • VelocityContextMgrIf.WELCOME_EMAIL - customer's email address
Throws:
KKException

contextTypeToString

protected java.lang.String contextTypeToString(int contextType)
Just for diagnostic purposes to translate the contextType integer into a human-readable String

Parameters:
contextType -
Returns:
a String repreenting the specified contextType


Copyright © 2011 DS Data Systems UK Ltd.