com.konakartadmin.bl
Class AdminVelocityContextMgr

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminVelocityContextMgr
All Implemented Interfaces:
AdminVelocityContextMgrIf

public class AdminVelocityContextMgr
extends AdminBaseMgr
implements AdminVelocityContextMgrIf

The AdminVelocityContextMgr - for Managing context Maps


Nested Class Summary
 
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr
AdminBaseMgr.StaticData
 
Field Summary
protected static org.apache.commons.logging.Log log
          the log
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Fields inherited from interface com.konakartadmin.blif.AdminVelocityContextMgrIf
SEND_NEW_PASSWORD, STATUS_CHANGE_EMAIL, TEMPLATE_MAIL_TO_CUST
 
Constructor Summary
AdminVelocityContextMgr(KKAdminIf eng)
          Constructor
 
Method Summary
 void addToContext(org.apache.velocity.VelocityContext context, KKAdminIf eng, int contextType, int langId, AdminEmailOptions options, int customInt, java.lang.String customString)
          Put an object into the VelocityContext
protected  java.lang.String contextTypeToString(int contextType)
           
 
Methods inherited from class com.konakartadmin.bl.AdminBaseMgr
addInsertAttr, addInsertAttr, checkIntIsSet, checkRequired, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminHtmlMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminPublishProdMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getExportXMLData, getIntFromString, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getPostSearchText, getPreSearchText, getPropertyValue, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, manageException, refreshConfigs, removeCData, setAdminEng, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr
 
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

AdminVelocityContextMgr

public AdminVelocityContextMgr(KKAdminIf eng)
                        throws java.lang.Exception
Constructor

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

addToContext

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

Specified by:
addToContext in interface AdminVelocityContextMgrIf
Parameters:
context - The velocity context
eng - engine
contextType - one of:
  • AdminVelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST
  • AdminVelocityContextMgrIf.SEND_NEW_PASSWORD
  • AdminVelocityContextMgrIf.STATUS_CHANGE_EMAIL
langId - languageId
options - EmailOptions
customInt - a custom Integer - the meaning depends on the contextType:
  • AdminVelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST - customerId
  • AdminVelocityContextMgrIf.SEND_NEW_PASSWORD - not set
  • AdminVelocityContextMgrIf.STATUS_CHANGE_EMAIL - orderId
customString - a custom String - the meaning depends on the contextType:
  • AdminVelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST - template name
  • AdminVelocityContextMgrIf.SEND_NEW_PASSWORD - customer's email address
  • AdminVelocityContextMgrIf.STATUS_CHANGE_EMAIL - new state Id
Throws:
KKAdminException

contextTypeToString

protected java.lang.String contextTypeToString(int contextType)


Copyright © 2011 DS Data Systems UK Ltd.