public class AdminHtmlMgr extends AdminBaseMgr implements AdminHtmlMgrIf
| Modifier and Type | Class and Description |
|---|---|
protected class |
AdminHtmlMgr.StaticData |
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
mutex |
protected static java.util.Map<java.lang.String,AdminHtmlMgr.StaticData> |
staticDataHM
Hash Map that contains the static data
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir| Constructor and Description |
|---|
AdminHtmlMgr(KKAdminIf eng)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultLanguageId()
Returns the default language id
|
java.lang.String |
getHtml(int htmlType,
int id,
int languageId,
java.lang.String arg1)
Retrieve the html string for the specified html type.
|
java.lang.String |
getHtml(int htmlType,
int id,
int languageId,
java.lang.String templateName,
java.lang.String arg1)
Retrieve the html string for the specified html type.
|
protected java.lang.String |
getHtmlOrder(int orderId,
int languageId,
java.lang.String orderTemplate) |
protected java.lang.String |
getHtmlOrder(int orderId,
int languageId,
java.lang.String orderTemplate,
java.lang.String custom1) |
protected java.lang.String |
getHtmlOrderDetail(int orderId,
int languageId) |
protected java.lang.String |
getHtmlOrderFromTemplate(int orderId,
int languageId,
java.lang.String templateName) |
protected java.lang.String |
getHtmlOrderFromTemplate(int orderId,
int languageId,
java.lang.String templateName,
java.lang.String custom1) |
protected java.lang.String |
getHtmlOrderInvoice(int orderId,
int languageId) |
protected java.lang.String |
getHtmlOrderPackingList(int orderId,
int languageId) |
org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
Returns the Velocity engine
|
void |
refreshConfigs()
Retrieve some commonly-used properties and set the velocity log file location
|
void |
sendOrderConfirmationEmail(java.lang.String sessionId,
int orderId,
java.lang.String mailSubject,
int languageId)
An order confirmation email is sent after submitting an order.
|
void |
setDefaultLanguageId(int aDefaultLanguageId)
Sets the default language id
|
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNowprotected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,AdminHtmlMgr.StaticData> staticDataHM
public AdminHtmlMgr(KKAdminIf eng) throws java.lang.Exception
eng - KKAdmin enginejava.lang.Exception - an unexpected exceptionpublic java.lang.String getHtml(int htmlType,
int id,
int languageId,
java.lang.String templateName,
java.lang.String arg1)
throws java.lang.Exception
getHtml in interface AdminHtmlMgrIfhtmlType - the HTML type eg. KKConstants.HTML_ORDER_DETAILid - a record Id the use is dependent on the htmlTypelanguageId - the languageId for the language that the HTML should be intemplateName - the template name if the htmlType == KKConstants.HTML_NAMED_TEMPLATEarg1 - an argument whose use is dependent on the htmlTypejava.lang.Exception - an unexpected exceptionpublic java.lang.String getHtml(int htmlType,
int id,
int languageId,
java.lang.String arg1)
throws java.lang.Exception
getHtml in interface AdminHtmlMgrIfhtmlType - the HTML type eg. KonakartAdminConstants.HTML_ORDER_DETAILid - a record Id the use is dependent on the htmlTypelanguageId - the languageId for the language that the HTML should be inarg1 - an argument whose use is dependent on the htmlTypejava.lang.Exception - an unexpected exceptionprotected java.lang.String getHtmlOrderFromTemplate(int orderId,
int languageId,
java.lang.String templateName)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getHtmlOrderFromTemplate(int orderId,
int languageId,
java.lang.String templateName,
java.lang.String custom1)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getHtmlOrderInvoice(int orderId,
int languageId)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getHtmlOrderPackingList(int orderId,
int languageId)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getHtmlOrderDetail(int orderId,
int languageId)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getHtmlOrder(int orderId,
int languageId,
java.lang.String orderTemplate)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getHtmlOrder(int orderId,
int languageId,
java.lang.String orderTemplate,
java.lang.String custom1)
throws java.lang.Exception
java.lang.Exceptionpublic org.apache.velocity.app.VelocityEngine getVelocityEngine()
throws java.lang.Exception
AdminHtmlMgrIfgetVelocityEngine in interface AdminHtmlMgrIfjava.lang.Exception - an unexpected exceptionpublic void sendOrderConfirmationEmail(java.lang.String sessionId,
int orderId,
java.lang.String mailSubject,
int languageId)
throws java.lang.Exception
sendOrderConfirmationEmail in interface AdminHtmlMgrIfsessionId - the sessionIdorderId - the orderIdmailSubject - the mailSubjectlanguageId - the languageIdjava.lang.Exception - an unexpected exceptionpublic int getDefaultLanguageId()
throws java.lang.Exception
AdminHtmlMgrIfgetDefaultLanguageId in interface AdminHtmlMgrIfjava.lang.Exception - an unexpected exceptionpublic void setDefaultLanguageId(int aDefaultLanguageId)
AdminHtmlMgrIfsetDefaultLanguageId in interface AdminHtmlMgrIfaDefaultLanguageId - The defaultLanguageId to set.public void refreshConfigs()
throws java.lang.Exception
refreshConfigs in interface AdminHtmlMgrIfrefreshConfigs in class AdminBaseMgrjava.lang.Exception - an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.