public class GenericMutableIssueWrapper extends GenericIssueWrapper implements MutableIssue
GLOBALID_COMPARATOR| Constructor and Description |
|---|
GenericMutableIssueWrapper(MutableIssue delegate) |
| Modifier and Type | Method and Description |
|---|---|
MutableIssue |
getDelegate() |
Map<String,ModifiedValue> |
getModifiedFields()
Retrieve a map of issue fields whose values have been set (since object creation or last
MutableIssue.resetModifiedFields() call. |
void |
resetModifiedFields()
Reset the internal list of modified fields.
|
void |
setAffectedVersions(Collection<Version> affectedVersions) |
void |
setArchived(boolean isArchived) |
void |
setAssignee(ApplicationUser assignee) |
void |
setAssigneeId(String assigneeId)
Sets the user that this issue is assigned to.
|
void |
setComponent(Collection<ProjectComponent> 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(IssueType issueType) |
void |
setIssueTypeId(String issueTypeId) |
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 estimate) |
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(Priority priority)
Sets the priority for this Issue.
|
void |
setPriorityId(String priorityId)
Sets the priority for this Issue.
|
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(ApplicationUser reporter) |
void |
setReporterId(String reporterId)
Sets the reporter in this issue.
|
void |
setResolution(Resolution 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(Status 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 votes) |
void |
setWorkflowId(Long workflowId) |
getAffectedVersions, getArchivedById, getArchivedByUser, getArchivedDate, getAssignee, getAssigneeId, getAssigneeUser, getAttachments, getComponentObjects, getComponents, getCreated, getCreator, getCreatorId, getCustomFieldValue, getDescription, getDueDate, getEnvironment, getEstimate, getExternalFieldValue, getFixVersions, getGenericValue, getId, getIssueRenderContext, getIssueType, getIssueTypeId, getIssueTypeObject, getKey, getLabels, getLong, getNumber, getOriginalEstimate, getParent, getParentId, getParentObject, getPriority, getPriorityObject, getProject, getProjectId, getProjectObject, getReporter, getReporterId, getReporterUser, getResolution, getResolutionDate, getResolutionId, getResolutionObject, getSecurityLevel, getSecurityLevelId, getStatus, getStatusId, getStatusObject, getString, getSubTaskObjects, getSubTasks, getSummary, getTimeSpent, getTimestamp, getUpdated, getVotes, getWatches, getWorkflowId, isArchived, isCreated, isEditable, isSubTask, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstoreequals, getAffectedVersions, getArchivedById, getArchivedByUser, getArchivedDate, getAssignee, getAssigneeId, getAssigneeUser, getAttachments, getComponentObjects, getComponents, getCreated, getCreator, getCreatorId, getCustomFieldValue, getDescription, getDueDate, getEnvironment, getEstimate, getExternalFieldValue, getFixVersions, getGenericValue, getId, getIssueRenderContext, getIssueType, getIssueTypeId, getIssueTypeObject, getKey, getLabels, getNumber, getOriginalEstimate, getParent, getParentId, getParentObject, getPriority, getPriorityObject, getProject, getProjectId, getProjectObject, getReporter, getReporterId, getReporterUser, getResolution, getResolutionDate, getResolutionId, getResolutionObject, getSecurityLevel, getSecurityLevelId, getStatus, getStatusId, getStatusObject, getSubTaskObjects, getSubTasks, getSummary, getTimeSpent, getUpdated, getVotes, getWatches, getWorkflowId, hashCode, isArchived, isCreated, isEditable, isSubTaskgetLong, getString, getTimestamppublic GenericMutableIssueWrapper(MutableIssue delegate)
public MutableIssue getDelegate()
getDelegate in class GenericIssueWrapperpublic 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 void setProjectId(Long projectId) throws IllegalArgumentException
MutableIssuesetProjectId in interface MutableIssueprojectId - The id of the projectIllegalArgumentException - If no project exists for the given projectId.public void setIssueType(IssueType issueType)
setIssueType in interface MutableIssuepublic void setIssueTypeObject(IssueType issueType)
MutableIssuesetIssueTypeObject in interface MutableIssueissueType - the new IssueTypepublic void setIssueTypeId(String issueTypeId)
setIssueTypeId in interface MutableIssuepublic void setSummary(String summary)
setSummary in interface MutableIssuepublic void setAssignee(ApplicationUser assignee)
setAssignee in interface MutableIssuepublic void setComponent(Collection<ProjectComponent> components)
MutableIssuesetComponent in interface MutableIssuecomponents - the new components valuepublic void setAssigneeId(String assigneeId)
MutableIssuesetAssigneeId in interface MutableIssueassigneeId - The user key.public void setReporter(ApplicationUser reporter)
setReporter in interface MutableIssuepublic void setReporterId(String reporterId)
MutableIssuesetReporterId in interface MutableIssuereporterId - userkey of the desired reporter.MutableIssue.setReporter(ApplicationUser)public void setDescription(String description)
setDescription in interface MutableIssuepublic void setEnvironment(String environment)
setEnvironment in interface MutableIssuepublic void setAffectedVersions(Collection<Version> affectedVersions)
setAffectedVersions in interface MutableIssueaffectedVersions - A collection of 'affects' Version objects.public void setFixVersions(Collection<Version> fixVersions)
setFixVersions in interface MutableIssuefixVersions - A collection of fix-for Version objects.public void setDueDate(Timestamp dueDate)
setDueDate in interface MutableIssuepublic 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 void setPriority(@Nullable Priority priority)
MutableIssuesetPriority in interface MutableIssuepriority - the new priority valuepublic void setPriorityObject(@Nullable Priority priority)
MutableIssuesetPriorityObject in interface MutableIssuepriority - the new priority valuepublic void setPriorityId(String priorityId)
MutableIssuesetPriorityId in interface MutableIssuepriorityId - the new priority valuepublic void setResolution(Resolution resolution)
MutableIssuesetResolution in interface MutableIssuepublic void setResolutionObject(Resolution resolution)
MutableIssuesetResolutionObject in interface MutableIssueresolution - the new resolution valuepublic void setKey(String key)
setKey in interface MutableIssuepublic void setNumber(Long number)
setNumber in interface MutableIssuepublic void setVotes(Long votes)
setVotes in interface MutableIssuepublic void setWatches(Long votes)
setWatches in interface MutableIssuepublic void setCreated(Timestamp created)
setCreated in interface MutableIssuepublic void setUpdated(Timestamp updated)
setUpdated in interface MutableIssuepublic void setResolutionDate(Timestamp resolutionDate)
setResolutionDate in interface MutableIssuepublic void setWorkflowId(Long workflowId)
setWorkflowId in interface MutableIssuepublic 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 void setStatus(Status status)
MutableIssuesetStatus in interface MutableIssuestatus - the new status valuepublic void setStatusObject(Status status)
MutableIssuesetStatusObject in interface MutableIssuestatus - the new status valuepublic void setStatusId(String statusId)
MutableIssuesetStatusId in interface MutableIssuestatusId - the new StatusId.public void resetModifiedFields()
MutableIssueresetModifiedFields in interface MutableIssueMutableIssue.getModifiedFields()public void setOriginalEstimate(Long estimate)
setOriginalEstimate in interface MutableIssuepublic void setTimeSpent(Long timespent)
setTimeSpent in interface MutableIssuepublic void setEstimate(Long estimate)
setEstimate in interface MutableIssuepublic 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 void setParentId(Long parentId)
MutableIssuesetParentId in interface MutableIssueparentId - The new parentId.MutableIssue.setParentObject(Issue)public void setParentObject(Issue parentIssue)
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.MutableIssue.setParentId(Long),
Issue.getParentObject()public void setResolutionId(String resolutionId)
setResolutionId in interface MutableIssuepublic void setArchived(boolean isArchived)
setArchived in interface MutableIssuepublic void setLabels(Set<Label> labels)
MutableIssuesetLabels in interface MutableIssuelabels - the labels for this issuepublic Map<String,ModifiedValue> getModifiedFields()
MutableIssueMutableIssue.resetModifiedFields() call.getModifiedFields in interface MutableIssueIssueFieldConstants and the value
objects in the ModifiedValue are field-specific.Copyright © 2002-2024 Atlassian. All Rights Reserved.