com.atlassian.jira.mail
Class IssueTemplateContext

java.lang.Object
  extended by com.atlassian.jira.mail.DefaultTemplateContext
      extended by com.atlassian.jira.mail.IssueTemplateContext
All Implemented Interfaces:
TemplateContext

public class IssueTemplateContext
extends DefaultTemplateContext

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


Constructor Summary
IssueTemplateContext(Locale locale, IssueEvent issueEvent, TemplateIssueFactory templateIssueFactory, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, UserManager userManager, JiraDurationUtils jiraDurationUtils, EventTypeManager eventTypeManager, DiffViewRenderer diffViewRenderer, com.atlassian.plugin.webresource.WebResourceManager resourceManager, ApplicationProperties applicationProperties, I18nHelper.BeanFactory beanFactory)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueTemplateContext

public IssueTemplateContext(Locale locale,
                            IssueEvent issueEvent,
                            TemplateIssueFactory templateIssueFactory,
                            FieldLayoutManager fieldLayoutManager,
                            RendererManager rendererManager,
                            UserManager userManager,
                            JiraDurationUtils jiraDurationUtils,
                            EventTypeManager eventTypeManager,
                            DiffViewRenderer diffViewRenderer,
                            com.atlassian.plugin.webresource.WebResourceManager resourceManager,
                            ApplicationProperties applicationProperties,
                            I18nHelper.BeanFactory beanFactory)
Method Detail

getTemplateParams

public Map<String,Object> getTemplateParams()
Description copied from interface: TemplateContext
Create a map of all template params.

Specified by:
getTemplateParams in interface TemplateContext
Overrides:
getTemplateParams in class DefaultTemplateContext
Returns:
Map all template params

getUtilParams

public Map<String,Object> getUtilParams()
Provide the template with some utility references

Returns:
Map Utils required for templates.

getAttachmentParams

public Map<String,Object> getAttachmentParams()
Generate the attachment params for the template.

Returns:
Map the attachment params for the template.

getCommentParams

public Map<String,Object> getCommentParams()
Generate the comment params for the template.

Returns:
Map the comment params for the template.

getCommentTimeLogged

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

getTimeLogged

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

getEventTypeName

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

getChangeLogParams

public Map<String,Object> getChangeLogParams()
Generate the changelog params for the template.

Returns:
Map the changelog params for the template.


Copyright © 2002-2013 Atlassian. All Rights Reserved.