com.atlassian.jira.issue
Class AbstractIssue

java.lang.Object
  extended by com.atlassian.jira.issue.AbstractIssue
All Implemented Interfaces:
WithId, WithKey, IssueContext, Issue, OfBizValueWrapper
Direct Known Subclasses:
DocumentIssueImpl, IssueImpl

public abstract class AbstractIssue
extends Object
implements Issue


Field Summary
protected  AttachmentManager attachmentManager
           
protected  ConstantsManager constantsManager
           
protected  IssueManager issueManager
           
 
Fields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBAL
 
Constructor Summary
protected AbstractIssue(ConstantsManager constantsManager, IssueManager issueManager, AttachmentManager attachmentManager)
           
 
Method Summary
 boolean equals(Object o)
          For interactivity, implementations must be based on the issue key.
 Collection<Attachment> getAttachments()
           
 IssueType getIssueTypeObject()
          Gets the IssueType for this Issue.
 org.ofbiz.core.entity.GenericValue getParent()
          Deprecated. Use getParentObject() instead.
 Issue getParentObject()
          If this issue is a subtask, return its parent.
 Priority getPriorityObject()
          Returns the Priority for this Issue.
 Resolution getResolutionObject()
          Returns the Resolution for this Issue.
 Status getStatusObject()
           
 int hashCode()
          For interactivity, implementations must be based on the hashcode of the issue key.
 boolean isEditable()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.Issue
getAffectedVersions, getAssignee, getAssigneeId, getAssigneeUser, getComponentObjects, getComponents, getCreated, getCreator, getCreatorId, getCustomFieldValue, getDescription, getDueDate, getEnvironment, getEstimate, getExternalFieldValue, getFixVersions, getId, getIssueRenderContext, getIssueType, getIssueTypeId, getKey, getLabels, getNumber, getOriginalEstimate, getParentId, getPriority, getProject, getProjectId, getProjectObject, getReporter, getReporterId, getReporterUser, getResolution, getResolutionDate, getResolutionId, getSecurityLevel, getSecurityLevelId, getStatus, getSubTaskObjects, getSubTasks, getSummary, getTimeSpent, getUpdated, getVotes, getWatches, getWorkflowId, isCreated, isSubTask
 
Methods inherited from interface com.atlassian.jira.ofbiz.OfBizValueWrapper
getGenericValue, getLong, getString, getTimestamp, store
 

Field Detail

constantsManager

protected final ConstantsManager constantsManager

issueManager

protected final IssueManager issueManager

attachmentManager

protected final AttachmentManager attachmentManager
Constructor Detail

AbstractIssue

protected AbstractIssue(ConstantsManager constantsManager,
                        IssueManager issueManager,
                        AttachmentManager attachmentManager)
Method Detail

getIssueTypeObject

public IssueType getIssueTypeObject()
Description copied from interface: Issue
Gets the IssueType for this Issue.

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

getPriorityObject

public Priority getPriorityObject()
Description copied from interface: Issue
Returns the Priority for this Issue.

Specified by:
getPriorityObject in interface Issue
Returns:
the Priority for this Issue.

getResolutionObject

public Resolution getResolutionObject()
Description copied from interface: Issue
Returns the Resolution for this Issue.

Specified by:
getResolutionObject in interface Issue
Returns:
the Resolution for this Issue.

getStatusObject

public Status getStatusObject()
Specified by:
getStatusObject in interface Issue

getParentObject

public Issue getParentObject()
Description copied from interface: Issue
If this issue is a subtask, return its parent.

Specified by:
getParentObject in interface Issue
Returns:
The parent Issue, or null if the issue is not a subtask.

getParent

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

Specified by:
getParent in interface Issue

isEditable

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

getAttachments

public Collection<Attachment> getAttachments()
Specified by:
getAttachments in interface Issue
Returns:
A collection of Attachment objects

equals

public final boolean equals(Object o)
Description copied from interface: Issue
For interactivity, implementations must be based on the issue key. See the implementation in AbstractIssue for an example.

Specified by:
equals in interface Issue
Overrides:
equals in class Object
Parameters:
o - the other object
Returns:
true if the other Issue object has the same key.

hashCode

public final int hashCode()
Description copied from interface: Issue
For interactivity, implementations must be based on the hashcode of the issue key. See the implementation in AbstractIssue for an example.

Specified by:
hashCode in interface Issue
Overrides:
hashCode in class Object
Returns:
the Hashcode of the issue key (or 0 for null).


Copyright © 2002-2014 Atlassian. All Rights Reserved.