|
||||||||||
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 | |
---|---|
java.util.Map<java.lang.String,ModifiedValue> |
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(java.util.Collection<Version> affectedVersions)
|
void |
setAssignee(com.opensymphony.user.User assignee)
|
void |
setAssigneeId(java.lang.String assigneeId)
|
void |
setComponents(java.util.Collection<org.ofbiz.core.entity.GenericValue> components)
|
void |
setCreated(java.sql.Timestamp created)
|
void |
setCustomFieldValue(CustomField customField,
java.lang.Object value)
Sets a custom field value on this Issue Object, but does not write it to the database. |
void |
setDescription(java.lang.String description)
|
void |
setDueDate(java.sql.Timestamp dueDate)
|
void |
setEnvironment(java.lang.String environment)
|
void |
setEstimate(java.lang.Long estimate)
|
void |
setExternalFieldValue(java.lang.String fieldId,
java.lang.Object newValue)
This can be used bya field to "place" a custom object into the MutableIssue so that it can retrived it by key at a later point via the getModifiedFields() and Issue.getExternalFieldValue(String) . |
void |
setExternalFieldValue(java.lang.String fieldId,
java.lang.Object oldValue,
java.lang.Object newValue)
This can be used bya field to "place" a custom object into the MutableIssue so that it can retrived it by key at a later point via the getModifiedFields() and Issue.getExternalFieldValue(String) . |
void |
setFixVersions(java.util.Collection<Version> fixVersions)
|
void |
setIssueType(org.ofbiz.core.entity.GenericValue issueType)
|
void |
setIssueTypeId(java.lang.String issueTypeId)
|
void |
setKey(java.lang.String key)
|
void |
setLabels(java.util.Set<Label> labels)
Set the labels for this issue. |
void |
setOriginalEstimate(java.lang.Long estimate)
|
void |
setParentId(java.lang.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(java.lang.String priorityId)
|
void |
setProject(org.ofbiz.core.entity.GenericValue project)
|
void |
setProjectId(java.lang.Long projectId)
Sets the project by id. |
void |
setReporter(com.opensymphony.user.User reporter)
|
void |
setReporterId(java.lang.String reporterId)
Sets the reporter in this issue. |
void |
setResolution(org.ofbiz.core.entity.GenericValue resolution)
|
void |
setResolutionDate(java.sql.Timestamp resolutionDate)
|
void |
setResolutionId(java.lang.String resolutionId)
|
void |
setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
|
void |
setSecurityLevelId(java.lang.Long securityLevelId)
|
void |
setStatus(org.ofbiz.core.entity.GenericValue status)
|
void |
setStatusId(java.lang.String statusId)
Set issue's status by status id ("1", "2" etc). |
void |
setSummary(java.lang.String summary)
|
void |
setTimeSpent(java.lang.Long timespent)
|
void |
setUpdated(java.sql.Timestamp updated)
|
void |
setVotes(java.lang.Long votes)
|
void |
setWorkflowId(java.lang.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(java.lang.Long projectId) throws java.lang.IllegalArgumentException
setProject(org.ofbiz.core.entity.GenericValue)
projectId
- The id of the project
java.lang.IllegalArgumentException
- If no project exists for the given projectId.void setIssueType(org.ofbiz.core.entity.GenericValue issueType)
void setIssueTypeId(java.lang.String issueTypeId)
void setSummary(java.lang.String summary)
void setAssignee(com.opensymphony.user.User assignee)
void setComponents(java.util.Collection<org.ofbiz.core.entity.GenericValue> components)
void setAssigneeId(java.lang.String assigneeId)
void setReporter(com.opensymphony.user.User reporter)
void setReporterId(java.lang.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(java.lang.String description)
void setEnvironment(java.lang.String environment)
void setAffectedVersions(java.util.Collection<Version> affectedVersions)
affectedVersions
- A collection of 'affects' Version
objects.void setFixVersions(java.util.Collection<Version> fixVersions)
fixVersions
- A collection of fix-for Version
objects.void setDueDate(java.sql.Timestamp dueDate)
void setSecurityLevelId(java.lang.Long securityLevelId)
void setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
void setPriority(org.ofbiz.core.entity.GenericValue priority)
void setPriorityId(java.lang.String priorityId)
void setResolution(org.ofbiz.core.entity.GenericValue resolution)
void setKey(java.lang.String key)
void setVotes(java.lang.Long votes)
void setCreated(java.sql.Timestamp created)
void setUpdated(java.sql.Timestamp updated)
void setResolutionDate(java.sql.Timestamp resolutionDate)
void setWorkflowId(java.lang.Long workflowId)
void setCustomFieldValue(CustomField customField, java.lang.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(java.lang.String statusId)
statusId
- the new StatusId.void resetModifiedFields()
getModifiedFields()
void setOriginalEstimate(java.lang.Long estimate)
void setTimeSpent(java.lang.Long timespent)
void setEstimate(java.lang.Long estimate)
void setExternalFieldValue(java.lang.String fieldId, java.lang.Object newValue)
getModifiedFields()
and Issue.getExternalFieldValue(String)
.
The passed in newValue will be wrapped in the ModifiedValue.getNewValue()
The ModifiedValue.getOldValue()
will be null.
fieldId
- the field id to use as a keynewValue
- the new value to place in a ModifiedValue
void setExternalFieldValue(java.lang.String fieldId, java.lang.Object oldValue, java.lang.Object newValue)
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()
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
void setParentId(java.lang.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(java.lang.String resolutionId)
void setLabels(java.util.Set<Label> labels)
labels
- the labels for this issuejava.util.Map<java.lang.String,ModifiedValue> getModifiedFields()
resetModifiedFields()
call.
IssueFieldConstants
and the value
objects in the ModifiedValue are field-specific.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |