Package com.atlassian.jira.issue
Class DefaultIssueFactory
java.lang.Object
com.atlassian.jira.issue.DefaultIssueFactory
- All Implemented Interfaces:
IssueFactory
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.IssueFactory
TO_GENERIC_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultIssueFactory(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, IssueArchiveHelper issueArchiveHelper) -
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.
-
Constructor Details
-
DefaultIssueFactory
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, IssueArchiveHelper issueArchiveHelper)
-
-
Method Details
-
getIssue
Description copied from interface:IssueFactoryCreates a new blank issue.- Specified by:
getIssuein interfaceIssueFactory- Returns:
- A
MutableIssueobject
-
getIssue
Description copied from interface:IssueFactoryCreates an issue object for an issue represented by the passed issueGV- Specified by:
getIssuein interfaceIssueFactory- Parameters:
issueGV-- Returns:
- A
MutableIssueobject that represents a copy of the issueGV
-
getIssueOrNull
Description copied from interface:IssueFactoryCreates an issue object for an issue represented by the passed issueGV. This will return null if it is passed null, which is different behaviour toIssueFactory.getIssue(org.ofbiz.core.entity.GenericValue)- Specified by:
getIssueOrNullin interfaceIssueFactory- Parameters:
issueGV-- Returns:
- A
MutableIssueobject that represents a copy of the issueGV, or null.
-
cloneIssue
Description copied from interface:IssueFactoryClones the Issue object which creates an editable copy. Does not clone custom field values.- Specified by:
cloneIssuein interfaceIssueFactory- Parameters:
issue- issue to be cloned- Returns:
- A
MutableIssueclone.
-
cloneIssueWithAllFields
Description copied from interface:IssueFactoryClones the Issue object which creates an editable copy.- Specified by:
cloneIssueWithAllFieldsin interfaceIssueFactory- Parameters:
issue- issue to be cloned- Returns:
- A
MutableIssueclone.
-
getIssues
Description copied from interface:IssueFactoryConvert a list ofGenericValueobjects into a list ofMutableIssueobjects. This is just a convenience method that callsIssueFactory.getIssue(org.ofbiz.core.entity.GenericValue)- Specified by:
getIssuesin interfaceIssueFactory- Parameters:
issueGVs- The issues to be retrieved- Returns:
- Return a list of
MutableIssueobjects - See Also:
-
getIssue
Description copied from interface:IssueFactory- Specified by:
getIssuein interfaceIssueFactory- Parameters:
issueDocument- The search platform-agnostic document- Returns:
- The issue
-
cloneIssueNoParent
Description copied from interface:IssueFactoryClone Issue for conversion from sub task to issue- Specified by:
cloneIssueNoParentin interfaceIssueFactory
-