com.atlassian.jira.issue
Class IssueImpl

java.lang.Object
  extended by com.atlassian.jira.issue.AbstractIssue
      extended by com.atlassian.jira.issue.IssueImpl
All Implemented Interfaces:
IssueContext, Issue, MutableIssue, OfBizValueWrapper

public class IssueImpl
extends AbstractIssue
implements MutableIssue

Issue implementation which caches read data, and can persist its data to the database (via an Ofbiz GenericValue.

Since:
3.2

Field Summary
 
Fields inherited from class com.atlassian.jira.issue.AbstractIssue
attachmentManager, constantsManager, issueManager
 
Constructor Summary
IssueImpl(org.ofbiz.core.entity.GenericValue genericValue, IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, AttachmentManager attachmentManager, LabelManager labelManager, ProjectComponentManager projectComponentManager)
          Load an issue backed by the database.
IssueImpl(Issue issue, IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, AttachmentManager attachmentManager, LabelManager labelManager, ProjectComponentManager projectComponentManager)
          Create an issue, cloning another issue's data.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Collection<Version> getAffectedVersions()
           
 com.opensymphony.user.User getAssignee()
           
 java.lang.String getAssigneeId()
           
 java.util.Collection<ProjectComponent> getComponentObjects()
           
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getComponents()
           
 java.sql.Timestamp getCreated()
           
 java.lang.Object getCustomFieldValue(CustomField customField)
           
 java.lang.String getDescription()
           
 java.sql.Timestamp getDueDate()
           
 java.lang.String getEnvironment()
           
 java.lang.Long getEstimate()
          This is the "remaining estimate" of work left to be performed on this issue, in milliseconds.
 java.lang.Object getExternalFieldValue(java.lang.String fieldId)
           
 java.util.Collection<Version> getFixVersions()
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
          Get the backing GenericValue object.
 java.lang.Long getId()
           
static MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue genericValue)
          Deprecated. You should construct this yourself if at all possible, or use IssueFactory.getIssue(org.ofbiz.core.entity.GenericValue) instead.
 IssueRenderContext getIssueRenderContext()
           
 org.ofbiz.core.entity.GenericValue getIssueType()
          Gets the IssueType for this Issue.
 java.lang.String getKey()
           
 java.util.Set<Label> getLabels()
          Returns a set of all the labels for this issue or an empty set if none exist yet.
 java.lang.Long getLong(java.lang.String name)
          Retrieve a numeric field.
 java.util.Map<java.lang.String,ModifiedValue> getModifiedFields()
          Retrieve a map of issue fields whose values have been set (since object creation or last MutableIssue.resetModifiedFields() call.
 java.lang.Long getOriginalEstimate()
          This is the "original estimate" of work to be performed on this issue, in milliseconds.
 org.ofbiz.core.entity.GenericValue getParent()
          Deprecated. Use getParentObject() instead.
 java.lang.Long getParentId()
           
 Issue getParentObject()
          If this issue is a subtask, return its parent.
 org.ofbiz.core.entity.GenericValue getPriority()
           
 org.ofbiz.core.entity.GenericValue getProject()
          Gets the Project for this IssueContext.
 Project getProjectObject()
          Gets the Project for this Issue.
 com.opensymphony.user.User getReporter()
           
 java.lang.String getReporterId()
           
 org.ofbiz.core.entity.GenericValue getResolution()
           
 java.sql.Timestamp getResolutionDate()
          Returns the datetime that an issue was resolved on.
 org.ofbiz.core.entity.GenericValue getSecurityLevel()
           
 java.lang.Long getSecurityLevelId()
           
 org.ofbiz.core.entity.GenericValue getStatus()
           
 java.lang.String getString(java.lang.String name)
          Retrieve a String field.
 java.util.Collection<Issue> getSubTaskObjects()
          Gets all the issue's subtasks.
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getSubTasks()
           
 java.lang.String getSummary()
           
 java.lang.Long getTimeSpent()
          This is the "total time spent" working on this issue, in milliseconds.
 java.sql.Timestamp getTimestamp(java.lang.String name)
          Retrieve a timestamp field.
 java.sql.Timestamp getUpdated()
           
 java.lang.Long getVotes()
           
 java.lang.Long getWorkflowId()
           
 int hashCode()
           
 boolean isCreated()
           
 boolean isSubTask()
           
 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 assigneeName)
           
 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 MutableIssue.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 MutableIssue.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)
          Set the issue type, by type id.
 void setKey(java.lang.String key)
           
 void setLabels(java.util.Set<Label> labels)
          Set the labels for this issue.
 void setOriginalEstimate(java.lang.Long originalEstimate)
           
 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)
           
 void store()
          Persist this object's immediate fields.
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.jira.issue.AbstractIssue
getAttachments, getIssueTypeObject, getPriorityObject, getResolutionObject, getStatusObject, isEditable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.Issue
getAttachments, getIssueTypeObject, getPriorityObject, getResolutionObject, getStatusObject, isEditable
 

Constructor Detail

IssueImpl

public IssueImpl(org.ofbiz.core.entity.GenericValue genericValue,
                 IssueManager issueManager,
                 ProjectManager projectManager,
                 VersionManager versionManager,
                 IssueSecurityLevelManager issueSecurityLevelManager,
                 ConstantsManager constantsManager,
                 SubTaskManager subTaskManager,
                 AttachmentManager attachmentManager,
                 LabelManager labelManager,
                 ProjectComponentManager projectComponentManager)
Load an issue backed by the database.

Parameters:
genericValue - generic value of the issue
issueManager - issue manager
projectManager - project manager
versionManager - version manager
issueSecurityLevelManager - issue security level manager
constantsManager - constant manager
subTaskManager - sub-task manager
attachmentManager - attachment manager
labelManager - label manager
projectComponentManager - project component manager

IssueImpl

public IssueImpl(Issue issue,
                 IssueManager issueManager,
                 ProjectManager projectManager,
                 VersionManager versionManager,
                 IssueSecurityLevelManager issueSecurityLevelManager,
                 ConstantsManager constantsManager,
                 SubTaskManager subTaskManager,
                 AttachmentManager attachmentManager,
                 LabelManager labelManager,
                 ProjectComponentManager projectComponentManager)
Create an issue, cloning another issue's data.

Parameters:
issue - issue
issueManager - issue manager
projectManager - project manager
versionManager - version manager
issueSecurityLevelManager - issue security level manager
constantsManager - constant manager
subTaskManager - sub-task manager
attachmentManager - attachment manager
labelManager - label manager
projectComponentManager - project component manager
Method Detail

getIssueObject

public static MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue genericValue)
Deprecated. You should construct this yourself if at all possible, or use IssueFactory.getIssue(org.ofbiz.core.entity.GenericValue) instead.

This is a static way of instantiating an Issue Object.

Parameters:
genericValue - generic value of the issue
Returns:
new instance of MutableIssue

getId

public java.lang.Long getId()
Specified by:
getId in interface Issue

getProject

public org.ofbiz.core.entity.GenericValue getProject()
Description copied from interface: IssueContext
Gets the Project for this IssueContext.

A null return value is used to represent that this context applies to all Projects.

Specified by:
getProject in interface IssueContext
Specified by:
getProject in interface Issue
Returns:
The Project for this IssueContext (can be null).

getProjectObject

public Project getProjectObject()
Description copied from interface: Issue
Gets the Project for this Issue.

Specified by:
getProjectObject in interface IssueContext
Specified by:
getProjectObject in interface Issue
Returns:
The Project for this Issue.

setProjectId

public void setProjectId(java.lang.Long projectId)
Description copied from interface: MutableIssue
Sets the project by id. This has the same outcome as calling MutableIssue.setProject(org.ofbiz.core.entity.GenericValue)

Specified by:
setProjectId in interface MutableIssue
Parameters:
projectId - The id of the project

setProject

public void setProject(org.ofbiz.core.entity.GenericValue project)
Specified by:
setProject in interface MutableIssue

getIssueType

public org.ofbiz.core.entity.GenericValue getIssueType()
Description copied from interface: Issue
Gets the IssueType for this Issue.

Specified by:
getIssueType in interface IssueContext
Specified by:
getIssueType in interface Issue
Returns:
The IssueType for this Issue.

setIssueType

public void setIssueType(org.ofbiz.core.entity.GenericValue issueType)
Specified by:
setIssueType in interface MutableIssue

setIssueTypeId

public void setIssueTypeId(java.lang.String issueTypeId)
Set the issue type, by type id.

Specified by:
setIssueTypeId in interface MutableIssue

getSummary

public java.lang.String getSummary()
Specified by:
getSummary in interface Issue

setSummary

public void setSummary(java.lang.String summary)
Specified by:
setSummary in interface MutableIssue

getReporter

public com.opensymphony.user.User getReporter()
Specified by:
getReporter in interface Issue

getReporterId

public java.lang.String getReporterId()
Specified by:
getReporterId in interface Issue

setReporter

public void setReporter(com.opensymphony.user.User reporter)
Specified by:
setReporter in interface MutableIssue

setReporterId

public void setReporterId(java.lang.String reporterId)
Description copied from interface: MutableIssue
Sets the reporter in this issue.

Specified by:
setReporterId in interface MutableIssue
Parameters:
reporterId - username of the desired reporter.
See Also:
MutableIssue.setReporter(com.opensymphony.user.User)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Issue

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface MutableIssue

getEnvironment

public java.lang.String getEnvironment()
Specified by:
getEnvironment in interface Issue

setEnvironment

public void setEnvironment(java.lang.String environment)
Specified by:
setEnvironment in interface MutableIssue

getAssignee

public com.opensymphony.user.User getAssignee()
Specified by:
getAssignee in interface Issue

getAssigneeId

public java.lang.String getAssigneeId()
Specified by:
getAssigneeId in interface Issue

setAssignee

public void setAssignee(com.opensymphony.user.User assignee)
Specified by:
setAssignee in interface MutableIssue

setAssigneeId

public void setAssigneeId(java.lang.String assigneeName)
Specified by:
setAssigneeId in interface MutableIssue

getComponentObjects

public java.util.Collection<ProjectComponent> getComponentObjects()
Specified by:
getComponentObjects in interface Issue
Returns:
collection of project components (as objects) that this issue is assigned to

getComponents

public java.util.Collection<org.ofbiz.core.entity.GenericValue> getComponents()
Specified by:
getComponents in interface Issue
Returns:
A collection of component GenericValues.

setComponents

public void setComponents(java.util.Collection<org.ofbiz.core.entity.GenericValue> components)
Specified by:
setComponents in interface MutableIssue

getFixVersions

public java.util.Collection<Version> getFixVersions()
Specified by:
getFixVersions in interface Issue
Returns:
a collection of fix-for Version objects.

setFixVersions

public void setFixVersions(java.util.Collection<Version> fixVersions)
Specified by:
setFixVersions in interface MutableIssue
Parameters:
fixVersions - A collection of fix-for Version objects.

getDueDate

public java.sql.Timestamp getDueDate()
Specified by:
getDueDate in interface Issue

setDueDate

public void setDueDate(java.sql.Timestamp dueDate)
Specified by:
setDueDate in interface MutableIssue

getSecurityLevel

public org.ofbiz.core.entity.GenericValue getSecurityLevel()
Specified by:
getSecurityLevel in interface Issue

getSecurityLevelId

public java.lang.Long getSecurityLevelId()
Specified by:
getSecurityLevelId in interface Issue

setSecurityLevelId

public void setSecurityLevelId(java.lang.Long securityLevelId)
Specified by:
setSecurityLevelId in interface MutableIssue

setSecurityLevel

public void setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel)
Specified by:
setSecurityLevel in interface MutableIssue

getPriority

public org.ofbiz.core.entity.GenericValue getPriority()
Specified by:
getPriority in interface Issue

setPriority

public void setPriority(org.ofbiz.core.entity.GenericValue priority)
Specified by:
setPriority in interface MutableIssue

setPriorityId

public void setPriorityId(java.lang.String priorityId)
Specified by:
setPriorityId in interface MutableIssue

getResolution

public org.ofbiz.core.entity.GenericValue getResolution()
Specified by:
getResolution in interface Issue

setResolutionId

public void setResolutionId(java.lang.String resolutionId)
Specified by:
setResolutionId in interface MutableIssue

setResolution

public void setResolution(org.ofbiz.core.entity.GenericValue resolution)
Specified by:
setResolution in interface MutableIssue

getKey

public java.lang.String getKey()
Specified by:
getKey in interface Issue

setKey

public void setKey(java.lang.String key)
Specified by:
setKey in interface MutableIssue

getVotes

public java.lang.Long getVotes()
Specified by:
getVotes in interface Issue

setVotes

public void setVotes(java.lang.Long votes)
Specified by:
setVotes in interface MutableIssue

getAffectedVersions

public java.util.Collection<Version> getAffectedVersions()
Specified by:
getAffectedVersions in interface Issue
Returns:
a collection of 'affects' Version objects.

setAffectedVersions

public void setAffectedVersions(java.util.Collection<Version> affectedVersions)
Specified by:
setAffectedVersions in interface MutableIssue
Parameters:
affectedVersions - A collection of 'affects' Version objects.

getString

public java.lang.String getString(java.lang.String name)
Description copied from interface: OfBizValueWrapper
Retrieve a String field.

Specified by:
getString in interface OfBizValueWrapper

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String name)
Description copied from interface: OfBizValueWrapper
Retrieve a timestamp field.

Specified by:
getTimestamp in interface OfBizValueWrapper

getLong

public java.lang.Long getLong(java.lang.String name)
Description copied from interface: OfBizValueWrapper
Retrieve a numeric field.

Specified by:
getLong in interface OfBizValueWrapper

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Description copied from interface: OfBizValueWrapper
Get the backing GenericValue object.

Specified by:
getGenericValue in interface OfBizValueWrapper

getCreated

public java.sql.Timestamp getCreated()
Specified by:
getCreated in interface Issue

setCreated

public void setCreated(java.sql.Timestamp created)
Specified by:
setCreated in interface MutableIssue

getUpdated

public java.sql.Timestamp getUpdated()
Specified by:
getUpdated in interface Issue

setUpdated

public void setUpdated(java.sql.Timestamp updated)
Specified by:
setUpdated in interface MutableIssue

getResolutionDate

public java.sql.Timestamp getResolutionDate()
Description copied from interface: Issue
Returns the datetime that an issue was resolved on. Will be null if it hasn't been resolved yet, or if an issue has been returned to the 'unresolved' state.

Specified by:
getResolutionDate in interface Issue
Returns:
Timestamp of when an issue was resolved, or null

setResolutionDate

public void setResolutionDate(java.sql.Timestamp resolutionDate)
Specified by:
setResolutionDate in interface MutableIssue

getWorkflowId

public java.lang.Long getWorkflowId()
Specified by:
getWorkflowId in interface Issue

setWorkflowId

public void setWorkflowId(java.lang.Long workflowId)
Specified by:
setWorkflowId in interface MutableIssue

getCustomFieldValue

public java.lang.Object getCustomFieldValue(CustomField customField)
Specified by:
getCustomFieldValue in interface Issue
Returns:
A custom field's value. Will be a List, User, Timestamp etc, depending on custom field type.

setCustomFieldValue

public void setCustomFieldValue(CustomField customField,
                                java.lang.Object value)
Description copied from interface: MutableIssue
Sets 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, use OrderableField.updateIssue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, MutableIssue, java.util.Map)

Specified by:
setCustomFieldValue in interface MutableIssue
Parameters:
customField - the CustomField
value - the value.

getExternalFieldValue

public java.lang.Object getExternalFieldValue(java.lang.String fieldId)
Specified by:
getExternalFieldValue in interface Issue

setExternalFieldValue

public void setExternalFieldValue(java.lang.String fieldId,
                                  java.lang.Object newValue)
Description copied from interface: MutableIssue
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 MutableIssue.getModifiedFields() and Issue.getExternalFieldValue(String).

The passed in newValue will be wrapped in the ModifiedValue.getNewValue() The ModifiedValue.getOldValue() will be null.

Specified by:
setExternalFieldValue in interface MutableIssue
Parameters:
fieldId - the field id to use as a key
newValue - the new value to place in a ModifiedValue

setExternalFieldValue

public void setExternalFieldValue(java.lang.String fieldId,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)
Description copied from interface: MutableIssue
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 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()

Specified by:
setExternalFieldValue in interface MutableIssue
Parameters:
fieldId - the field id to use as a key
oldValue - the old value to place in a ModifiedValue
newValue - the new value to place in a ModifiedValue

isSubTask

public boolean isSubTask()
Specified by:
isSubTask in interface Issue

getParentId

public java.lang.Long getParentId()
Specified by:
getParentId in interface Issue

setParentId

public void setParentId(java.lang.Long parentId)
Description copied from interface: MutableIssue
Sets the ParentId of this Issue.

Specified by:
setParentId in interface MutableIssue
Parameters:
parentId - The new parentId.
See Also:
MutableIssue.setParentObject(Issue)

setParentObject

public void setParentObject(Issue parentIssue)
                     throws java.lang.IllegalArgumentException
Description copied from interface: MutableIssue
Sets 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:
setParentObject in interface MutableIssue
Parameters:
parentIssue - the required parent Issue for this subtask.
Throws:
java.lang.IllegalArgumentException
See Also:
MutableIssue.setParentId(Long), Issue.getParentObject()

getParentObject

public Issue getParentObject()
Description copied from interface: Issue
If this issue is a subtask, return its parent. The parent Issue, or null if the issue is not a subtask.

Specified by:
getParentObject in interface Issue
Overrides:
getParentObject in class AbstractIssue

getParent

public org.ofbiz.core.entity.GenericValue getParent()
Deprecated. Use getParentObject() instead.

Specified by:
getParent in interface Issue
Overrides:
getParent in class AbstractIssue

getSubTasks

public java.util.Collection<org.ofbiz.core.entity.GenericValue> getSubTasks()
Specified by:
getSubTasks in interface Issue

getSubTaskObjects

public java.util.Collection<Issue> getSubTaskObjects()
Description copied from interface: Issue
Gets all the issue's subtasks.

Specified by:
getSubTaskObjects in interface Issue
Returns:
A collection of MutableIssues

isCreated

public boolean isCreated()
Specified by:
isCreated in interface Issue

getStatus

public org.ofbiz.core.entity.GenericValue getStatus()
Specified by:
getStatus in interface Issue

setStatusId

public void setStatusId(java.lang.String statusId)
Description copied from interface: MutableIssue
Set issue's status by status id ("1", "2" etc).

Specified by:
setStatusId in interface MutableIssue
Parameters:
statusId - the new StatusId.

setLabels

public void setLabels(java.util.Set<Label> labels)
Description copied from interface: MutableIssue
Set the labels for this issue.

Specified by:
setLabels in interface MutableIssue
Parameters:
labels - the labels for this issue

getLabels

public java.util.Set<Label> getLabels()
Description copied from interface: Issue
Returns a set of all the labels for this issue or an empty set if none exist yet.

Specified by:
getLabels in interface Issue
Returns:
a set of all the labels for this issue or an empty set if none exist yet

setStatus

public void setStatus(org.ofbiz.core.entity.GenericValue status)
Specified by:
setStatus in interface MutableIssue

getOriginalEstimate

public java.lang.Long getOriginalEstimate()
Description copied from interface: Issue
This is the "original estimate" of work to be performed on this issue, in milliseconds.

Specified by:
getOriginalEstimate in interface Issue
Returns:
the "original estimate" of work to be performed on this issue, in milliseconds.

setOriginalEstimate

public void setOriginalEstimate(java.lang.Long originalEstimate)
Specified by:
setOriginalEstimate in interface MutableIssue

getEstimate

public java.lang.Long getEstimate()
Description copied from interface: Issue
This is the "remaining estimate" of work left to be performed on this issue, in milliseconds.

A better name would be getRemainingEstimate but for historical reasons it is called what it is called.

Specified by:
getEstimate in interface Issue
Returns:
the "remaining estimate" of work left to be performed on this issue, in milliseconds.

setEstimate

public void setEstimate(java.lang.Long estimate)
Specified by:
setEstimate in interface MutableIssue

getTimeSpent

public java.lang.Long getTimeSpent()
Description copied from interface: Issue
This is the "total time spent" working on this issue, in milliseconds.

Specified by:
getTimeSpent in interface Issue
Returns:
the "total time spent" working on this issue, in milliseconds.

setTimeSpent

public void setTimeSpent(java.lang.Long timespent)
Specified by:
setTimeSpent in interface MutableIssue

getIssueRenderContext

public IssueRenderContext getIssueRenderContext()
Specified by:
getIssueRenderContext in interface Issue

store

public void store()
Description copied from interface: OfBizValueWrapper
Persist this object's immediate fields.

Specified by:
store in interface OfBizValueWrapper

getModifiedFields

public java.util.Map<java.lang.String,ModifiedValue> getModifiedFields()
Description copied from interface: MutableIssue
Retrieve a map of issue fields whose values have been set (since object creation or last MutableIssue.resetModifiedFields() call.

Specified by:
getModifiedFields in interface MutableIssue
Returns:
A Map of key -> ModifiedValue pairs, where keys are defined in IssueFieldConstants and the value objects in the ModifiedValue are field-specific.

resetModifiedFields

public void resetModifiedFields()
Description copied from interface: MutableIssue
Reset the internal list of modified fields.

Specified by:
resetModifiedFields in interface MutableIssue
See Also:
MutableIssue.getModifiedFields()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2002-2010 Atlassian. All Rights Reserved.