|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.AbstractIssue
com.atlassian.jira.issue.IssueImpl
public class IssueImpl
Issue implementation which caches read data, and can persist its data to the database (via an Ofbiz GenericValue.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.jira.issue.AbstractIssue |
|---|
attachmentManager, constantsManager, issueManager |
| Constructor Summary | |
|---|---|
IssueImpl(org.ofbiz.core.entity.GenericValue genericValue,
IssueManager issueManager,
ProjectManager projectManager,
VersionManager versionManager,
IssueSecurityLevelManager issueSecurityLevelManager,
ConstantsManager constantsManager,
SubTaskManager subTaskManager,
AttachmentManager attachmentManager)
Load an issue backed by the database. |
|
IssueImpl(Issue issue,
IssueManager issueManager,
ProjectManager projectManager,
VersionManager versionManager,
IssueSecurityLevelManager issueSecurityLevelManager,
ConstantsManager constantsManager,
SubTaskManager subTaskManager,
AttachmentManager attachmentManager)
Create an issue, cloning another issue's data. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Collection<Version> |
getAffectedVersions()
|
User |
getAssignee()
|
String |
getAssigneeId()
|
Collection |
getComponents()
|
Timestamp |
getCreated()
|
Object |
getCustomFieldValue(CustomField customField)
|
String |
getDescription()
|
Timestamp |
getDueDate()
|
String |
getEnvironment()
|
Long |
getEstimate()
|
Object |
getExternalFieldValue(String fieldId)
|
Collection |
getFixVersions()
|
org.ofbiz.core.entity.GenericValue |
getGenericValue()
Get the backing GenericValue object. |
Long |
getId()
|
static MutableIssue |
getIssueObject(org.ofbiz.core.entity.GenericValue genericValue)
Deprecated. You should construct this yourself if at all possible, or use IssueFactory.getIssue(org.ofbiz.core.entity.GenericValue) instead. |
IssueRenderContext |
getIssueRenderContext()
|
org.ofbiz.core.entity.GenericValue |
getIssueType()
Gets the IssueType for this Issue. |
String |
getKey()
|
Long |
getLong(String name)
Retrieve a numeric field. |
Map |
getModifiedFields()
Retrieve a map of issue fields whose values have been set (since object creation or last MutableIssue.resetModifiedFields() call. |
Long |
getOriginalEstimate()
|
org.ofbiz.core.entity.GenericValue |
getParent()
Deprecated. Use getParentObject() instead. |
Long |
getParentId()
|
Issue |
getParentObject()
If this issue is a subtask, return its parent. |
org.ofbiz.core.entity.GenericValue |
getPriority()
|
org.ofbiz.core.entity.GenericValue |
getProject()
Gets the Project for this IssueContext. |
Project |
getProjectObject()
Gets the Project for this Issue. |
User |
getReporter()
|
String |
getReporterId()
|
org.ofbiz.core.entity.GenericValue |
getResolution()
|
Timestamp |
getResolutionDate()
Returns the datetime that an issue was resolved on. |
org.ofbiz.core.entity.GenericValue |
getSecurityLevel()
|
Long |
getSecurityLevelId()
|
org.ofbiz.core.entity.GenericValue |
getStatus()
|
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()
|
int |
hashCode()
|
boolean |
isCreated()
|
boolean |
isSubTask()
|
void |
resetModifiedFields()
Reset the internal list of modified fields. |
void |
setAffectedVersions(Collection<Version> affectedVersions)
|
void |
setAssignee(User assignee)
|
void |
setAssigneeId(String assigneeName)
|
void |
setComponents(Collection components)
|
void |
setCreated(Timestamp created)
|
void |
setCustomFieldValue(CustomField customField,
Object value)
Sets a custom field value on this Issue Object, but does not write it to the database. |
void |
setDescription(String description)
|
void |
setDueDate(Timestamp dueDate)
|
void |
setEnvironment(String environment)
|
void |
setEstimate(Long estimate)
|
void |
setExternalFieldValue(String fieldId,
Object value)
|
void |
setFixVersions(Collection fixVersions)
|
void |
setIssueType(org.ofbiz.core.entity.GenericValue issueType)
|
void |
setIssueTypeId(String issueTypeId)
Set the issue type, by type id. |
void |
setKey(String key)
|
void |
setOriginalEstimate(Long originalEstimate)
|
void |
setParentId(Long parentId)
Sets the ParentId of this Issue. |
void |
setParentObject(Issue parentIssue)
Sets the parent Issue Object for this Issue (subtask). |
void |
setPriority(org.ofbiz.core.entity.GenericValue priority)
|
void |
setPriorityId(String priorityId)
|
void |
setProject(org.ofbiz.core.entity.GenericValue project)
|
void |
setProjectId(Long projectId)
Sets the project by id. |
void |
setReporter(User reporter)
|
void |
setReporterId(String reporterId)
Sets the reporter in this issue. |
void |
setResolution(org.ofbiz.core.entity.GenericValue resolution)
|
void |
setResolutionDate(Timestamp resolutionDate)
|
void |
setResolutionId(String resolutionId)
|
void |
setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
|
void |
setSecurityLevelId(Long securityLevelId)
|
void |
setStatus(org.ofbiz.core.entity.GenericValue status)
|
void |
setStatusId(String statusId)
Set issue's status by status id ("1", "2" etc). |
void |
setSummary(String summary)
|
void |
setTimeSpent(Long timespent)
|
void |
setUpdated(Timestamp updated)
|
void |
setVotes(Long votes)
|
void |
setWorkflowId(Long workflowId)
|
void |
store()
Persist this object's immediate fields. |
String |
toString()
|
| Methods inherited from class com.atlassian.jira.issue.AbstractIssue |
|---|
getAttachments, getIssueTypeObject, getPriorityObject, getResolutionObject, getStatusObject, isEditable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.jira.issue.Issue |
|---|
getAttachments, getIssueTypeObject, getPriorityObject, getResolutionObject, getStatusObject, isEditable |
| Constructor Detail |
|---|
public IssueImpl(org.ofbiz.core.entity.GenericValue genericValue,
IssueManager issueManager,
ProjectManager projectManager,
VersionManager versionManager,
IssueSecurityLevelManager issueSecurityLevelManager,
ConstantsManager constantsManager,
SubTaskManager subTaskManager,
AttachmentManager attachmentManager)
genericValue - generic value of the issueissueManager - issue managerprojectManager - project managerversionManager - version managerissueSecurityLevelManager - issue security level managerconstantsManager - constant managersubTaskManager - sub-task managerattachmentManager - attachment manager
public IssueImpl(Issue issue,
IssueManager issueManager,
ProjectManager projectManager,
VersionManager versionManager,
IssueSecurityLevelManager issueSecurityLevelManager,
ConstantsManager constantsManager,
SubTaskManager subTaskManager,
AttachmentManager attachmentManager)
issue - issueissueManager - issue managerprojectManager - project managerversionManager - version managerissueSecurityLevelManager - issue security level managerconstantsManager - constant managersubTaskManager - sub-task managerattachmentManager - attachment manager| Method Detail |
|---|
public static MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue genericValue)
IssueFactory.getIssue(org.ofbiz.core.entity.GenericValue) instead.
genericValue - generic value of the issue
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 void setProjectId(Long projectId)
MutableIssueMutableIssue.setProject(org.ofbiz.core.entity.GenericValue)
setProjectId in interface MutableIssueprojectId - The id of the projectpublic void setProject(org.ofbiz.core.entity.GenericValue project)
setProject in interface MutableIssuepublic org.ofbiz.core.entity.GenericValue getIssueType()
Issue
getIssueType in interface IssueContextgetIssueType in interface Issuepublic void setIssueType(org.ofbiz.core.entity.GenericValue issueType)
setIssueType in interface MutableIssuepublic void setIssueTypeId(String issueTypeId)
setIssueTypeId in interface MutableIssuepublic String getSummary()
getSummary in interface Issuepublic void setSummary(String summary)
setSummary in interface MutableIssuepublic User getReporter()
getReporter in interface Issuepublic String getReporterId()
getReporterId in interface Issuepublic void setReporter(User reporter)
setReporter in interface MutableIssuepublic void setReporterId(String reporterId)
MutableIssue
setReporterId in interface MutableIssuereporterId - username of the desired reporter.MutableIssue.setReporter(com.opensymphony.user.User)public String getDescription()
getDescription in interface Issuepublic void setDescription(String description)
setDescription in interface MutableIssuepublic String getEnvironment()
getEnvironment in interface Issuepublic void setEnvironment(String environment)
setEnvironment in interface MutableIssuepublic User getAssignee()
getAssignee in interface Issuepublic String getAssigneeId()
getAssigneeId in interface Issuepublic void setAssignee(User assignee)
setAssignee in interface MutableIssuepublic void setAssigneeId(String assigneeName)
setAssigneeId in interface MutableIssuepublic Collection getComponents()
getComponents in interface Issuepublic void setComponents(Collection components)
setComponents in interface MutableIssuepublic Collection getFixVersions()
getFixVersions in interface IssueVersion objects.public void setFixVersions(Collection fixVersions)
setFixVersions in interface MutableIssuefixVersions - A collection of fix-for Version objects.public Timestamp getDueDate()
getDueDate in interface Issuepublic void setDueDate(Timestamp dueDate)
setDueDate in interface MutableIssuepublic org.ofbiz.core.entity.GenericValue getSecurityLevel()
getSecurityLevel in interface Issuepublic Long getSecurityLevelId()
getSecurityLevelId in interface Issuepublic void setSecurityLevelId(Long securityLevelId)
setSecurityLevelId in interface MutableIssuepublic void setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
setSecurityLevel in interface MutableIssuepublic org.ofbiz.core.entity.GenericValue getPriority()
getPriority in interface Issuepublic void setPriority(org.ofbiz.core.entity.GenericValue priority)
setPriority in interface MutableIssuepublic void setPriorityId(String priorityId)
setPriorityId in interface MutableIssuepublic org.ofbiz.core.entity.GenericValue getResolution()
getResolution in interface Issuepublic void setResolutionId(String resolutionId)
setResolutionId in interface MutableIssuepublic void setResolution(org.ofbiz.core.entity.GenericValue resolution)
setResolution in interface MutableIssuepublic String getKey()
getKey in interface Issuepublic void setKey(String key)
setKey in interface MutableIssuepublic Long getVotes()
getVotes in interface Issuepublic void setVotes(Long votes)
setVotes in interface MutableIssuepublic Collection<Version> getAffectedVersions()
getAffectedVersions in interface IssueVersion objects.public void setAffectedVersions(Collection<Version> affectedVersions)
setAffectedVersions in interface MutableIssueaffectedVersions - A collection of 'affects' Version objects.public 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 Timestamp getCreated()
getCreated in interface Issuepublic void setCreated(Timestamp created)
setCreated in interface MutableIssuepublic Timestamp getUpdated()
getUpdated in interface Issuepublic void setUpdated(Timestamp updated)
setUpdated in interface MutableIssuepublic Timestamp getResolutionDate()
Issue
getResolutionDate in interface Issuepublic void setResolutionDate(Timestamp resolutionDate)
setResolutionDate in interface MutableIssuepublic Long getWorkflowId()
getWorkflowId in interface Issuepublic void setWorkflowId(Long workflowId)
setWorkflowId in interface MutableIssuepublic Object getCustomFieldValue(CustomField customField)
getCustomFieldValue in interface Issue
public void setCustomFieldValue(CustomField customField,
Object value)
MutableIssueOrderableField.updateIssue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, MutableIssue, java.util.Map)
setCustomFieldValue in interface MutableIssuecustomField - the CustomFieldvalue - the value.public Object getExternalFieldValue(String fieldId)
getExternalFieldValue in interface Issue
public void setExternalFieldValue(String fieldId,
Object value)
setExternalFieldValue in interface MutableIssuepublic boolean isSubTask()
isSubTask in interface Issuepublic Long getParentId()
getParentId in interface Issuepublic void setParentId(Long parentId)
MutableIssue
setParentId in interface MutableIssueparentId - The new parentId.MutableIssue.setParentObject(Issue)
public void setParentObject(Issue parentIssue)
throws IllegalArgumentException
MutableIssue
Normally a subtask just has the ID of the parent set using setParentId().
In this case, the getParentObject() method will look up the parent object from the DB (or cache).
However, when you are editing a parent and its subtask within a transaction (eg a Bulk Move), it is useful to be
able to link the subtask to the pending parent object in order that it can see the new values for the parent.
setParentObject in interface MutableIssueparentIssue - the required parent Issue for this subtask.
IllegalArgumentExceptionMutableIssue.setParentId(Long),
Issue.getParentObject()public Issue getParentObject()
Issue
getParentObject in interface IssuegetParentObject in class AbstractIssuepublic org.ofbiz.core.entity.GenericValue getParent()
getParentObject() instead.
getParent in interface IssuegetParent in class AbstractIssuepublic Collection getSubTasks()
getSubTasks in interface Issuepublic Collection getSubTaskObjects()
Issue
getSubTaskObjects in interface IssueMutableIssuespublic boolean isCreated()
isCreated in interface Issuepublic org.ofbiz.core.entity.GenericValue getStatus()
getStatus in interface Issuepublic void setStatusId(String statusId)
MutableIssue
setStatusId in interface MutableIssuestatusId - the new StatusId.public void setStatus(org.ofbiz.core.entity.GenericValue status)
setStatus in interface MutableIssuepublic Long getOriginalEstimate()
getOriginalEstimate in interface Issuepublic void setOriginalEstimate(Long originalEstimate)
setOriginalEstimate in interface MutableIssuepublic Long getEstimate()
getEstimate in interface Issuepublic Long getTimeSpent()
getTimeSpent in interface Issuepublic void setTimeSpent(Long timespent)
setTimeSpent in interface MutableIssuepublic void setEstimate(Long estimate)
setEstimate in interface MutableIssuepublic IssueRenderContext getIssueRenderContext()
getIssueRenderContext in interface Issuepublic void store()
OfBizValueWrapper
store in interface OfBizValueWrapperpublic Map getModifiedFields()
MutableIssueMutableIssue.resetModifiedFields() call.
getModifiedFields in interface MutableIssueIssueFieldConstants and objects are field-specific.public void resetModifiedFields()
MutableIssue
resetModifiedFields in interface MutableIssueMutableIssue.getModifiedFields()public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||