public class GenericMutableIssueWrapper extends GenericIssueWrapper implements MutableIssue
GLOBAL
ID_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, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
store
equals, 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, isSubTask
getLong, getString, getTimestamp
public GenericMutableIssueWrapper(MutableIssue delegate)
public MutableIssue getDelegate()
getDelegate
in class GenericIssueWrapper
public void setProject(org.ofbiz.core.entity.GenericValue project)
MutableIssue
setProject
in interface MutableIssue
project
- the new Projectpublic void setProjectObject(Project project)
MutableIssue
setProjectObject
in interface MutableIssue
project
- the new Projectpublic void setProjectId(Long projectId) throws IllegalArgumentException
MutableIssue
setProjectId
in interface MutableIssue
projectId
- The id of the projectIllegalArgumentException
- If no project exists for the given projectId.public void setIssueType(IssueType issueType)
setIssueType
in interface MutableIssue
public void setIssueTypeObject(IssueType issueType)
MutableIssue
setIssueTypeObject
in interface MutableIssue
issueType
- the new IssueTypepublic void setIssueTypeId(String issueTypeId)
setIssueTypeId
in interface MutableIssue
public void setSummary(String summary)
setSummary
in interface MutableIssue
public void setAssignee(ApplicationUser assignee)
setAssignee
in interface MutableIssue
public void setComponent(Collection<ProjectComponent> components)
MutableIssue
setComponent
in interface MutableIssue
components
- the new components valuepublic void setAssigneeId(String assigneeId)
MutableIssue
setAssigneeId
in interface MutableIssue
assigneeId
- The user key.public void setReporter(ApplicationUser reporter)
setReporter
in interface MutableIssue
public void setReporterId(String reporterId)
MutableIssue
setReporterId
in interface MutableIssue
reporterId
- userkey of the desired reporter.MutableIssue.setReporter(ApplicationUser)
public void setDescription(String description)
setDescription
in interface MutableIssue
public void setEnvironment(String environment)
setEnvironment
in interface MutableIssue
public void setAffectedVersions(Collection<Version> affectedVersions)
setAffectedVersions
in interface MutableIssue
affectedVersions
- A collection of 'affects' Version
objects.public void setFixVersions(Collection<Version> fixVersions)
setFixVersions
in interface MutableIssue
fixVersions
- A collection of fix-for Version
objects.public void setDueDate(Timestamp dueDate)
setDueDate
in interface MutableIssue
public void setSecurityLevelId(Long securityLevelId)
MutableIssue
setSecurityLevelId
in interface MutableIssue
securityLevelId
- the new SecurityLevel valuepublic void setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
MutableIssue
setSecurityLevel
in interface MutableIssue
securityLevel
- the new SecurityLevel valuepublic void setPriority(@Nullable Priority priority)
MutableIssue
setPriority
in interface MutableIssue
priority
- the new priority valuepublic void setPriorityObject(@Nullable Priority priority)
MutableIssue
setPriorityObject
in interface MutableIssue
priority
- the new priority valuepublic void setPriorityId(String priorityId)
MutableIssue
setPriorityId
in interface MutableIssue
priorityId
- the new priority valuepublic void setResolution(Resolution resolution)
MutableIssue
setResolution
in interface MutableIssue
public void setResolutionObject(Resolution resolution)
MutableIssue
setResolutionObject
in interface MutableIssue
resolution
- the new resolution valuepublic void setKey(String key)
setKey
in interface MutableIssue
public void setNumber(Long number)
setNumber
in interface MutableIssue
public void setVotes(Long votes)
setVotes
in interface MutableIssue
public void setWatches(Long votes)
setWatches
in interface MutableIssue
public void setCreated(Timestamp created)
setCreated
in interface MutableIssue
public void setUpdated(Timestamp updated)
setUpdated
in interface MutableIssue
public void setResolutionDate(Timestamp resolutionDate)
setResolutionDate
in interface MutableIssue
public void setWorkflowId(Long workflowId)
setWorkflowId
in interface MutableIssue
public void setCustomFieldValue(CustomField customField, Object value)
MutableIssue
OrderableField.updateIssue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem,
MutableIssue, java.util.Map)
setCustomFieldValue
in interface MutableIssue
customField
- the CustomFieldvalue
- the value.public void setStatus(Status status)
MutableIssue
setStatus
in interface MutableIssue
status
- the new status valuepublic void setStatusObject(Status status)
MutableIssue
setStatusObject
in interface MutableIssue
status
- the new status valuepublic void setStatusId(String statusId)
MutableIssue
setStatusId
in interface MutableIssue
statusId
- the new StatusId.public void resetModifiedFields()
MutableIssue
resetModifiedFields
in interface MutableIssue
MutableIssue.getModifiedFields()
public void setOriginalEstimate(Long estimate)
setOriginalEstimate
in interface MutableIssue
public void setTimeSpent(Long timespent)
setTimeSpent
in interface MutableIssue
public void setEstimate(Long estimate)
setEstimate
in interface MutableIssue
public void setExternalFieldValue(String fieldId, Object newValue)
MutableIssue
MutableIssue.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 MutableIssue
fieldId
- the field id to use as a keynewValue
- the new value to place in a ModifiedValue
public void setExternalFieldValue(String fieldId, Object oldValue, Object newValue)
MutableIssue
MutableIssue.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 MutableIssue
fieldId
- the field id to use as a keyoldValue
- the old value to place in a ModifiedValue
newValue
- the new value to place in a ModifiedValue
public void setParentId(Long parentId)
MutableIssue
setParentId
in interface MutableIssue
parentId
- 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 MutableIssue
parentIssue
- the required parent Issue for this subtask.MutableIssue.setParentId(Long)
,
Issue.getParentObject()
public void setResolutionId(String resolutionId)
setResolutionId
in interface MutableIssue
public void setArchived(boolean isArchived)
setArchived
in interface MutableIssue
public void setLabels(Set<Label> labels)
MutableIssue
setLabels
in interface MutableIssue
labels
- the labels for this issuepublic Map<String,ModifiedValue> getModifiedFields()
MutableIssue
MutableIssue.resetModifiedFields()
call.getModifiedFields
in interface MutableIssue
IssueFieldConstants
and the value
objects in the ModifiedValue are field-specific.Copyright © 2002-2022 Atlassian. All Rights Reserved.