|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminHtmlMgr
public class AdminHtmlMgr
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,AdminHtmlMgr.StaticData> staticDataHM
Constructor Detail |
---|
public AdminHtmlMgr(KKAdminIf eng) throws java.lang.Exception
eng
- KKAdmin engine
java.lang.Exception
Method Detail |
---|
public java.lang.String getHtml(int htmlType, int id, int languageId, java.lang.String arg1) throws java.lang.Exception
getHtml
in interface AdminHtmlMgrIf
htmlType
- 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 htmlType
java.lang.Exception
protected java.lang.String getHtmlOrderInvoice(int orderId, int languageId) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getHtmlOrderPackingList(int orderId, int languageId) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getHtmlOrderDetail(int orderId, int languageId) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getHtmlOrder(int orderId, int languageId, java.lang.String orderTemplate) throws java.lang.Exception
java.lang.Exception
public org.apache.velocity.app.VelocityEngine getVelocityEngine() throws java.lang.Exception
AdminHtmlMgrIf
getVelocityEngine
in interface AdminHtmlMgrIf
java.lang.Exception
public void sendOrderConfirmationEmail(java.lang.String sessionId, int orderId, java.lang.String mailSubject, int languageId) throws java.lang.Exception
sendOrderConfirmationEmail
in interface AdminHtmlMgrIf
sessionId
- orderId
- mailSubject
- languageId
-
java.lang.Exception
public int getDefaultLanguageId() throws java.lang.Exception
AdminHtmlMgrIf
getDefaultLanguageId
in interface AdminHtmlMgrIf
java.lang.Exception
public void setDefaultLanguageId(int aDefaultLanguageId)
AdminHtmlMgrIf
setDefaultLanguageId
in interface AdminHtmlMgrIf
aDefaultLanguageId
- The defaultLanguageId to set.public void refreshConfigs() throws java.lang.Exception
refreshConfigs
in interface AdminHtmlMgrIf
refreshConfigs
in class AdminBaseMgr
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |