Class DocumentIssueImpl<T>
- All Implemented Interfaces:
WithId,WithKey,IssueContext,Issue,OfBizValueWrapper,Serializable
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.AbstractIssue
attachmentManager, constantsManager, issueManagerFields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBALFields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionDocumentIssueImpl(Document document, ConstantsManager constantsManager, FieldManager fieldManager, IssueManager issueManager, IssueFactory issueFactory, AttachmentManager attachmentManager, ProjectFactory projectFactory, JqlLocalDateSupport jqlLocalDateSupport) DocumentIssueImpl(org.apache.lucene.document.Document document, ConstantsManager constantsManager, FieldManager fieldManager, IssueManager issueManager, IssueFactory issueFactory, AttachmentManager attachmentManager, ProjectFactory projectFactory, JqlLocalDateSupport jqlLocalDateSupport) Deprecated, for removal: This API element is subject to removal in a future version. -
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.since 7.0, usegetComponents()insteadgetCustomFieldValue(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.GenericValueGet 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.GenericValueGets 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.GenericValueReturns 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()booleanReturns true if issue is archivedbooleanbooleanvoidstore()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
@Deprecated(since="10.4", forRemoval=true) public DocumentIssueImpl(org.apache.lucene.document.Document document, ConstantsManager constantsManager, FieldManager fieldManager, IssueManager issueManager, IssueFactory issueFactory, AttachmentManager attachmentManager, ProjectFactory projectFactory, JqlLocalDateSupport jqlLocalDateSupport) Deprecated, for removal: This API element is subject to removal in a future version. -
DocumentIssueImpl
public DocumentIssueImpl(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:IssueGets the Project for this Issue.- Returns:
- The Project for this Issue.
-
getProjectId
Description copied from interface:IssueGets the ID of the Project for this Issue.- Returns:
- The ID of the Project for this Issue.
-
getIssueTypeObject
Description copied from interface:IssueGets the IssueType for this Issue.- Specified by:
getIssueTypeObjectin interfaceIssue- Specified by:
getIssueTypeObjectin interfaceIssueContext- Overrides:
getIssueTypeObjectin classAbstractIssue- Returns:
- The IssueType for this Issue.
-
getIssueType
Description copied from interface:IssueGets the IssueType for this Issue.- Returns:
- The IssueType for this Issue.
-
getIssueTypeId
Description copied from interface:IssueGets the ID of the IssueType for this Issue.- Returns:
- The ID of the IssueType for this Issue.
-
getSummary
-
getAssigneeUser
Description copied from interface:IssueReturns 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:IssueReturns 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:IssueReturns 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:IssueReturns true if issue is archived- Returns:
- is issue archived
-
getArchivedByUser
Description copied from interface:IssueReturns 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:IssueReturns 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:IssueReturns 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:IssueReturns 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:IssueReturns 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'
Versionobjects.
-
getFixVersions
- Returns:
- a collection of fix-for
Versionobjects.
-
getDueDate
-
getSecurityLevel
public org.ofbiz.core.entity.GenericValue getSecurityLevel()Description copied from interface:IssueReturns the Security Level for this Issue.- Returns:
- the Security Level for this Issue.
-
getSecurityLevelId
Description copied from interface:IssueReturns the Security Level for this Issue.- Returns:
- the Security Level for this Issue.
-
getPriorityObject
Description copied from interface:IssueReturns the Priority for this Issue.- Specified by:
getPriorityObjectin interfaceIssue- Overrides:
getPriorityObjectin classAbstractIssue- Returns:
- the Priority for this Issue.
-
getPriority
Description copied from interface:IssueReturns the Priority for this Issue.- Returns:
- the Priority for this Issue.
-
getResolutionId
-
getResolutionObject
Description copied from interface:IssueReturns the Resolution for this Issue.- Specified by:
getResolutionObjectin interfaceIssue- Overrides:
getResolutionObjectin classAbstractIssue- Returns:
- the Resolution for this Issue.
-
getResolution
Description copied from interface:IssueReturns the Resolution for this Issue.- Returns:
- the Resolution for this Issue.
-
getKey
- Returns:
- the entity key.
-
getVotes
-
getWatches
-
getCreated
-
getResolutionDate
Description copied from interface:IssueReturns 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:
getStatusObjectin interfaceIssue- Overrides:
getStatusObjectin classAbstractIssue
-
getStatus
-
getOriginalEstimate
Description copied from interface:IssueThis 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:IssueThis 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:IssueThis 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:IssueGets all the issue's subtasks.- Returns:
- A collection of
MutableIssues
-
getIssueRenderContext
-
getString
Description copied from interface:OfBizValueWrapperRetrieve a String field.- Parameters:
name- the field name- Returns:
- the value for the given field.
-
getTimestamp
Description copied from interface:OfBizValueWrapperRetrieve a timestamp field.- Parameters:
name- the field name- Returns:
- the value for the given field.
-
getLong
Description copied from interface:OfBizValueWrapperRetrieve 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:IssueGet the backing GenericValue object.- Returns:
- the backing GenericValue object.
-
store
public void store()Description copied from interface:OfBizValueWrapperPersist 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
UnsupportedOperationExceptionbecause there are no possible mutations to store. -
toString
-
DocumentIssueImpl(Document, ConstantsManager, FieldManager, IssueManager, IssueFactory, AttachmentManager, ProjectFactory, JqlLocalDateSupport)instead.