com.konakartadmin.bl
Class AdminVelocityContextMgr
java.lang.Object
com.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminVelocityContextMgr
- All Implemented Interfaces:
- AdminVelocityContextMgrIf
public class AdminVelocityContextMgr
- extends AdminBaseMgr
- implements AdminVelocityContextMgrIf
The AdminVelocityContextMgr - for Managing context Maps
Field Summary |
protected static org.apache.commons.logging.Log |
log
the log |
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 |
log
protected static org.apache.commons.logging.Log log
- the log
AdminVelocityContextMgr
public AdminVelocityContextMgr(KKAdminIf eng)
throws java.lang.Exception
- Constructor
- Parameters:
eng
-
- Throws:
java.lang.Exception
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 contexteng
- enginecontextType
- one of:
- AdminVelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST
- AdminVelocityContextMgrIf.SEND_NEW_PASSWORD
- AdminVelocityContextMgrIf.STATUS_CHANGE_EMAIL
langId
- languageIdoptions
- EmailOptionscustomInt
- 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.