|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.mail.TemplateIssue
public class TemplateIssue
Decorator for the Issue Object.
This class will ensure backwards compatibility for templates accessing the issue object. This class also includes helper methods for retrieving rendered fields (e.g. description, environment) and nicely formatted date fields (e.g. Original Time Estimate, Time Spent, etc.). This object is passed to the template through theTemplateContext for the velocity email templates
| Constructor Summary | |
|---|---|
TemplateIssue(Issue issue,
FieldLayoutManager fieldLayoutManager,
RendererManager rendererManager,
CustomFieldManager customFieldManager,
JiraDurationUtils jiraDurationUtils,
AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory)
|
|
| Method Summary | |
|---|---|
Collection |
getAffectedVersions()
|
Long |
getAggregateOriginalEstimate()
|
Long |
getAggregateRemainingEstimate()
|
Long |
getAggregateTimeSpent()
|
User |
getAssignee()
|
String |
getAssigneeId()
|
Object |
getAssigneeUser()
Return the assignee - an object will be returned even if the user has been deleted from the system. |
Collection |
getAttachments()
|
Collection |
getComponents()
|
Timestamp |
getCreated()
|
CustomField |
getCustomField(String id)
|
Object |
getCustomFieldValue(CustomField customField)
|
Object |
getCustomFieldValue(String id)
Get value for a custom field. |
String |
getDescription()
Retrieve the description of the issue. |
Timestamp |
getDueDate()
|
String |
getEnvironment()
Retrieve the environment of the issue. |
Long |
getEstimate()
|
Object |
getExternalFieldValue(String fieldId)
|
Collection |
getFixVersions()
|
org.ofbiz.core.entity.GenericValue |
getGenericValue()
Get the backing GenericValue object. |
String |
getHtmlDescription()
Retrieves the html formatted description. |
String |
getHtmlEnvironment()
Retrieves the html formatted environment. |
Long |
getId()
|
IssueRenderContext |
getIssueRenderContext()
|
org.ofbiz.core.entity.GenericValue |
getIssueType()
Gets the IssueType for this Issue. |
IssueType |
getIssueTypeObject()
Gets the IssueType for this Issue. |
String |
getKey()
|
Long |
getLong(String name)
Retrieve a numeric field. |
String |
getNiceTimeAggregateOriginalEstimate(I18nHelper i18n)
Return a formatted time string of the aggregate original time estimate. |
String |
getNiceTimeAggregateRemainingEstimate(I18nHelper i18n)
Return a formatted time string of the aggregate time estimate. |
String |
getNiceTimeAggregateTimeSpent(I18nHelper i18n)
Return a formatted time string of the aggregate time spent. |
String |
getNiceTimeEstimate(I18nHelper i18n)
Return a formatted time string of the time estimate. |
String |
getNiceTimeOriginalEstimate(I18nHelper i18n)
Return a formatted time string of the original time estimate. |
String |
getNiceTimeSpent(I18nHelper i18n)
Return a formatted time string of the time spent. |
Long |
getOriginalEstimate()
|
org.ofbiz.core.entity.GenericValue |
getParent()
|
Long |
getParentId()
|
Issue |
getParentObject()
If this issue is a subtask, return its parent. |
org.ofbiz.core.entity.GenericValue |
getPriority()
|
Priority |
getPriorityObject()
|
org.ofbiz.core.entity.GenericValue |
getProject()
Gets the Project for this IssueContext. |
Project |
getProjectObject()
Gets the Project for this Issue. |
User |
getReporter()
|
String |
getReporterId()
|
Object |
getReporterUser()
Return the reporter - an object will be returned even if the user has been deleted from the system. |
org.ofbiz.core.entity.GenericValue |
getResolution()
|
Timestamp |
getResolutionDate()
Returns the datetime that an issue was resolved on. |
Resolution |
getResolutionObject()
|
org.ofbiz.core.entity.GenericValue |
getSecurityLevel()
|
Long |
getSecurityLevelId()
|
org.ofbiz.core.entity.GenericValue |
getStatus()
|
Status |
getStatusObject()
|
String |
getString(String name)
Retrieve a String field. |
Collection |
getSubTaskObjects()
Gets all the issue's subtasks. |
Collection |
getSubTasks()
|
String |
getSummary()
|
Long |
getTimeSpent()
|
Timestamp |
getTimestamp(String name)
Retrieve a timestamp field. |
Timestamp |
getUpdated()
|
Long |
getVotes()
|
Long |
getWorkflowId()
|
boolean |
isAnyAggregateDifferent()
Are any of the aggregates different? |
boolean |
isCreated()
|
boolean |
isEditable()
|
boolean |
isSubTask()
|
void |
store()
Persist this object's immediate fields. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateIssue(Issue issue,
FieldLayoutManager fieldLayoutManager,
RendererManager rendererManager,
CustomFieldManager customFieldManager,
JiraDurationUtils jiraDurationUtils,
AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory)
| Method Detail |
|---|
public Long getId()
getId in interface Issuepublic org.ofbiz.core.entity.GenericValue getProject()
IssueContextA null return value is used to represent that this context applies to all Projects.
getProject in interface IssueContextgetProject in interface Issuepublic Project getProjectObject()
Issue
getProjectObject in interface IssueContextgetProjectObject in interface Issuepublic org.ofbiz.core.entity.GenericValue getIssueType()
Issue
getIssueType in interface IssueContextgetIssueType in interface Issuepublic IssueType getIssueTypeObject()
Issue
getIssueTypeObject in interface IssueContextgetIssueTypeObject in interface Issuepublic String getSummary()
getSummary in interface Issuepublic User getAssignee()
getAssignee in interface Issuepublic String getAssigneeId()
getAssigneeId in interface Issuepublic Object getAssigneeUser()
public Collection getComponents()
getComponents in interface Issuepublic User getReporter()
getReporter in interface Issuepublic String getReporterId()
getReporterId in interface Issuepublic Object getReporterUser()
public String getDescription()
getDescription in interface Issuepublic String getHtmlDescription()
public String getEnvironment()
getEnvironment in interface Issuepublic String getHtmlEnvironment()
public Collection getAffectedVersions()
getAffectedVersions in interface IssueVersion objects.public Collection getFixVersions()
getFixVersions in interface IssueVersion objects.public Timestamp getDueDate()
getDueDate in interface Issuepublic org.ofbiz.core.entity.GenericValue getSecurityLevel()
getSecurityLevel in interface Issuepublic Long getSecurityLevelId()
getSecurityLevelId in interface Issuepublic org.ofbiz.core.entity.GenericValue getPriority()
getPriority in interface Issuepublic Priority getPriorityObject()
getPriorityObject in interface Issuepublic org.ofbiz.core.entity.GenericValue getResolution()
getResolution in interface Issuepublic Resolution getResolutionObject()
getResolutionObject in interface Issuepublic String getKey()
getKey in interface Issuepublic Long getVotes()
getVotes in interface Issuepublic Timestamp getCreated()
getCreated in interface Issuepublic Timestamp getResolutionDate()
Issue
getResolutionDate in interface Issuepublic Timestamp getUpdated()
getUpdated in interface Issuepublic Long getWorkflowId()
getWorkflowId in interface Issuepublic Object getCustomFieldValue(CustomField customField)
getCustomFieldValue in interface Issuepublic CustomField getCustomField(String id)
public Object getCustomFieldValue(String id)
id - Custom field key (eg. 'customfield_10010').
public org.ofbiz.core.entity.GenericValue getStatus()
getStatus in interface Issuepublic Status getStatusObject()
getStatusObject in interface Issuepublic Long getOriginalEstimate()
getOriginalEstimate in interface Issuepublic Long getEstimate()
getEstimate in interface Issuepublic Long getTimeSpent()
getTimeSpent in interface Issuepublic Long getAggregateOriginalEstimate()
public Long getAggregateRemainingEstimate()
public Long getAggregateTimeSpent()
public Object getExternalFieldValue(String fieldId)
getExternalFieldValue in interface Issuepublic boolean isSubTask()
isSubTask in interface Issuepublic Long getParentId()
getParentId in interface Issuepublic boolean isCreated()
isCreated in interface Issuepublic Issue getParentObject()
Issue
getParentObject in interface Issuepublic org.ofbiz.core.entity.GenericValue getParent()
getParent in interface Issuepublic Collection getSubTasks()
getSubTasks in interface Issuepublic Collection getSubTaskObjects()
Issue
getSubTaskObjects in interface IssueMutableIssuespublic boolean isEditable()
isEditable in interface Issuepublic IssueRenderContext getIssueRenderContext()
getIssueRenderContext in interface Issuepublic Collection getAttachments()
getAttachments in interface IssueAttachment objectspublic String getString(String name)
OfBizValueWrapper
getString in interface OfBizValueWrapperpublic Timestamp getTimestamp(String name)
OfBizValueWrapper
getTimestamp in interface OfBizValueWrapperpublic Long getLong(String name)
OfBizValueWrapper
getLong in interface OfBizValueWrapperpublic org.ofbiz.core.entity.GenericValue getGenericValue()
OfBizValueWrapper
getGenericValue in interface OfBizValueWrapperpublic void store()
OfBizValueWrapper
store in interface OfBizValueWrapperpublic String getNiceTimeOriginalEstimate(I18nHelper i18n)
i18n - helper bean for internationalization
public String getNiceTimeEstimate(I18nHelper i18n)
i18n - helper bean for internationalization
public String getNiceTimeSpent(I18nHelper i18n)
i18n - helper bean for internationalization
public boolean isAnyAggregateDifferent()
public String getNiceTimeAggregateOriginalEstimate(I18nHelper i18n)
i18n - helper bean for internationalization
public String getNiceTimeAggregateRemainingEstimate(I18nHelper i18n)
i18n - helper bean for internationalization
public String getNiceTimeAggregateTimeSpent(I18nHelper i18n)
i18n - helper bean for internationalization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||