public interface AdminHtmlMgrIf
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.
|
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
|
java.lang.String getHtml(int htmlType, int id, int languageId, java.lang.String arg1) throws java.lang.Exception
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 htmlTypejava.lang.Exception
- an unexpected exceptionjava.lang.String getHtml(int htmlType, int id, int languageId, java.lang.String templateName, java.lang.String arg1) throws java.lang.Exception
htmlType
- 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 exceptionorg.apache.velocity.app.VelocityEngine getVelocityEngine() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionvoid sendOrderConfirmationEmail(java.lang.String sessionId, int orderId, java.lang.String mailSubject, int languageId) throws java.lang.Exception
sessionId
- the sessionIdorderId
- the orderIdmailSubject
- the mailSubjectlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionint getDefaultLanguageId() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionvoid setDefaultLanguageId(int aDefaultLanguageId)
aDefaultLanguageId
- The defaultLanguageId to set.void refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.