public class

IssueTemplateContext

extends DefaultTemplateContext
java.lang.Object
   ↳ com.atlassian.jira.mail.DefaultTemplateContext
     ↳ com.atlassian.jira.mail.IssueTemplateContext

Class Overview

Provides the template with all required objects, including the issue details.

Summary

Public Constructors
IssueTemplateContext(Locale locale, IssueEvent issueEvent, TemplateIssueFactory templateIssueFactory, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, UserManager userManager, JiraDurationUtils jiraDurationUtils, EventTypeManager eventTypeManager, DiffViewRenderer diffViewRenderer, WebResourceUrlProvider resourceUrlProvider, ApplicationProperties applicationProperties, I18nHelper.BeanFactory beanFactory, HistoryMetadataManager historyMetadataManager, HistoryMetadataRenderHelper historyMetadataRenderHelper)
Public Methods
Map<StringObject> getAttachmentParams()
Generate the attachment params for the template.
Map<StringObject> getChangeLogParams()
Generate the changelog params for the template.
Map<StringObject> getCommentParams()
Generate the comment params for the template.
String getCommentTimeLogged(I18nHelper i18n)
This is retrieved when the template is being generated so as it is properly formatted for the recipient.
String getEventTypeName(I18nHelper i18n)
This is retrieved when the template is being generated so as it is properly formatted for the recipient.
Map<StringObject> getTemplateParams()
Create a map of all template params.
String getTimeLogged(Worklog worklog, I18nHelper i18n)
This is retrieved when the template is being generated so as it is properly formatted for the recipient.
Map<StringObject> getUtilParams()
Provide the template with some utility references
[Expand]
Inherited Methods
From class com.atlassian.jira.mail.DefaultTemplateContext
From class java.lang.Object
From interface com.atlassian.jira.mail.TemplateContext

Public Constructors

public IssueTemplateContext (Locale locale, IssueEvent issueEvent, TemplateIssueFactory templateIssueFactory, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, UserManager userManager, JiraDurationUtils jiraDurationUtils, EventTypeManager eventTypeManager, DiffViewRenderer diffViewRenderer, WebResourceUrlProvider resourceUrlProvider, ApplicationProperties applicationProperties, I18nHelper.BeanFactory beanFactory, HistoryMetadataManager historyMetadataManager, HistoryMetadataRenderHelper historyMetadataRenderHelper)

Public Methods

public Map<StringObject> getAttachmentParams ()

Generate the attachment params for the template.

Returns
  • Map the attachment params for the template.

public Map<StringObject> getChangeLogParams ()

Generate the changelog params for the template.

Returns
  • Map the changelog params for the template.

public Map<StringObject> getCommentParams ()

Generate the comment params for the template.

Returns
  • Map the comment params for the template.

public String getCommentTimeLogged (I18nHelper i18n)

This is retrieved when the template is being generated so as it is properly formatted for the recipient.

Returns
  • String formatted comment time logged string

public String getEventTypeName (I18nHelper i18n)

This is retrieved when the template is being generated so as it is properly formatted for the recipient.

Parameters
i18n i18n bean
Returns
  • String formatted event type name

public Map<StringObject> getTemplateParams ()

Create a map of all template params.

Returns
  • Map all template params

public String getTimeLogged (Worklog worklog, I18nHelper i18n)

This is retrieved when the template is being generated so as it is properly formatted for the recipient.

Returns
  • String formatted comment time logged string

public Map<StringObject> getUtilParams ()

Provide the template with some utility references

Returns
  • Map Utils required for templates.