com.jp.protection.priv.pro.integration
Class TemplateUtil
java.lang.Object
com.jp.protection.priv.pro.integration.TemplateUtil
public class TemplateUtil
- extends java.lang.Object
Utility class that allows expanding of the templates by replacing macros
in the template's text by the actual values
Method Summary |
static java.lang.String |
processTemplate(java.util.Map anArguments,
java.lang.String aTemplate,
Product aProduct)
Expands template by replacing macros in the template's text by properties of specified objects. |
static java.lang.String |
processTemplate(java.util.Map anArguments,
java.lang.String aTemplate,
Product aProduct,
dev.entities.Customer aCustomer)
Expands template by replacing macros in the template's text by properties of specified objects. |
static java.lang.String |
processTemplate(java.util.Map anArguments,
java.lang.String aTemplate,
Product aProduct,
dev.entities.Customer aCustomer,
LicenseBase aLicense)
Expands template by replacing macros in the template's text by properties of specified objects |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateUtil
public TemplateUtil()
processTemplate
public static java.lang.String processTemplate(java.util.Map anArguments,
java.lang.String aTemplate,
Product aProduct,
dev.entities.Customer aCustomer,
LicenseBase aLicense)
- Expands template by replacing macros in the template's text by properties of specified objects
- Parameters:
anArguments
- optional arguments need to be used in the templateaTemplate
- templates textaProduct
- product informationaCustomer
- customer informationaLicense
- license information
- Returns:
- expanded template text
processTemplate
public static java.lang.String processTemplate(java.util.Map anArguments,
java.lang.String aTemplate,
Product aProduct,
dev.entities.Customer aCustomer)
- Expands template by replacing macros in the template's text by properties of specified objects.
This method uses dummy license object to expand the template.
- Parameters:
anArguments
- optional arguments need to be used in the templateaTemplate
- templates textaProduct
- product informationaCustomer
- customer information
- Returns:
- expanded template text
processTemplate
public static java.lang.String processTemplate(java.util.Map anArguments,
java.lang.String aTemplate,
Product aProduct)
- Expands template by replacing macros in the template's text by properties of specified objects.
This method uses dummy license and customer objects to expand the template.
- Parameters:
anArguments
- optional arguments need to be used in the templateaTemplate
- templates textaProduct
- product information
- Returns:
- expanded template text