com.atlassian.jira.issue
Class DocumentIssueImpl

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

public class DocumentIssueImpl
extends AbstractIssue


Field Summary
 
Fields inherited from class com.atlassian.jira.issue.AbstractIssue
attachmentManager, constantsManager, issueManager
 
Constructor Summary
DocumentIssueImpl(org.apache.lucene.document.Document document, ConstantsManager constantsManager, FieldManager fieldManager, IssueManager issueManager, IssueFactory issueFactory, AttachmentManager attachmentManager, ProjectFactory projectFactory)
           
 
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()
           
 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.lang.Long getOriginalEstimate()
          This is the "original estimate" of work to be performed on this issue, in milliseconds.
 java.lang.Long getParentId()
           
 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 getSubTaskObjects()
          Gets all the issue's subtasks.
 java.util.Collection 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 store()
          Persist this object's immediate fields.
 
Methods inherited from class com.atlassian.jira.issue.AbstractIssue
getAttachments, getIssueTypeObject, getParent, getParentObject, getPriorityObject, getResolutionObject, getStatusObject, isEditable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentIssueImpl

public DocumentIssueImpl(org.apache.lucene.document.Document document,
                         ConstantsManager constantsManager,
                         FieldManager fieldManager,
                         IssueManager issueManager,
                         IssueFactory issueFactory,
                         AttachmentManager attachmentManager,
                         ProjectFactory projectFactory)
Method Detail

getId

public java.lang.Long getId()

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.

Returns:
The Project for this IssueContext (can be null).

getProjectObject

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

Returns:
The Project for this Issue.

getIssueType

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

Returns:
The IssueType for this Issue.

getSummary

public java.lang.String getSummary()

getAssignee

public com.opensymphony.user.User getAssignee()

getAssigneeId

public java.lang.String getAssigneeId()

getComponents

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

getComponentObjects

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

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.

Returns:
a set of all the labels for this issue or an empty set if none exist yet

getReporter

public com.opensymphony.user.User getReporter()

getReporterId

public java.lang.String getReporterId()

getDescription

public java.lang.String getDescription()

getEnvironment

public java.lang.String getEnvironment()

getAffectedVersions

public java.util.Collection<Version> getAffectedVersions()
Returns:
a collection of 'affects' Version objects.

getFixVersions

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

getDueDate

public java.sql.Timestamp getDueDate()

getSecurityLevel

public org.ofbiz.core.entity.GenericValue getSecurityLevel()

getSecurityLevelId

public java.lang.Long getSecurityLevelId()

getPriority

public org.ofbiz.core.entity.GenericValue getPriority()

getResolution

public org.ofbiz.core.entity.GenericValue getResolution()

getKey

public java.lang.String getKey()

getVotes

public java.lang.Long getVotes()

getCreated

public java.sql.Timestamp getCreated()

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.

Returns:
Timestamp of when an issue was resolved, or null

getUpdated

public java.sql.Timestamp getUpdated()

getWorkflowId

public java.lang.Long getWorkflowId()

getCustomFieldValue

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

getStatus

public org.ofbiz.core.entity.GenericValue getStatus()

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.

Returns:
the "original estimate" of work to be performed on this issue, in milliseconds.

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.

Returns:
the "remaining estimate" of work left to be performed on this issue, in milliseconds.

getTimeSpent

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

Returns:
the "total time spent" working on this issue, in milliseconds.

getExternalFieldValue

public java.lang.Object getExternalFieldValue(java.lang.String fieldId)

isSubTask

public boolean isSubTask()

getParentId

public java.lang.Long getParentId()

isCreated

public boolean isCreated()

getSubTasks

public java.util.Collection getSubTasks()

getSubTaskObjects

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

Returns:
A collection of MutableIssues

getIssueRenderContext

public IssueRenderContext getIssueRenderContext()

getString

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


getTimestamp

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


getLong

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


getGenericValue

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


store

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


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.