public class IssueImpl extends AbstractIssue implements MutableIssue
GenericValue.attachmentManager, constantsManager, issueManagerGLOBAL| Constructor and Description |
|---|
IssueImpl(org.ofbiz.core.entity.GenericValue genericValue,
IssueManager issueManager,
ProjectManager projectManager,
VersionManager versionManager,
IssueSecurityLevelManager issueSecurityLevelManager,
ConstantsManager constantsManager,
SubTaskManager subTaskManager,
AttachmentManager attachmentManager,
LabelManager labelManager,
ProjectComponentManager projectComponentManager,
UserManager userManager,
JiraAuthenticationContext jiraAuthenticationContext)
Load an issue backed by the database.
|
IssueImpl(Issue issue,
IssueManager issueManager,
ProjectManager projectManager,
VersionManager versionManager,
IssueSecurityLevelManager issueSecurityLevelManager,
ConstantsManager constantsManager,
SubTaskManager subTaskManager,
AttachmentManager attachmentManager,
LabelManager labelManager,
ProjectComponentManager projectComponentManager,
UserManager userManager,
JiraAuthenticationContext jiraAuthenticationContext)
Create an issue, cloning another issue's data.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Version> |
getAffectedVersions() |
com.atlassian.crowd.embedded.api.User |
getAssignee()
Returns the Assignee User.
|
String |
getAssigneeId() |
com.atlassian.crowd.embedded.api.User |
getAssigneeUser()
Returns the Assignee User.
|
Collection<ProjectComponent> |
getComponentObjects() |
Collection<org.ofbiz.core.entity.GenericValue> |
getComponents() |
Timestamp |
getCreated() |
com.atlassian.crowd.embedded.api.User |
getCreator() |
String |
getCreatorId() |
Object |
getCustomFieldValue(CustomField customField) |
String |
getDescription() |
Timestamp |
getDueDate() |
String |
getEnvironment() |
Long |
getEstimate()
This is the "remaining estimate" of work left to be performed on this issue, in milliseconds.
|
Object |
getExternalFieldValue(String fieldId) |
Collection<Version> |
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 |
getIssueTypeId()
Gets the ID of the IssueType for this Issue.
|
String |
getKey() |
Set<Label> |
getLabels()
Returns a set of all the labels for this issue or an empty set if none exist yet.
|
Long |
getLong(String name)
Retrieve a numeric field.
|
Map<String,ModifiedValue> |
getModifiedFields()
Retrieve a map of issue fields whose values have been set (since object creation or last
MutableIssue.resetModifiedFields() call. |
Long |
getNumber() |
Long |
getOriginalEstimate()
This is the "original estimate" of work to be performed on this issue, in milliseconds.
|
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()
Returns the Priority for this Issue.
|
org.ofbiz.core.entity.GenericValue |
getProject()
Gets the Project for this IssueContext.
|
Long |
getProjectId()
Gets the ID of the Project for this Issue.
|
Project |
getProjectObject()
Gets the Project for this Issue.
|
com.atlassian.crowd.embedded.api.User |
getReporter()
Returns the Reporter User.
|
String |
getReporterId() |
com.atlassian.crowd.embedded.api.User |
getReporterUser()
Returns the Reporter User.
|
org.ofbiz.core.entity.GenericValue |
getResolution()
Returns the Resolution for this Issue.
|
Timestamp |
getResolutionDate()
Returns the datetime that an issue was resolved on.
|
String |
getResolutionId() |
org.ofbiz.core.entity.GenericValue |
getSecurityLevel()
Returns the Security Level for this Issue.
|
Long |
getSecurityLevelId()
Returns the Security Level for this Issue.
|
org.ofbiz.core.entity.GenericValue |
getStatus() |
String |
getStatusId() |
String |
getString(String name)
Retrieve a String field.
|
Collection<Issue> |
getSubTaskObjects()
Gets all the issue's subtasks.
|
Collection<org.ofbiz.core.entity.GenericValue> |
getSubTasks() |
String |
getSummary() |
Long |
getTimeSpent()
This is the "total time spent" working on this issue, in milliseconds.
|
Timestamp |
getTimestamp(String name)
Retrieve a timestamp field.
|
Timestamp |
getUpdated() |
Long |
getVotes() |
Long |
getWatches() |
Long |
getWorkflowId() |
boolean |
isCreated() |
boolean |
isSubTask() |
void |
resetModifiedFields()
Reset the internal list of modified fields.
|
void |
setAffectedVersions(Collection<Version> affectedVersions) |
void |
setAssignee(com.atlassian.crowd.embedded.api.User assignee) |
void |
setAssigneeId(String assigneeKey)
Sets the user that this issue is assigned to.
|
void |
setComponentObjects(Collection<ProjectComponent> components)
Sets the components for this Issue.
|
void |
setComponents(Collection<org.ofbiz.core.entity.GenericValue> components)
Sets the components for this Issue.
|
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 newValue)
This can be used by a field to "place" a custom object into the MutableIssue so that it can be retrieved by key at
a later point via the
MutableIssue.getModifiedFields() and Issue.getExternalFieldValue(String). |
void |
setExternalFieldValue(String fieldId,
Object oldValue,
Object newValue)
This can be used bya field to "place" a custom object into the MutableIssue so that it can be retrieved by key at
a later point via the
MutableIssue.getModifiedFields() and Issue.getExternalFieldValue(String). |
void |
setFixVersions(Collection<Version> fixVersions) |
void |
setIssueType(org.ofbiz.core.entity.GenericValue issueType)
Sets the IssueType for this Issue.
|
void |
setIssueTypeId(String issueTypeId)
Set the issue type, by type id.
|
void |
setIssueTypeObject(IssueType issueType)
Sets the IssueType for this Issue.
|
void |
setKey(String key) |
void |
setLabels(Set<Label> labels)
Set the labels for this issue.
|
void |
setNumber(Long number) |
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)
Sets the priority for this Issue.
|
void |
setPriorityId(String priorityId) |
void |
setPriorityObject(Priority priority)
Sets the priority for this Issue.
|
void |
setProject(org.ofbiz.core.entity.GenericValue project)
Sets the Project for this Issue.
|
void |
setProjectId(Long projectId)
Sets the project by id.
|
void |
setProjectObject(Project project)
Sets the Project for this Issue.
|
void |
setReporter(com.atlassian.crowd.embedded.api.User reporter) |
void |
setReporterId(String reporterId)
Sets the reporter in this issue.
|
void |
setResolution(org.ofbiz.core.entity.GenericValue resolution)
Sets the resolution for this Issue.
|
void |
setResolutionDate(Timestamp resolutionDate) |
void |
setResolutionId(String resolutionId) |
void |
setResolutionObject(Resolution resolution)
Sets the resolution for this Issue.
|
void |
setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
Sets the SecurityLevel for this Issue.
|
void |
setSecurityLevelId(Long securityLevelId)
Sets the SecurityLevel for this Issue.
|
void |
setStatus(org.ofbiz.core.entity.GenericValue status)
Sets the status for this Issue.
|
void |
setStatusId(String statusId)
Set issue's status by status id ("1", "2" etc).
|
void |
setStatusObject(Status status)
Sets the status for this Issue.
|
void |
setSummary(String summary) |
void |
setTimeSpent(Long timespent) |
void |
setUpdated(Timestamp updated) |
void |
setVotes(Long votes) |
void |
setWatches(Long watches) |
void |
setWorkflowId(Long workflowId) |
void |
store()
Persist this issue's immediate fields.
|
String |
toString() |
equals, getAttachments, getIssueTypeObject, getPriorityObject, getResolutionObject, getStatusObject, hashCode, isEditableclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getAttachments, getIssueTypeObject, getPriorityObject, getResolutionObject, getStatusObject, hashCode, isEditablepublic IssueImpl(org.ofbiz.core.entity.GenericValue genericValue,
IssueManager issueManager,
ProjectManager projectManager,
VersionManager versionManager,
IssueSecurityLevelManager issueSecurityLevelManager,
ConstantsManager constantsManager,
SubTaskManager subTaskManager,
AttachmentManager attachmentManager,
LabelManager labelManager,
ProjectComponentManager projectComponentManager,
UserManager userManager,
JiraAuthenticationContext jiraAuthenticationContext)
genericValue - generic value of the issueissueManager - issue managerprojectManager - project managerversionManager - version managerissueSecurityLevelManager - issue security level managerconstantsManager - constant managersubTaskManager - sub-task managerattachmentManager - attachment managerlabelManager - label managerprojectComponentManager - project component manageruserManager - user managerpublic IssueImpl(@Nonnull Issue issue, IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, AttachmentManager attachmentManager, LabelManager labelManager, ProjectComponentManager projectComponentManager, UserManager userManager, JiraAuthenticationContext jiraAuthenticationContext)
issue - issueissueManager - issue managerprojectManager - project managerversionManager - version managerissueSecurityLevelManager - issue security level managerconstantsManager - constant managersubTaskManager - sub-task managerattachmentManager - attachment managerlabelManager - label managerprojectComponentManager - project component manageruserManager - user managerpublic static MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue genericValue)
IssueFactory.getIssue(org.ofbiz.core.entity.GenericValue) instead.genericValue - generic value of the issuepublic Long getId()
public 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()
IssuegetProjectObject in interface IssueContextgetProjectObject in interface Issuepublic Long getProjectId()
IssuegetProjectId in interface IssueContextgetProjectId in interface Issuepublic void setProjectId(Long projectId)
MutableIssuesetProjectId in interface MutableIssueprojectId - The id of the projectpublic void setProject(org.ofbiz.core.entity.GenericValue project)
MutableIssuesetProject in interface MutableIssueproject - the new Projectpublic void setProjectObject(Project project)
MutableIssuesetProjectObject in interface MutableIssueproject - the new Projectpublic org.ofbiz.core.entity.GenericValue getIssueType()
IssuegetIssueType in interface IssueContextgetIssueType in interface Issuepublic String getIssueTypeId()
IssuegetIssueTypeId in interface IssueContextgetIssueTypeId in interface Issuepublic void setIssueType(org.ofbiz.core.entity.GenericValue issueType)
MutableIssuesetIssueType in interface MutableIssueissueType - the new IssueTypepublic void setIssueTypeObject(IssueType issueType)
MutableIssuesetIssueTypeObject in interface MutableIssueissueType - the new IssueTypepublic void setIssueTypeId(String issueTypeId)
setIssueTypeId in interface MutableIssuepublic String getSummary()
getSummary in interface Issuepublic void setSummary(String summary)
setSummary in interface MutableIssuepublic com.atlassian.crowd.embedded.api.User getReporterUser()
IssueIssue.getReporter().getReporterUser in interface IssueIssue.getReporter()public com.atlassian.crowd.embedded.api.User getReporter()
Issuecom.opensymphony.user.User. This class
has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with
earlier versions.getReporter in interface Issuepublic String getReporterId()
getReporterId in interface Issuepublic com.atlassian.crowd.embedded.api.User getCreator()
getCreator in interface Issuepublic String getCreatorId()
getCreatorId in interface Issuepublic void setReporter(com.atlassian.crowd.embedded.api.User reporter)
setReporter in interface MutableIssuepublic void setReporterId(String reporterId)
MutableIssuesetReporterId in interface MutableIssuereporterId - userkey of the desired reporter.MutableIssue.setReporter(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 com.atlassian.crowd.embedded.api.User getAssigneeUser()
IssueIssue.getAssignee()getAssigneeUser in interface IssueIssue.getAssignee()public com.atlassian.crowd.embedded.api.User getAssignee()
Issuecom.opensymphony.user.User. This class
has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with
earlier versions.getAssignee in interface Issuepublic String getAssigneeId()
getAssigneeId in interface Issuepublic void setAssignee(com.atlassian.crowd.embedded.api.User assignee)
setAssignee in interface MutableIssuepublic void setAssigneeId(String assigneeKey)
MutableIssuesetAssigneeId in interface MutableIssueassigneeKey - The user key.public Collection<ProjectComponent> getComponentObjects()
getComponentObjects in interface Issuepublic Collection<org.ofbiz.core.entity.GenericValue> getComponents()
getComponents in interface Issuepublic void setComponents(Collection<org.ofbiz.core.entity.GenericValue> components)
MutableIssuesetComponents in interface MutableIssuecomponents - the new components valuepublic void setComponentObjects(Collection<ProjectComponent> components)
MutableIssuesetComponentObjects in interface MutableIssuecomponents - the new components valuepublic Collection<Version> getFixVersions()
getFixVersions in interface IssueVersion objects.public void setFixVersions(Collection<Version> 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()
IssuegetSecurityLevel in interface Issuepublic Long getSecurityLevelId()
IssuegetSecurityLevelId in interface Issuepublic void setSecurityLevelId(Long securityLevelId)
MutableIssuesetSecurityLevelId in interface MutableIssuesecurityLevelId - the new SecurityLevel valuepublic void setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
MutableIssuesetSecurityLevel in interface MutableIssuesecurityLevel - the new SecurityLevel valuepublic org.ofbiz.core.entity.GenericValue getPriority()
IssuegetPriority in interface Issuepublic void setPriority(org.ofbiz.core.entity.GenericValue priority)
MutableIssuesetPriority in interface MutableIssuepriority - the new priority valuepublic void setPriorityObject(Priority priority)
MutableIssuesetPriorityObject in interface MutableIssuepriority - the new priority valuepublic void setPriorityId(String priorityId)
setPriorityId in interface MutableIssuepublic String getResolutionId()
getResolutionId in interface Issuepublic org.ofbiz.core.entity.GenericValue getResolution()
IssuegetResolution in interface Issuepublic void setResolutionId(String resolutionId)
setResolutionId in interface MutableIssuepublic void setResolution(org.ofbiz.core.entity.GenericValue resolution)
MutableIssuesetResolution in interface MutableIssueresolution - the new resolution valuepublic void setResolutionObject(Resolution resolution)
MutableIssuesetResolutionObject in interface MutableIssueresolution - the new resolution valuepublic String getKey()
public void setKey(String key)
setKey in interface MutableIssuepublic void setNumber(Long number)
setNumber in interface MutableIssuepublic void setVotes(Long votes)
setVotes in interface MutableIssuepublic Long getWatches()
getWatches in interface Issuepublic void setWatches(Long watches)
setWatches 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)
OfBizValueWrappergetString in interface OfBizValueWrappername - the field namepublic Timestamp getTimestamp(String name)
OfBizValueWrappergetTimestamp in interface OfBizValueWrappername - the field namepublic Long getLong(String name)
OfBizValueWrappergetLong in interface OfBizValueWrappername - the field namepublic org.ofbiz.core.entity.GenericValue getGenericValue()
IssuegetGenericValue in interface IssuegetGenericValue 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()
IssuegetResolutionDate 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 IssuecustomField - the CustomFieldpublic 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 Issuepublic void setExternalFieldValue(String fieldId, Object newValue)
MutableIssueMutableIssue.getModifiedFields() and Issue.getExternalFieldValue(String).
The passed in newValue will be wrapped in the ModifiedValue.getNewValue() The ModifiedValue.getOldValue() will be null.setExternalFieldValue in interface MutableIssuefieldId - the field id to use as a keynewValue - the new value to place in a ModifiedValuepublic void setExternalFieldValue(String fieldId, Object oldValue, Object newValue)
MutableIssueMutableIssue.getModifiedFields() and Issue.getExternalFieldValue(String).
The passed in newValue will be wrapped in the ModifiedValue.getNewValue() and the oldValue will be placed
in ModifiedValue.getOldValue()setExternalFieldValue in interface MutableIssuefieldId - the field id to use as a keyoldValue - the old value to place in a ModifiedValuenewValue - the new value to place in a ModifiedValuepublic Long getParentId()
getParentId in interface Issuepublic void setParentId(Long parentId)
MutableIssuesetParentId 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()
IssuegetParentObject in interface IssuegetParentObject in class AbstractIssuepublic org.ofbiz.core.entity.GenericValue getParent()
getParentObject() instead.getParent in interface IssuegetParent in class AbstractIssuepublic Collection<org.ofbiz.core.entity.GenericValue> getSubTasks()
getSubTasks in interface Issuepublic Collection<Issue> getSubTaskObjects()
IssuegetSubTaskObjects in interface IssueMutableIssuespublic org.ofbiz.core.entity.GenericValue getStatus()
public String getStatusId()
getStatusId in interface Issuepublic void setStatusId(String statusId)
MutableIssuesetStatusId in interface MutableIssuestatusId - the new StatusId.public void setLabels(Set<Label> labels)
MutableIssuesetLabels in interface MutableIssuelabels - the labels for this issuepublic Set<Label> getLabels()
Issuepublic void setStatus(org.ofbiz.core.entity.GenericValue status)
MutableIssuesetStatus in interface MutableIssuestatus - the new status valuepublic void setStatusObject(Status status)
MutableIssuesetStatusObject in interface MutableIssuestatus - the new status valuepublic Long getOriginalEstimate()
IssuegetOriginalEstimate in interface Issuepublic void setOriginalEstimate(Long originalEstimate)
setOriginalEstimate in interface MutableIssuepublic Long getEstimate()
IssuegetEstimate in interface Issuepublic void setEstimate(Long estimate)
setEstimate in interface MutableIssuepublic Long getTimeSpent()
IssuegetTimeSpent in interface Issuepublic void setTimeSpent(Long timespent)
setTimeSpent in interface MutableIssuepublic IssueRenderContext getIssueRenderContext()
getIssueRenderContext in interface Issuepublic void store()
MutableIssuestore in interface MutableIssuestore in interface OfBizValueWrapperpublic Map<String,ModifiedValue> getModifiedFields()
MutableIssueMutableIssue.resetModifiedFields() call.getModifiedFields in interface MutableIssueIssueFieldConstants and the value
objects in the ModifiedValue are field-specific.public void resetModifiedFields()
MutableIssueresetModifiedFields in interface MutableIssueMutableIssue.getModifiedFields()Copyright © 2002-2015 Atlassian. All Rights Reserved.