Package com.atlassian.jira.issue
Interface IssueFactory
- All Known Implementing Classes:
DefaultIssueFactory,SimpleMockIssueFactory
public interface IssueFactory
The IssueFactory is used for creating Issues in Jira, as well as converting
GenericValue issue objects
to proper Issue objects. It only handles creational tasks. For update and retrieval see the
IssueManager interface.
Note: This is an internal method for creating issues. To create issues properly,
you should use the IssueService interface instead.
It will include data validation, permissions, proper event firing, and triggering of notifications and indexing.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.commons.collections.TransformerUsed for transforming collections ofIssueobjects to issueGenericValueobjects. -
Method Summary
Modifier and TypeMethodDescriptioncloneIssue(Issue issue) Clones the Issue object which creates an editable copy.cloneIssueNoParent(Issue issue) Clone Issue for conversion from sub task to issuecloneIssueWithAllFields(Issue issue) Clones the Issue object which creates an editable copy.getIssue()Creates a new blank issue.getIssue(org.ofbiz.core.entity.GenericValue issueGV) Creates an issue object for an issue represented by the passed issueGVgetIssueOrNull(org.ofbiz.core.entity.GenericValue issueGV) Creates an issue object for an issue represented by the passed issueGV.getIssues(Collection<org.ofbiz.core.entity.GenericValue> issueGVs) Convert a list ofGenericValueobjects into a list ofMutableIssueobjects.
-
Field Details
-
TO_GENERIC_VALUE
static final org.apache.commons.collections.Transformer TO_GENERIC_VALUEUsed for transforming collections ofIssueobjects to issueGenericValueobjects.
-
-
Method Details
-
getIssue
MutableIssue getIssue()Creates a new blank issue.- Returns:
- A
MutableIssueobject
-
getIssue
Creates an issue object for an issue represented by the passed issueGV- Parameters:
issueGV-- Returns:
- A
MutableIssueobject that represents a copy of the issueGV
-
getIssueOrNull
Creates an issue object for an issue represented by the passed issueGV. This will return null if it is passed null, which is different behaviour togetIssue(org.ofbiz.core.entity.GenericValue)- Parameters:
issueGV-- Returns:
- A
MutableIssueobject that represents a copy of the issueGV, or null.
-
cloneIssue
Clones the Issue object which creates an editable copy. Does not clone custom field values.- Parameters:
issue- issue to be cloned- Returns:
- A
MutableIssueclone.
-
cloneIssueWithAllFields
Clones the Issue object which creates an editable copy.- Parameters:
issue- issue to be cloned- Returns:
- A
MutableIssueclone.
-
getIssues
Convert a list ofGenericValueobjects into a list ofMutableIssueobjects. This is just a convenience method that callsgetIssue(org.ofbiz.core.entity.GenericValue)- Parameters:
issueGVs- The issues to be retrieved- Returns:
- Return a list of
MutableIssueobjects - See Also:
-
getIssue
- Parameters:
issueDocument- The search platform-agnostic document- Returns:
- The issue
- Since:
- 10.4
-
cloneIssueNoParent
Clone Issue for conversion from sub task to issue
-