|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.template.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(Long templateId)
|
Template |
getTemplate(SchemeEntity notificationSchemeEntity)
Retrieve the template from the notification scheme entity. |
String |
getTemplateContent(Long templateId,
String format)
|
Map |
getTemplatesMap(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(Long templateId)
getTemplate
in interface TemplateManager
public Template getTemplate(SchemeEntity notificationSchemeEntity)
If the scheme entity is not related to a template id - return the default template for the event type. The eventTypeId corresponds to the default template id if there is no specific template association.
getTemplate
in interface TemplateManager
notificationSchemeEntity
- a notification scheme entity objectpublic Template getDefaultTemplate(EventType eventType)
eventType
-
public Map getTemplatesMap(String type)
getTemplatesMap
in interface TemplateManager
type
- String specifiying the type of template to retrieve
public String getTemplateContent(Long templateId, String format)
getTemplateContent
in interface TemplateManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |