com.atlassian.jira.issue
Class DefaultIssueFactory

java.lang.Object
  extended by com.atlassian.jira.issue.DefaultIssueFactory
All Implemented Interfaces:
IssueFactory

public class DefaultIssueFactory
extends Object
implements IssueFactory


Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.IssueFactory
TO_GENERIC_VALUE
 
Constructor Summary
DefaultIssueFactory(IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, FieldManager fieldManager, AttachmentManager attachmentManager, ProjectFactory projectFactory)
           
 
Method Summary
 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 getIssue()
          Creates a new blank issue.
 Issue getIssue(org.apache.lucene.document.Document issueDocument)
          Creates an issue object for an issue represented by the Lucene Document
 MutableIssue getIssue(org.ofbiz.core.entity.GenericValue issueGV)
          Creates an issue object for an issue represented by the passed issueGV
 List getIssues(Collection issueGVs)
          Convert a list of GenericValue objects into a list of MutableIssue objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueFactory

public DefaultIssueFactory(IssueManager issueManager,
                           ProjectManager projectManager,
                           VersionManager versionManager,
                           IssueSecurityLevelManager issueSecurityLevelManager,
                           ConstantsManager constantsManager,
                           SubTaskManager subTaskManager,
                           FieldManager fieldManager,
                           AttachmentManager attachmentManager,
                           ProjectFactory projectFactory)
Method Detail

getIssue

public MutableIssue getIssue()
Description copied from interface: IssueFactory
Creates a new blank issue.

Specified by:
getIssue in interface IssueFactory
Returns:
A MutableIssue object

getIssue

public MutableIssue getIssue(org.ofbiz.core.entity.GenericValue issueGV)
Description copied from interface: IssueFactory
Creates an issue object for an issue represented by the passed issueGV

Specified by:
getIssue in interface IssueFactory
Returns:
A MutableIssue object that represents a copy of the issueGV

cloneIssue

public MutableIssue cloneIssue(Issue issue)
Description copied from interface: IssueFactory
Clones the Issue object which creates an editable copy.

Specified by:
cloneIssue in interface IssueFactory
Returns:
A MutableIssue clone.

getIssues

public List getIssues(Collection issueGVs)
Description copied from interface: IssueFactory
Convert a list of GenericValue objects into a list of MutableIssue objects. This is just a convenience method that calls IssueFactory.getIssue(org.ofbiz.core.entity.GenericValue)

Specified by:
getIssues in interface IssueFactory
Parameters:
issueGVs - The issues to be retrieved
Returns:
Return a list of MutableIssue objects
See Also:
IssueFactory.getIssue(org.ofbiz.core.entity.GenericValue)

getIssue

public Issue getIssue(org.apache.lucene.document.Document issueDocument)
Description copied from interface: IssueFactory
Creates an issue object for an issue represented by the Lucene Document

Specified by:
getIssue in interface IssueFactory
Returns:

cloneIssueNoParent

public MutableIssue cloneIssueNoParent(Issue issue)
Description copied from interface: IssueFactory
Clone Issue for conversion from sub task to issue

Specified by:
cloneIssueNoParent in interface IssueFactory


Copyright © 2002-2009 Atlassian. All Rights Reserved.