|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableIssue
Facade for an issue's GenericValue
.
After calling any 'setter' method, you will need to call OfBizValueWrapper.store()
to persist the change to the database.
Note that this is a 'shallow' store - only fields directly part of the issue (in the database schema) are persisted.
IssueManager
Method Summary | |
---|---|
Map |
getModifiedFields()
Retrieve a map of issue fields whose values have been set (since object creation or last resetModifiedFields() call. |
void |
resetModifiedFields()
Reset the internal list of modified fields. |
void |
setAffectedVersions(Collection<Version> affectedVersions)
|
void |
setAssignee(User assignee)
|
void |
setAssigneeId(String assigneeId)
|
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<Version> fixVersions)
|
void |
setIssueType(org.ofbiz.core.entity.GenericValue issueType)
|
void |
setIssueTypeId(String issueTypeId)
|
void |
setKey(String key)
|
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(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)
|
Methods inherited from interface com.atlassian.jira.ofbiz.OfBizValueWrapper |
---|
getGenericValue, getLong, getString, getTimestamp, store |
Method Detail |
---|
void setProject(org.ofbiz.core.entity.GenericValue project)
void setProjectId(Long projectId) throws IllegalArgumentException
setProject(org.ofbiz.core.entity.GenericValue)
projectId
- The id of the project
IllegalArgumentException
- If no project exists for the given projectId.void setIssueType(org.ofbiz.core.entity.GenericValue issueType)
void setIssueTypeId(String issueTypeId)
void setSummary(String summary)
void setAssignee(User assignee)
void setComponents(Collection components)
void setAssigneeId(String assigneeId)
void setReporter(User reporter)
void setReporterId(String reporterId)
reporterId
- username of the desired reporter.
DataAccessException
- if the user with the given username does not exist.setReporter(com.opensymphony.user.User)
void setDescription(String description)
void setEnvironment(String environment)
void setAffectedVersions(Collection<Version> affectedVersions)
affectedVersions
- A collection of 'affects' Version
objects.void setFixVersions(Collection<Version> fixVersions)
fixVersions
- A collection of fix-for Version
objects.void setDueDate(Timestamp dueDate)
void setSecurityLevelId(Long securityLevelId)
void setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
void setPriority(org.ofbiz.core.entity.GenericValue priority)
void setPriorityId(String priorityId)
void setResolution(org.ofbiz.core.entity.GenericValue resolution)
void setKey(String key)
void setVotes(Long votes)
void setCreated(Timestamp created)
void setUpdated(Timestamp updated)
void setResolutionDate(Timestamp resolutionDate)
void setWorkflowId(Long workflowId)
void setCustomFieldValue(CustomField customField, Object value)
OrderableField.updateIssue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, MutableIssue, java.util.Map)
customField
- the CustomFieldvalue
- the value.void setStatus(org.ofbiz.core.entity.GenericValue status)
void setStatusId(String statusId)
statusId
- the new StatusId.void resetModifiedFields()
getModifiedFields()
void setOriginalEstimate(Long estimate)
void setTimeSpent(Long timespent)
void setEstimate(Long estimate)
void setExternalFieldValue(String fieldId, Object value)
void setParentId(Long parentId)
parentId
- The new parentId.setParentObject(Issue)
void setParentObject(Issue parentIssue)
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.
parentIssue
- the required parent Issue for this subtask.setParentId(Long)
,
Issue.getParentObject()
void setResolutionId(String resolutionId)
Map getModifiedFields()
resetModifiedFields()
call.
IssueFieldConstants
and objects are field-specific.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |