com.atlassian.jira.mail
Class TemplateContext

java.lang.Object
  extended bycom.atlassian.jira.mail.TemplateContext

public class TemplateContext
extends Object

The TemplateContext provides the template with all required objects.


Field Summary
protected static int daysperweek
           
protected static int hoursperday
           
 
Constructor Summary
TemplateContext(IssueEvent issueEvent, TemplateIssueFactory templateIssueFactory, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager)
           
 
Method Summary
 Map getAttachmentParams()
          Generate the attachment params for the template.
 Map getChangeLogParams()
          Generate the changelog params for the template.
 Map 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.
 Map getTemplateParams()
          Create a map of all template params.
 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
 

Field Detail

daysperweek

protected static final int daysperweek

hoursperday

protected static final int hoursperday
Constructor Detail

TemplateContext

public TemplateContext(IssueEvent issueEvent,
                       TemplateIssueFactory templateIssueFactory,
                       FieldLayoutManager fieldLayoutManager,
                       RendererManager rendererManager)
Method Detail

getTemplateParams

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

Returns:
Map all template params

getUtilParams

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

Returns:
Map Utils required for templates.

getAttachmentParams

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

Returns:
Map the attachment params for the template.

getCommentParams

public Map 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

getChangeLogParams

public Map getChangeLogParams()
Generate the changelog params for the template.

Returns:
Map the changelog params for the template.


Copyright © 2002-2006 Atlassian. All Rights Reserved.