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 Details

    • TO_GENERIC_VALUE

      static final org.apache.commons.collections.Transformer TO_GENERIC_VALUE
      Used for transforming collections of Issue objects to issue GenericValue objects.
  • Method Details

    • getIssue

      MutableIssue getIssue()
      Creates a new blank issue.
      Returns:
      A MutableIssue object
    • getIssue

      MutableIssue getIssue(org.ofbiz.core.entity.GenericValue issueGV)
      Creates an issue object for an issue represented by the passed issueGV
      Parameters:
      issueGV -
      Returns:
      A MutableIssue object that represents a copy of the issueGV
    • getIssueOrNull

      MutableIssue getIssueOrNull(org.ofbiz.core.entity.GenericValue issueGV)
      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 to getIssue(org.ofbiz.core.entity.GenericValue)
      Parameters:
      issueGV -
      Returns:
      A MutableIssue object that represents a copy of the issueGV, or null.
    • cloneIssue

      MutableIssue cloneIssue(Issue issue)
      Clones the Issue object which creates an editable copy. Does not clone custom field values.
      Parameters:
      issue - issue to be cloned
      Returns:
      A MutableIssue clone.
    • cloneIssueWithAllFields

      MutableIssue cloneIssueWithAllFields(Issue issue)
      Clones the Issue object which creates an editable copy.
      Parameters:
      issue - issue to be cloned
      Returns:
      A MutableIssue clone.
    • getIssues

      List<Issue> getIssues(Collection<org.ofbiz.core.entity.GenericValue> issueGVs)
      Convert a list of GenericValue objects into a list of MutableIssue objects. This is just a convenience method that calls getIssue(org.ofbiz.core.entity.GenericValue)
      Parameters:
      issueGVs - The issues to be retrieved
      Returns:
      Return a list of MutableIssue objects
      See Also:
    • getIssue

      Issue getIssue(Document issueDocument)
      Create an Issue from a search platform-agnostic Document
      Parameters:
      issueDocument - The search platform-agnostic document
      Returns:
      The issue
      Since:
      10.4
    • cloneIssueNoParent

      MutableIssue cloneIssueNoParent(Issue issue)
      Clone Issue for conversion from sub task to issue