Class DocumentIssueImpl
- All Implemented Interfaces:
WithId
,WithKey
,IssueContext
,Issue
,OfBizValueWrapper
,Serializable
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.AbstractIssue
attachmentManager, constantsManager, issueManager
Fields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBAL
Fields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentIssueImpl
(org.apache.lucene.document.Document document, ConstantsManager constantsManager, FieldManager fieldManager, IssueManager issueManager, IssueFactory issueFactory, AttachmentManager attachmentManager, ProjectFactory projectFactory, JqlLocalDateSupport jqlLocalDateSupport) -
Method Summary
Modifier and TypeMethodDescriptionReturns the userid of user who archived this issue, or null if it wasn't archived.Returns the user who archived this issue, or null if it wasn't archived.Returns the timestamp when this issue was archived, or null if it wasn't archived.Returns the Assignee User.Returns the Assignee User.Deprecated.getCustomFieldValue
(CustomField customField) This is the "remaining estimate" of work left to be performed on this issue, in seconds.getExternalFieldValue
(String fieldId) org.ofbiz.core.entity.GenericValue
Get the backing GenericValue object.getId()
Gets the IssueType for this Issue.Gets the ID of the IssueType for this Issue.Gets the IssueType for this Issue.getKey()
Returns a set of all the labels for this issue or an empty set if none exist yet.Retrieve a numeric field.This is the "original estimate" of work to be performed on this issue, in seconds.Returns the Priority for this Issue.Returns the Priority for this Issue.org.ofbiz.core.entity.GenericValue
Gets the ID of the Project for this Issue.Gets the Project for this Issue.Returns the Reporter User.Returns the Reporter User.Returns the Resolution for this Issue.Returns the datetime that an issue was resolved on.Returns the Resolution for this Issue.org.ofbiz.core.entity.GenericValue
Returns the Security Level for this Issue.Returns the Security Level for this Issue.Retrieve a String field.Gets all the issue's subtasks.This is the "total time spent" working on this issue, in seconds.getTimestamp
(String name) Retrieve a timestamp field.getVotes()
boolean
Returns true if issue is archivedboolean
boolean
void
store()
Persist this object's immediate fields.toString()
Methods inherited from class com.atlassian.jira.issue.AbstractIssue
equals, getAttachments, getParent, getParentObject, hashCode, isEditable
-
Constructor Details
-
DocumentIssueImpl
public DocumentIssueImpl(org.apache.lucene.document.Document document, ConstantsManager constantsManager, FieldManager fieldManager, IssueManager issueManager, IssueFactory issueFactory, AttachmentManager attachmentManager, ProjectFactory projectFactory, JqlLocalDateSupport jqlLocalDateSupport)
-
-
Method Details
-
getId
- Returns:
- the unique id of the entity.
-
getNumber
-
getProject
public org.ofbiz.core.entity.GenericValue getProject() -
getProjectObject
Description copied from interface:Issue
Gets the Project for this Issue.- Returns:
- The Project for this Issue.
-
getProjectId
Description copied from interface:Issue
Gets the ID of the Project for this Issue.- Returns:
- The ID of the Project for this Issue.
-
getIssueTypeObject
Description copied from interface:Issue
Gets the IssueType for this Issue.- Specified by:
getIssueTypeObject
in interfaceIssue
- Specified by:
getIssueTypeObject
in interfaceIssueContext
- Overrides:
getIssueTypeObject
in classAbstractIssue
- Returns:
- The IssueType for this Issue.
-
getIssueType
Description copied from interface:Issue
Gets the IssueType for this Issue.- Returns:
- The IssueType for this Issue.
-
getIssueTypeId
Description copied from interface:Issue
Gets the ID of the IssueType for this Issue.- Returns:
- The ID of the IssueType for this Issue.
-
getSummary
-
getAssigneeUser
Description copied from interface:Issue
Returns the Assignee User.If there is no assignee it returns null, else it is guaranteed to return a non-null User. If the User is no longer available, it will create a dummy User object based on the username.
Legacy synonym for
Issue.getAssignee()
- Returns:
- the Assignee User.
- See Also:
-
getAssignee
Description copied from interface:Issue
Returns the Assignee User.Warning: previous incarnations of this method returned
com.opensymphony.user.User
. This class has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with earlier versions.- Returns:
- the Assignee User.
-
getAssigneeId
- Returns:
- a user key of the assignee
-
getComponents
- Returns:
- collection of project components (as objects) that this issue is assigned to
-
getComponentObjects
Deprecated.since 7.0, usegetComponents()
instead- Returns:
-
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
-
isArchived
public boolean isArchived()Description copied from interface:Issue
Returns true if issue is archived- Returns:
- is issue archived
-
getArchivedByUser
Description copied from interface:Issue
Returns the user who archived this issue, or null if it wasn't archived.- Returns:
- the user who archived this issue, or null if it wasn't archived.
-
getArchivedById
Description copied from interface:Issue
Returns the userid of user who archived this issue, or null if it wasn't archived.- Returns:
- the userid of user who archived this issue, or null if it wasn't archived.
-
getArchivedDate
Description copied from interface:Issue
Returns the timestamp when this issue was archived, or null if it wasn't archived.- Returns:
- timestamp when this issue was archived, or null if it wasn't archived.
-
getReporterUser
Description copied from interface:Issue
Returns the Reporter User.This will return a non-null User object even if the User has been deleted.
Legacy synonym for
Issue.getReporter()
.- Returns:
- the Reporter User.
- See Also:
-
getReporter
Description copied from interface:Issue
Returns the Reporter User.Warning: previous incarnations of this method returned
com.opensymphony.user.User
. This class has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with earlier versions.- Returns:
- the Reporter User.
-
getReporterId
- Returns:
- a user key of the reporter
-
getCreator
-
getCreatorId
- Returns:
- a user key of the creator
-
getDescription
-
getEnvironment
-
getAffectedVersions
- Returns:
- a collection of 'affects'
Version
objects.
-
getFixVersions
- Returns:
- a collection of fix-for
Version
objects.
-
getDueDate
-
getSecurityLevel
public org.ofbiz.core.entity.GenericValue getSecurityLevel()Description copied from interface:Issue
Returns the Security Level for this Issue.- Returns:
- the Security Level for this Issue.
-
getSecurityLevelId
Description copied from interface:Issue
Returns the Security Level for this Issue.- Returns:
- the Security Level for this Issue.
-
getPriorityObject
Description copied from interface:Issue
Returns the Priority for this Issue.- Specified by:
getPriorityObject
in interfaceIssue
- Overrides:
getPriorityObject
in classAbstractIssue
- Returns:
- the Priority for this Issue.
-
getPriority
Description copied from interface:Issue
Returns the Priority for this Issue.- Returns:
- the Priority for this Issue.
-
getResolutionId
-
getResolutionObject
Description copied from interface:Issue
Returns the Resolution for this Issue.- Specified by:
getResolutionObject
in interfaceIssue
- Overrides:
getResolutionObject
in classAbstractIssue
- Returns:
- the Resolution for this Issue.
-
getResolution
Description copied from interface:Issue
Returns the Resolution for this Issue.- Returns:
- the Resolution for this Issue.
-
getKey
- Returns:
- the entity key.
-
getVotes
-
getWatches
-
getCreated
-
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
-
getWorkflowId
-
getCustomFieldValue
- Parameters:
customField
- the CustomField- Returns:
- A custom field's value. Will be a List, User, Timestamp etc, depending on custom field type.
-
getStatusId
-
getStatusObject
- Specified by:
getStatusObject
in interfaceIssue
- Overrides:
getStatusObject
in classAbstractIssue
-
getStatus
-
getOriginalEstimate
Description copied from interface:Issue
This is the "original estimate" of work to be performed on this issue, in seconds.- Returns:
- the "original estimate" of work to be performed on this issue, in seconds.
-
getEstimate
Description copied from interface:Issue
This is the "remaining estimate" of work left to be performed on this issue, in seconds.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 seconds.
-
getTimeSpent
Description copied from interface:Issue
This is the "total time spent" working on this issue, in seconds.- Returns:
- the "total time spent" working on this issue, in seconds.
-
getExternalFieldValue
-
isSubTask
public boolean isSubTask() -
getParentId
-
isCreated
public boolean isCreated() -
getSubTasks
-
getSubTaskObjects
Description copied from interface:Issue
Gets all the issue's subtasks.- Returns:
- A collection of
MutableIssue
s
-
getIssueRenderContext
-
getString
Description copied from interface:OfBizValueWrapper
Retrieve a String field.- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getTimestamp
Description copied from interface:OfBizValueWrapper
Retrieve a timestamp field.- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getLong
Description copied from interface:OfBizValueWrapper
Retrieve a numeric field.- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue()Description copied from interface:Issue
Get the backing GenericValue object.- Returns:
- the backing GenericValue object.
-
store
public void store()Description copied from interface:OfBizValueWrapper
Persist this object's immediate fields.As of JIRA 7.0 this method is considered optional. If this object is actually immutable, then it will throw
UnsupportedOperationException
because there are no possible mutations to store. -
toString
-
getComponents()
instead