com.atlassian.jira.mail
Class TemplateContext

java.lang.Object
  extended by com.atlassian.jira.mail.TemplateContext

public class TemplateContext
extends java.lang.Object

The TemplateContext provides the template with all required objects.


Constructor Summary
TemplateContext(IssueEvent issueEvent, TemplateIssueFactory templateIssueFactory, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, JiraDurationUtils jiraDurationUtils, EventTypeManager eventTypeManager)
           
 
Method Summary
 java.util.Map getAttachmentParams()
          Generate the attachment params for the template.
 java.util.Map getChangeLogParams()
          Generate the changelog params for the template.
 java.util.Map getCommentParams()
          Generate the comment params for the template.
 java.lang.String getCommentTimeLogged(I18nHelper i18n)
          This is retrieved when the template is being generated so as it is properly formatted for the recipient.
 java.lang.String getEventTypeName(I18nHelper i18n)
          This is retrieved when the template is being generated so as it is properly formatted for the recipient.
 java.util.Map getTemplateParams()
          Create a map of all template params.
 java.lang.String getTimeLogged(Worklog worklog, I18nHelper i18n)
          This is retrieved when the template is being generated so as it is properly formatted for the recipient.
 java.util.Map 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

TemplateContext

public TemplateContext(IssueEvent issueEvent,
                       TemplateIssueFactory templateIssueFactory,
                       FieldLayoutManager fieldLayoutManager,
                       RendererManager rendererManager,
                       JiraDurationUtils jiraDurationUtils,
                       EventTypeManager eventTypeManager)
Method Detail

getTemplateParams

public java.util.Map getTemplateParams()
Create a map of all template params.

Returns:
Map all template params

getUtilParams

public java.util.Map getUtilParams()
Provide the template with some utility references

Returns:
Map Utils required for templates.

getAttachmentParams

public java.util.Map getAttachmentParams()
Generate the attachment params for the template.

Returns:
Map the attachment params for the template.

getCommentParams

public java.util.Map getCommentParams()
Generate the comment params for the template.

Returns:
Map the comment params for the template.

getCommentTimeLogged

public java.lang.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 java.lang.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 java.lang.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 java.util.Map getChangeLogParams()
Generate the changelog params for the template.

Returns:
Map the changelog params for the template.


Copyright © 2002-2010 Atlassian. All Rights Reserved.