Package com.atlassian.jira.issue
Class GenericMutableIssueWrapper
java.lang.Object
com.atlassian.jira.issue.GenericIssueWrapper
com.atlassian.jira.issue.GenericMutableIssueWrapper
- All Implemented Interfaces:
WithId,WithKey,IssueContext,Issue,MutableIssue,OfBizValueWrapper,Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBALFields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a map of issue fields whose values have been set (since object creation or lastMutableIssue.resetModifiedFields()call.voidReset the internal list of modified fields.voidsetAffectedVersions(Collection<Version> affectedVersions) voidsetArchived(boolean isArchived) voidsetAssignee(ApplicationUser assignee) voidsetAssigneeId(String assigneeId) Sets the user that this issue is assigned to.voidsetComponent(Collection<ProjectComponent> components) Sets the components for this Issue.voidsetCreated(Timestamp created) voidsetCustomFieldValue(CustomField customField, Object value) Sets a custom field value on this Issue Object, but does not write it to the database.voidsetDescription(String description) voidsetDueDate(Timestamp dueDate) voidsetEnvironment(String environment) voidsetEstimate(Long estimate) voidsetExternalFieldValue(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 theMutableIssue.getModifiedFields()andIssue.getExternalFieldValue(String).voidsetExternalFieldValue(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 theMutableIssue.getModifiedFields()andIssue.getExternalFieldValue(String).voidsetFixVersions(Collection<Version> fixVersions) voidsetIssueType(IssueType issueType) voidsetIssueTypeId(String issueTypeId) voidsetIssueTypeObject(IssueType issueType) Sets the IssueType for this Issue.voidvoidSet the labels for this issue.voidvoidsetOriginalEstimate(Long estimate) voidsetParentId(Long parentId) Sets the ParentId of this Issue.voidsetParentObject(Issue parentIssue) Sets the parent Issue Object for this Issue (subtask).voidsetPriority(Priority priority) Sets the priority for this Issue.voidsetPriorityId(String priorityId) Sets the priority for this Issue.voidsetPriorityObject(Priority priority) Sets the priority for this Issue.voidsetProject(org.ofbiz.core.entity.GenericValue project) Sets the Project for this Issue.voidsetProjectId(Long projectId) Sets the project by id.voidsetProjectObject(Project project) Sets the Project for this Issue.voidsetReporter(ApplicationUser reporter) voidsetReporterId(String reporterId) Sets the reporter in this issue.voidsetResolution(Resolution resolution) Sets the resolution for this Issue.voidsetResolutionDate(Timestamp resolutionDate) voidsetResolutionId(String resolutionId) voidsetResolutionObject(Resolution resolution) Sets the resolution for this Issue.voidsetSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel) Sets the SecurityLevel for this Issue.voidsetSecurityLevelId(Long securityLevelId) Sets the SecurityLevel for this Issue.voidSets the status for this Issue.voidsetStatusId(String statusId) Set issue's status by status id ("1", "2" etc).voidsetStatusObject(Status status) Sets the status for this Issue.voidsetSummary(String summary) voidsetTimeSpent(Long timespent) voidsetUpdated(Timestamp updated) voidvoidsetWatches(Long votes) voidsetWorkflowId(Long workflowId) Methods inherited from class com.atlassian.jira.issue.GenericIssueWrapper
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, storeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.Issue
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, isSubTaskMethods inherited from interface com.atlassian.jira.issue.MutableIssue
storeMethods inherited from interface com.atlassian.jira.ofbiz.OfBizValueWrapper
getLong, getString, getTimestamp
-
Constructor Details
-
GenericMutableIssueWrapper
-
-
Method Details
-
getDelegate
- Overrides:
getDelegatein classGenericIssueWrapper
-
setProject
public void setProject(org.ofbiz.core.entity.GenericValue project) Description copied from interface:MutableIssueSets the Project for this Issue.- Specified by:
setProjectin interfaceMutableIssue- Parameters:
project- the new Project
-
setProjectObject
Description copied from interface:MutableIssueSets the Project for this Issue.- Specified by:
setProjectObjectin interfaceMutableIssue- Parameters:
project- the new Project
-
setProjectId
Description copied from interface:MutableIssueSets the project by id.- Specified by:
setProjectIdin interfaceMutableIssue- Parameters:
projectId- The id of the project- Throws:
IllegalArgumentException- If no project exists for the given projectId.
-
setIssueType
- Specified by:
setIssueTypein interfaceMutableIssue
-
setIssueTypeObject
Description copied from interface:MutableIssueSets the IssueType for this Issue.- Specified by:
setIssueTypeObjectin interfaceMutableIssue- Parameters:
issueType- the new IssueType
-
setIssueTypeId
- Specified by:
setIssueTypeIdin interfaceMutableIssue
-
setSummary
- Specified by:
setSummaryin interfaceMutableIssue
-
setAssignee
- Specified by:
setAssigneein interfaceMutableIssue
-
setComponent
Description copied from interface:MutableIssueSets the components for this Issue.- Specified by:
setComponentin interfaceMutableIssue- Parameters:
components- the new components value
-
setAssigneeId
Description copied from interface:MutableIssueSets the user that this issue is assigned to. Note that this should be the userkey, not the username.- Specified by:
setAssigneeIdin interfaceMutableIssue- Parameters:
assigneeId- The user key.
-
setReporter
- Specified by:
setReporterin interfaceMutableIssue
-
setReporterId
Description copied from interface:MutableIssueSets the reporter in this issue. Note that this should be the userkey, not the username.- Specified by:
setReporterIdin interfaceMutableIssue- Parameters:
reporterId- userkey of the desired reporter.- See Also:
-
setDescription
- Specified by:
setDescriptionin interfaceMutableIssue
-
setEnvironment
- Specified by:
setEnvironmentin interfaceMutableIssue
-
setAffectedVersions
- Specified by:
setAffectedVersionsin interfaceMutableIssue- Parameters:
affectedVersions- A collection of 'affects'Versionobjects.
-
setFixVersions
- Specified by:
setFixVersionsin interfaceMutableIssue- Parameters:
fixVersions- A collection of fix-forVersionobjects.
-
setDueDate
- Specified by:
setDueDatein interfaceMutableIssue
-
setSecurityLevelId
Description copied from interface:MutableIssueSets the SecurityLevel for this Issue.- Specified by:
setSecurityLevelIdin interfaceMutableIssue- Parameters:
securityLevelId- the new SecurityLevel value
-
setSecurityLevel
public void setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel) Description copied from interface:MutableIssueSets the SecurityLevel for this Issue.- Specified by:
setSecurityLevelin interfaceMutableIssue- Parameters:
securityLevel- the new SecurityLevel value
-
setPriority
Description copied from interface:MutableIssueSets the priority for this Issue.- Specified by:
setPriorityin interfaceMutableIssue- Parameters:
priority- the new priority value
-
setPriorityObject
Description copied from interface:MutableIssueSets the priority for this Issue.- Specified by:
setPriorityObjectin interfaceMutableIssue- Parameters:
priority- the new priority value
-
setPriorityId
Description copied from interface:MutableIssueSets the priority for this Issue.- Specified by:
setPriorityIdin interfaceMutableIssue- Parameters:
priorityId- the new priority value
-
setResolution
Description copied from interface:MutableIssueSets the resolution for this Issue.- Specified by:
setResolutionin interfaceMutableIssue
-
setResolutionObject
Description copied from interface:MutableIssueSets the resolution for this Issue.- Specified by:
setResolutionObjectin interfaceMutableIssue- Parameters:
resolution- the new resolution value
-
setKey
- Specified by:
setKeyin interfaceMutableIssue
-
setNumber
- Specified by:
setNumberin interfaceMutableIssue
-
setVotes
- Specified by:
setVotesin interfaceMutableIssue
-
setWatches
- Specified by:
setWatchesin interfaceMutableIssue
-
setCreated
- Specified by:
setCreatedin interfaceMutableIssue
-
setUpdated
- Specified by:
setUpdatedin interfaceMutableIssue
-
setResolutionDate
- Specified by:
setResolutionDatein interfaceMutableIssue
-
setWorkflowId
- Specified by:
setWorkflowIdin interfaceMutableIssue
-
setCustomFieldValue
Description copied from interface:MutableIssueSets a custom field value on this Issue Object, but does not write it to the database. This is highly misleading.
To actually set a custom field value, useOrderableField.updateIssue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, MutableIssue, java.util.Map)- Specified by:
setCustomFieldValuein interfaceMutableIssue- Parameters:
customField- the CustomFieldvalue- the value.
-
setStatus
Description copied from interface:MutableIssueSets the status for this Issue.- Specified by:
setStatusin interfaceMutableIssue- Parameters:
status- the new status value
-
setStatusObject
Description copied from interface:MutableIssueSets the status for this Issue.- Specified by:
setStatusObjectin interfaceMutableIssue- Parameters:
status- the new status value
-
setStatusId
Description copied from interface:MutableIssueSet issue's status by status id ("1", "2" etc).- Specified by:
setStatusIdin interfaceMutableIssue- Parameters:
statusId- the new StatusId.
-
resetModifiedFields
public void resetModifiedFields()Description copied from interface:MutableIssueReset the internal list of modified fields.- Specified by:
resetModifiedFieldsin interfaceMutableIssue- See Also:
-
setOriginalEstimate
- Specified by:
setOriginalEstimatein interfaceMutableIssue
-
setTimeSpent
- Specified by:
setTimeSpentin interfaceMutableIssue
-
setEstimate
- Specified by:
setEstimatein interfaceMutableIssue
-
setExternalFieldValue
Description copied from interface:MutableIssueThis 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 theMutableIssue.getModifiedFields()andIssue.getExternalFieldValue(String).The passed in newValue will be wrapped in the
ModifiedValue.getNewValue()TheModifiedValue.getOldValue()will be null.- Specified by:
setExternalFieldValuein interfaceMutableIssue- Parameters:
fieldId- the field id to use as a keynewValue- the new value to place in aModifiedValue
-
setExternalFieldValue
Description copied from interface:MutableIssueThis 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 theMutableIssue.getModifiedFields()andIssue.getExternalFieldValue(String).The passed in newValue will be wrapped in the
ModifiedValue.getNewValue()and the oldValue will be placed inModifiedValue.getOldValue()- Specified by:
setExternalFieldValuein interfaceMutableIssue- Parameters:
fieldId- the field id to use as a keyoldValue- the old value to place in aModifiedValuenewValue- the new value to place in aModifiedValue
-
setParentId
Description copied from interface:MutableIssueSets the ParentId of this Issue.- Specified by:
setParentIdin interfaceMutableIssue- Parameters:
parentId- The new parentId.- See Also:
-
setParentObject
Description copied from interface:MutableIssueSets the parent Issue Object for this Issue (subtask).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.- Specified by:
setParentObjectin interfaceMutableIssue- Parameters:
parentIssue- the required parent Issue for this subtask.- See Also:
-
setResolutionId
- Specified by:
setResolutionIdin interfaceMutableIssue
-
setArchived
public void setArchived(boolean isArchived) - Specified by:
setArchivedin interfaceMutableIssue
-
setLabels
Description copied from interface:MutableIssueSet the labels for this issue.- Specified by:
setLabelsin interfaceMutableIssue- Parameters:
labels- the labels for this issue
-
getModifiedFields
Description copied from interface:MutableIssueRetrieve a map of issue fields whose values have been set (since object creation or lastMutableIssue.resetModifiedFields()call.- Specified by:
getModifiedFieldsin interfaceMutableIssue- Returns:
- A Map of key -> ModifiedValue pairs, where keys are defined in
IssueFieldConstantsand the value objects in the ModifiedValue are field-specific.
-