public class IssueTemplateContext extends DefaultTemplateContext
Constructor and Description |
---|
IssueTemplateContext(Locale locale,
IssueEvent issueEvent,
TemplateIssueFactory templateIssueFactory,
FieldLayoutManager fieldLayoutManager,
RendererManager rendererManager,
UserManager userManager,
JiraDurationUtils jiraDurationUtils,
EventTypeManager eventTypeManager,
DiffViewRenderer diffViewRenderer,
com.atlassian.plugin.webresource.WebResourceUrlProvider resourceUrlProvider,
ApplicationProperties applicationProperties,
I18nHelper.BeanFactory beanFactory,
HistoryMetadataManager historyMetadataManager,
HistoryMetadataRenderHelper historyMetadataRenderHelper,
DateTimeFormatterFactory dateTimeFormatterFactory) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAttachmentParams()
Generate the attachment params for the template.
|
Map<String,Object> |
getChangeLogParams()
Generate the changelog params for the template.
|
Map<String,Object> |
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<String,Object> |
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<String,Object> |
getUtilParams()
Provide the template with some utility references
|
public IssueTemplateContext(Locale locale, IssueEvent issueEvent, TemplateIssueFactory templateIssueFactory, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, UserManager userManager, JiraDurationUtils jiraDurationUtils, EventTypeManager eventTypeManager, DiffViewRenderer diffViewRenderer, com.atlassian.plugin.webresource.WebResourceUrlProvider resourceUrlProvider, ApplicationProperties applicationProperties, I18nHelper.BeanFactory beanFactory, HistoryMetadataManager historyMetadataManager, HistoryMetadataRenderHelper historyMetadataRenderHelper, DateTimeFormatterFactory dateTimeFormatterFactory)
public Map<String,Object> getTemplateParams()
TemplateContext
getTemplateParams
in interface TemplateContext
getTemplateParams
in class DefaultTemplateContext
public Map<String,Object> getUtilParams()
public Map<String,Object> getAttachmentParams()
public Map<String,Object> getCommentParams()
public String getCommentTimeLogged(I18nHelper i18n)
public String getTimeLogged(Worklog worklog, I18nHelper i18n)
public String getEventTypeName(I18nHelper i18n)
i18n
- i18n beanCopyright © 2002-2021 Atlassian. All Rights Reserved.