com.atlassian.jira.imports.fogbugz
Class FogBugzDataBean

java.lang.Object
  extended by com.atlassian.jira.imports.fogbugz.FogBugzDataBean
All Implemented Interfaces:
ImportDataBean

public class FogBugzDataBean
extends java.lang.Object
implements ImportDataBean


Field Summary
static java.lang.String ISSUE_KEY_REGEX
           
 
Constructor Summary
FogBugzDataBean(FogBugzConnectionBean connectionBean, FogBugzConfigBean configBean)
           
 
Method Summary
 void cleanUp()
           
 java.util.Collection<ExternalAttachment> getAttachmentsForIssue(ExternalIssue externalIssue)
           
 java.util.Collection<ExternalComponent> getComponents(ExternalProject externalProject)
           
 java.lang.String getIssueKeyRegex()
           
 java.util.Collection<ExternalIssue> getIssues(ExternalProject externalProject)
          Gets a collection of externalissues being imported for a project
 java.util.Iterator<ExternalIssue> getIssuesIterator(ExternalProject externalProject)
           
 java.util.Collection<ExternalLink> getLinks()
          get related and linked issues
 java.util.Collection<ExternalProject> getProjects()
           
 java.lang.Long getTotalIssues()
           
 java.util.Collection<ExternalUser> getUsers()
          Gets a Collection of all the users being imported.
 java.util.Collection<ExternalVersion> getVersions(ExternalProject externalProject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISSUE_KEY_REGEX

public static final java.lang.String ISSUE_KEY_REGEX
See Also:
Constant Field Values
Constructor Detail

FogBugzDataBean

public FogBugzDataBean(FogBugzConnectionBean connectionBean,
                       FogBugzConfigBean configBean)
Method Detail

getUsers

public java.util.Collection<ExternalUser> getUsers()
Description copied from interface: ImportDataBean
Gets a Collection of all the users being imported.

Specified by:
getUsers in interface ImportDataBean
Returns:
a Collection ExternalUser objects

getProjects

public java.util.Collection<ExternalProject> getProjects()
Specified by:
getProjects in interface ImportDataBean
Returns:
A Collection of ExternalProject objects. The ExternalProjects must have enough values to be parsed by ProjectUtils.createProject(java.util.Map)

getVersions

public java.util.Collection<ExternalVersion> getVersions(ExternalProject externalProject)
Specified by:
getVersions in interface ImportDataBean
Parameters:
externalProject - that contains versions
Returns:
a collection of ExternalVersion objects

getComponents

public java.util.Collection<ExternalComponent> getComponents(ExternalProject externalProject)
Specified by:
getComponents in interface ImportDataBean
Parameters:
externalProject - containing components
Returns:
a collection of ExternalComponent

getIssues

public java.util.Collection<ExternalIssue> getIssues(ExternalProject externalProject)
Description copied from interface: ImportDataBean
Gets a collection of externalissues being imported for a project

Specified by:
getIssues in interface ImportDataBean
Parameters:
externalProject - of the issue
Returns:
collection of ExternalIssue objects

getIssuesIterator

public java.util.Iterator<ExternalIssue> getIssuesIterator(ExternalProject externalProject)
Specified by:
getIssuesIterator in interface ImportDataBean

getLinks

public java.util.Collection<ExternalLink> getLinks()
Description copied from interface: ImportDataBean
get related and linked issues

Specified by:
getLinks in interface ImportDataBean
Returns:
as a collection of ExternalLink objects

getTotalIssues

public java.lang.Long getTotalIssues()
Specified by:
getTotalIssues in interface ImportDataBean
Returns:
the total number of issues to be imported

cleanUp

public void cleanUp()
Specified by:
cleanUp in interface ImportDataBean

getAttachmentsForIssue

public java.util.Collection<ExternalAttachment> getAttachmentsForIssue(ExternalIssue externalIssue)
Specified by:
getAttachmentsForIssue in interface ImportDataBean

getIssueKeyRegex

public java.lang.String getIssueKeyRegex()
Specified by:
getIssueKeyRegex in interface ImportDataBean


Copyright © 2002-2010 Atlassian. All Rights Reserved.