com.konakartadmin.bl
Class AdminHtmlMgr

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminHtmlMgr
All Implemented Interfaces:
AdminHtmlMgrIf

public class AdminHtmlMgr
extends AdminBaseMgr
implements AdminHtmlMgrIf

The AdminHtmlMgr - for creating various HTML Strings for the Admin Application


Nested Class Summary
protected  class AdminHtmlMgr.StaticData
           
 
Field Summary
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
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Constructor Summary
AdminHtmlMgr(KKAdminIf eng)
          Constructor
 
Method Summary
 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.
protected  java.lang.String getHtmlOrder(int orderId, int languageId, java.lang.String orderTemplate)
           
protected  java.lang.String getHtmlOrderDetail(int orderId, int languageId)
           
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
 
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, 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


mutex

protected static java.lang.String mutex

staticDataHM

protected static java.util.Map<java.lang.String,AdminHtmlMgr.StaticData> staticDataHM
Hash Map that contains the static data

Constructor Detail

AdminHtmlMgr

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

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

getHtml

public java.lang.String getHtml(int htmlType,
                                int id,
                                int languageId,
                                java.lang.String arg1)
                         throws java.lang.Exception
Retrieve the html string for the specified html type. Typically used to get a section of formatted HTML that can be inserted into a page of some kind.

Specified by:
getHtml in interface AdminHtmlMgrIf
Parameters:
htmlType - the HTML type eg. KonakartAdminConstants.HTML_ORDER_DETAIL
id - a record Id the use is dependent on the htmlType
languageId - the languageId for the language that the HTML should be in
arg1 - an argument whose use is dependent on the htmlType
Returns:
a String of HTML
Throws:
java.lang.Exception

getHtmlOrderInvoice

protected java.lang.String getHtmlOrderInvoice(int orderId,
                                               int languageId)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlOrderPackingList

protected java.lang.String getHtmlOrderPackingList(int orderId,
                                                   int languageId)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlOrderDetail

protected java.lang.String getHtmlOrderDetail(int orderId,
                                              int languageId)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlOrder

protected java.lang.String getHtmlOrder(int orderId,
                                        int languageId,
                                        java.lang.String orderTemplate)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getVelocityEngine

public org.apache.velocity.app.VelocityEngine getVelocityEngine()
                                                         throws java.lang.Exception
Description copied from interface: AdminHtmlMgrIf
Returns the Velocity engine

Specified by:
getVelocityEngine in interface AdminHtmlMgrIf
Returns:
Returns a VelocityEngine
Throws:
java.lang.Exception

sendOrderConfirmationEmail

public void sendOrderConfirmationEmail(java.lang.String sessionId,
                                       int orderId,
                                       java.lang.String mailSubject,
                                       int languageId)
                                throws java.lang.Exception
An order confirmation email is sent after submitting an order.

Specified by:
sendOrderConfirmationEmail in interface AdminHtmlMgrIf
Parameters:
sessionId -
orderId -
mailSubject -
languageId -
Throws:
java.lang.Exception

getDefaultLanguageId

public int getDefaultLanguageId()
                         throws java.lang.Exception
Description copied from interface: AdminHtmlMgrIf
Returns the default language id

Specified by:
getDefaultLanguageId in interface AdminHtmlMgrIf
Returns:
Returns the defaultLanguageId.
Throws:
java.lang.Exception

setDefaultLanguageId

public void setDefaultLanguageId(int aDefaultLanguageId)
Description copied from interface: AdminHtmlMgrIf
Sets the default language id

Specified by:
setDefaultLanguageId in interface AdminHtmlMgrIf
Parameters:
aDefaultLanguageId - The defaultLanguageId to set.

refreshConfigs

public void refreshConfigs()
                    throws java.lang.Exception
Retrieve some commonly-used properties and set the velocity log file location

Specified by:
refreshConfigs in interface AdminHtmlMgrIf
Overrides:
refreshConfigs in class AdminBaseMgr
Throws:
java.lang.Exception


Copyright © 2011 DS Data Systems UK Ltd.