com.atlassian.jira.imports.importer
Interface ImportDataBean

All Known Implementing Classes:
CsvDataBean, FogBugzDataBean

public interface ImportDataBean

Interface encapsulating the data to be imported.


Method Summary
 void cleanUp()
           
 Collection<ExternalAttachment> getAttachmentsForIssue(ExternalIssue externalIssue)
           
 Collection<ExternalComponent> getComponents(ExternalProject externalProject)
           
 String getIssueKeyRegex()
           
 Collection<ExternalIssue> getIssues(ExternalProject externalProject)
          Gets a collection of externalissues being imported for a project
 Iterator<ExternalIssue> getIssuesIterator(ExternalProject externalProject)
           
 Collection<ExternalLink> getLinks()
          get related and linked issues
 Collection<ExternalProject> getProjects()
           
 Long getTotalIssues()
           
 Collection<ExternalUser> getUsers()
          Gets a Collection of all the users being imported.
 Collection<ExternalVersion> getVersions(ExternalProject externalProject)
           
 

Method Detail

getUsers

Collection<ExternalUser> getUsers()
Gets a Collection of all the users being imported.

Returns:
a Collection ExternalUser objects

getProjects

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

getVersions

Collection<ExternalVersion> getVersions(ExternalProject externalProject)
Parameters:
externalProject - that contains versions
Returns:
a collection of ExternalVersion objects

getComponents

Collection<ExternalComponent> getComponents(ExternalProject externalProject)
Parameters:
externalProject - containing components
Returns:
a collection of ExternalComponent

getIssues

Collection<ExternalIssue> getIssues(ExternalProject externalProject)
Gets a collection of externalissues being imported for a project

Parameters:
externalProject - of the issue
Returns:
collection of ExternalIssue objects

getIssuesIterator

Iterator<ExternalIssue> getIssuesIterator(ExternalProject externalProject)

cleanUp

void cleanUp()

getAttachmentsForIssue

Collection<ExternalAttachment> getAttachmentsForIssue(ExternalIssue externalIssue)

getIssueKeyRegex

String getIssueKeyRegex()

getLinks

Collection<ExternalLink> getLinks()
get related and linked issues

Returns:
as a collection of ExternalLink objects

getTotalIssues

Long getTotalIssues()
Returns:
the total number of issues to be imported


Copyright © 2002-2009 Atlassian. All Rights Reserved.