|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.template.DefaultTemplateManager
public class DefaultTemplateManager
A manager for the email velocity templates within the system.
Currently, the system initialises the tempalte table by reading from the email-template-id-mappings.xml file. Custom templates can be added to this file - ensuring that an appropriate ID is given to the new template (e.g. >= 10000).
Constructor Summary | |
---|---|
DefaultTemplateManager(ApplicationProperties applicationProperties,
EventTypeManager eventTypeManager)
|
Method Summary | |
---|---|
Template |
getDefaultTemplate(EventType eventType)
Retrieve the default template for specified event type. |
Template |
getTemplate(java.lang.Long templateId)
|
Template |
getTemplate(SchemeEntity notificationSchemeEntity)
Retrieve the template from the notification scheme entity. |
java.lang.String |
getTemplateContent(java.lang.Long templateId,
java.lang.String format)
|
java.util.Map |
getTemplatesMap(java.lang.String type)
Retrieve a map of templates of the specified type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTemplateManager(ApplicationProperties applicationProperties, EventTypeManager eventTypeManager)
Method Detail |
---|
public Template getTemplate(java.lang.Long templateId)
getTemplate
in interface TemplateManager
public Template getTemplate(SchemeEntity notificationSchemeEntity)
getTemplate
in interface TemplateManager
notificationSchemeEntity
- a notification scheme entity objectpublic Template getDefaultTemplate(EventType eventType)
eventType
- event type to retrieve the default template for
public java.util.Map getTemplatesMap(java.lang.String type)
getTemplatesMap
in interface TemplateManager
type
- String specifiying the type of template to retrieve
public java.lang.String getTemplateContent(java.lang.Long templateId, java.lang.String format)
getTemplateContent
in interface TemplateManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |