|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.notice.DefaultTemplateManager
| Constructor Summary | |
DefaultTemplateManager(java.util.Properties pTemplates)
This class manages the different notice types and the templates to use with each of these types |
|
DefaultTemplateManager(java.util.Properties pTemplates,
java.lang.String defaultTemplatePath,
java.lang.String requestTemplatePath)
|
|
DefaultTemplateManager(java.lang.String propertiesPath)
|
|
DefaultTemplateManager(java.lang.String propertiesPath,
java.lang.String defaultTemplatePath,
java.lang.String requestTemplatePath)
|
|
| Method Summary | |
java.util.Vector |
getAllTypes()
Get all the defined notice types or null if do no exist types |
java.lang.String |
getRequestTemplate()
Get the template to use with the request notices without know the type |
java.lang.Object |
getTemplate(java.lang.Object noticeType)
Gets the HTML template for the specified notice type If this template is already loaded then return it else loads it first and then return it |
protected java.lang.String |
loadTemplate(java.lang.String templatePath)
|
void |
setTemplate(java.lang.Object noticeType,
java.lang.Object template,
boolean override)
Sets a new template for the specified notice type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultTemplateManager(java.util.Properties pTemplates)
pTemplates -
public DefaultTemplateManager(java.util.Properties pTemplates,
java.lang.String defaultTemplatePath,
java.lang.String requestTemplatePath)
public DefaultTemplateManager(java.lang.String propertiesPath)
public DefaultTemplateManager(java.lang.String propertiesPath,
java.lang.String defaultTemplatePath,
java.lang.String requestTemplatePath)
| Method Detail |
public java.lang.Object getTemplate(java.lang.Object noticeType)
getTemplate in interface ITemplateManagementnoticeType -
public void setTemplate(java.lang.Object noticeType,
java.lang.Object template,
boolean override)
ITemplateManagement
setTemplate in interface ITemplateManagementnoticeType - template - override - If another template exist for this notice type and override is
true then replace the previous onepublic java.util.Vector getAllTypes()
getAllTypes in interface ITemplateManagementprotected java.lang.String loadTemplate(java.lang.String templatePath)
public java.lang.String getRequestTemplate()
ITemplateManagement
getRequestTemplate in interface ITemplateManagement
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||