|
||||||||||
| 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<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(Collection<Version> affectedVersions)
|
void |
setAssignee(com.atlassian.crowd.embedded.api.User assignee)
|
void |
setAssigneeId(String assigneeId)
|
void |
setComponentObjects(Collection<ProjectComponent> components)
Sets the components for this Issue. |
void |
setComponents(Collection<org.ofbiz.core.entity.GenericValue> components)
Deprecated. Use setComponentObjects(java.util.Collection) instead. Since v5.0. |
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 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(String fieldId,
Object oldValue,
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(Collection<Version> fixVersions)
|
void |
setIssueType(org.ofbiz.core.entity.GenericValue issueType)
Deprecated. Use setIssueTypeObject(com.atlassian.jira.issue.issuetype.IssueType) instead. Since v5.0. |
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 |
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)
Deprecated. Use setPriorityObject(com.atlassian.jira.issue.priority.Priority) instead. Since v5.0. |
void |
setPriorityId(String priorityId)
|
void |
setPriorityObject(Priority priority)
Sets the priority for this Issue. |
void |
setProject(org.ofbiz.core.entity.GenericValue project)
Deprecated. Use setProjectObject(com.atlassian.jira.project.Project) instead. Since v5.0. |
void |
setProjectId(Long projectId)
Sets the project by id. |
void |
setProjectObject(Project project)
Sets the Project for this Issue. |
void |
setReporter(com.atlassian.crowd.embedded.api.User reporter)
|
void |
setReporterId(String reporterId)
Sets the reporter in this issue. |
void |
setResolution(org.ofbiz.core.entity.GenericValue resolution)
Deprecated. Use setResolutionObject(com.atlassian.jira.issue.resolution.Resolution) instead. Since v5.0. |
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)
Deprecated. Use setSecurityLevelId(Long) instead. Since v5.0. |
void |
setSecurityLevelId(Long securityLevelId)
Sets the SecurityLevel for this Issue. |
void |
setStatus(org.ofbiz.core.entity.GenericValue status)
Deprecated. Use setStatusObject(com.atlassian.jira.issue.status.Status) instead. Since v5.0. |
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)
|
| Methods inherited from interface com.atlassian.jira.ofbiz.OfBizValueWrapper |
|---|
getGenericValue, getLong, getString, getTimestamp, store |
| Method Detail |
|---|
void setProject(org.ofbiz.core.entity.GenericValue project)
setProjectObject(com.atlassian.jira.project.Project) instead. Since v5.0.
project - the new Projectvoid setProjectObject(Project project)
project - the new 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)
setIssueTypeObject(com.atlassian.jira.issue.issuetype.IssueType) instead. Since v5.0.
issueType - the new IssueTypevoid setIssueTypeObject(IssueType issueType)
issueType - the new IssueTypevoid setIssueTypeId(String issueTypeId)
void setSummary(String summary)
void setAssignee(com.atlassian.crowd.embedded.api.User assignee)
void setComponents(Collection<org.ofbiz.core.entity.GenericValue> components)
setComponentObjects(java.util.Collection) instead. Since v5.0.
components - the new components valuevoid setComponentObjects(Collection<ProjectComponent> components)
components - the new components valuevoid setAssigneeId(String assigneeId)
void setReporter(com.atlassian.crowd.embedded.api.User reporter)
void setReporterId(String reporterId)
reporterId - username of the desired reporter.
DataAccessException - if the user with the given username does not exist.setReporter(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)
securityLevelId - the new SecurityLevel valuevoid setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
setSecurityLevelId(Long) instead. Since v5.0.
securityLevel - the new SecurityLevel value
void setPriority(@Nullable
org.ofbiz.core.entity.GenericValue priority)
setPriorityObject(com.atlassian.jira.issue.priority.Priority) instead. Since v5.0.
priority - the new priority value
void setPriorityObject(@Nullable
Priority priority)
priority - the new priority valuevoid setPriorityId(String priorityId)
void setResolution(org.ofbiz.core.entity.GenericValue resolution)
setResolutionObject(com.atlassian.jira.issue.resolution.Resolution) instead. Since v5.0.
resolution - the new resolution valuevoid setResolutionObject(Resolution resolution)
resolution - the new resolution valuevoid setKey(String key)
void setVotes(Long votes)
void setWatches(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)
setStatusObject(com.atlassian.jira.issue.status.Status) instead. Since v5.0.
status - the new status valuevoid setStatusObject(Status status)
status - the new status valuevoid 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 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(String fieldId,
Object oldValue,
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 ModifiedValuenewValue - the new value to place in a ModifiedValuevoid 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)
void setLabels(Set<Label> labels)
labels - the labels for this issueMap<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 | |||||||||