com.jp.protection.priv.pro.integration
Class TemplateUtil

java.lang.Object
  extended by 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


Nested Class Summary
static class TemplateUtil.LicenseProduct_PP
           
static class TemplateUtil.LicenseProductEdition_PP
           
static class TemplateUtil.LicenseType_PP
           
static class TemplateUtil.UserLicensingModel_PP
           
 
Constructor Summary
TemplateUtil()
           
 
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
 

Constructor Detail

TemplateUtil

public TemplateUtil()
Method Detail

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 template
aTemplate - templates text
aProduct - product information
aCustomer - customer information
aLicense - 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 template
aTemplate - templates text
aProduct - product information
aCustomer - 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 template
aTemplate - templates text
aProduct - product information
Returns:
expanded template text