public class

DefaultIssueFactory

extends Object
implements IssueFactory
java.lang.Object
   ↳ com.atlassian.jira.issue.DefaultIssueFactory

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.issue.IssueFactory
Public Constructors
DefaultIssueFactory(IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, FieldManager fieldManager, AttachmentManager attachmentManager, ProjectFactory projectFactory, LabelManager labelManager, ProjectComponentManager projectComponentManager, UserManager userManager, JqlLocalDateSupport jqlLocalDateSupport, JiraAuthenticationContext jiraAuthenticationContext)
Public Methods
MutableIssue cloneIssue(Issue issue)
Clones the Issue object which creates an editable copy.
MutableIssue cloneIssueNoParent(Issue issue)
Clone Issue for conversion from sub task to issue
MutableIssue cloneIssueWithAllFields(Issue issue)
Clones the Issue object which creates an editable copy.
MutableIssue getIssue()
Creates a new blank issue.
Issue getIssue(Document issueDocument)
Creates an issue object for an issue represented by the Lucene Document
MutableIssue getIssue(GenericValue issueGV)
Creates an issue object for an issue represented by the passed issueGV
MutableIssue getIssueOrNull(GenericValue issueGV)
Creates an issue object for an issue represented by the passed issueGV.
List<Issue> getIssues(Collection<GenericValue> issueGVs)
Convert a list of GenericValue objects into a list of MutableIssue objects.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.IssueFactory

Public Constructors

public DefaultIssueFactory (IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, FieldManager fieldManager, AttachmentManager attachmentManager, ProjectFactory projectFactory, LabelManager labelManager, ProjectComponentManager projectComponentManager, UserManager userManager, JqlLocalDateSupport jqlLocalDateSupport, JiraAuthenticationContext jiraAuthenticationContext)

Public Methods

public 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

public MutableIssue cloneIssueNoParent (Issue issue)

Clone Issue for conversion from sub task to issue

public MutableIssue cloneIssueWithAllFields (Issue issue)

Clones the Issue object which creates an editable copy.

Parameters
issue issue to be cloned
Returns

public MutableIssue getIssue ()

Creates a new blank issue.

Returns

public Issue getIssue (Document issueDocument)

Creates an issue object for an issue represented by the Lucene Document

public MutableIssue getIssue (GenericValue issueGV)

Creates an issue object for an issue represented by the passed issueGV

Returns
  • A MutableIssue object that represents a copy of the issueGV

public MutableIssue getIssueOrNull (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)

Returns
  • A MutableIssue object that represents a copy of the issueGV, or null.

public List<Issue> getIssues (Collection<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