Package com.atlassian.jira.mail
Class IssueTemplateContext
java.lang.Object
com.atlassian.jira.mail.DefaultTemplateContext
com.atlassian.jira.mail.IssueTemplateContext
- All Implemented Interfaces:
TemplateContext
Provides the template with all required objects, including the issue details.
-
Constructor Summary
ConstructorsConstructorDescriptionIssueTemplateContext(Locale locale, IssueEvent issueEvent, TemplateIssueFactory templateIssueFactory, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, UserManager userManager, JiraDurationUtils jiraDurationUtils, EventTypeManager eventTypeManager, DiffViewRenderer diffViewRenderer, com.atlassian.webresource.api.WebResourceUrlProvider resourceUrlProvider, ApplicationProperties applicationProperties, I18nHelper.BeanFactory beanFactory, HistoryMetadataManager historyMetadataManager, HistoryMetadataRenderHelper historyMetadataRenderHelper, DateTimeFormatterFactory dateTimeFormatterFactory) -
Method Summary
Modifier and TypeMethodDescriptionGenerate the attachment params for the template.Generate the changelog params for the template.Generate the comment params for the template.This is retrieved when the template is being generated so as it is properly formatted for the recipient.getEventTypeName(I18nHelper i18n) This is retrieved when the template is being generated so as it is properly formatted for the recipient.Create a map of all template params.getTimeLogged(Worklog worklog, I18nHelper i18n) This is retrieved when the template is being generated so as it is properly formatted for the recipient.Provide the template with some utility references
-
Constructor Details
-
IssueTemplateContext
public IssueTemplateContext(Locale locale, IssueEvent issueEvent, TemplateIssueFactory templateIssueFactory, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, UserManager userManager, JiraDurationUtils jiraDurationUtils, EventTypeManager eventTypeManager, DiffViewRenderer diffViewRenderer, com.atlassian.webresource.api.WebResourceUrlProvider resourceUrlProvider, ApplicationProperties applicationProperties, I18nHelper.BeanFactory beanFactory, HistoryMetadataManager historyMetadataManager, HistoryMetadataRenderHelper historyMetadataRenderHelper, DateTimeFormatterFactory dateTimeFormatterFactory)
-
-
Method Details
-
getTemplateParams
Description copied from interface:TemplateContextCreate a map of all template params.- Specified by:
getTemplateParamsin interfaceTemplateContext- Overrides:
getTemplateParamsin classDefaultTemplateContext- Returns:
- Map all template params
-
getUtilParams
Provide the template with some utility references- Returns:
- Map Utils required for templates.
-
getAttachmentParams
Generate the attachment params for the template.- Returns:
- Map the attachment params for the template.
-
getCommentParams
Generate the comment params for the template.- Returns:
- Map the comment params for the template.
-
getCommentTimeLogged
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
-
getTimeLogged
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
-
getEventTypeName
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
-
getChangeLogParams
Generate the changelog params for the template.- Returns:
- Map the changelog params for the template.
-