com.atlassian.jira.imports.importer
Interface ImportDataBean

All Known Implementing Classes:
CsvDataBean, FogBugzDataBean, JBossXmlDataBean, JiraXmlImportDataBean

public interface ImportDataBean

Interface encapsulating the data to be imported.


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

Method Detail

getUsers

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

Returns:
a Collection ExternalUser objects

getProjects

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

getVersions

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

getComponents

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

getIssues

Collection 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 getIssuesIterator(ExternalProject externalProject)

cleanUp

void cleanUp()

getAttachmentsForIssue

Collection getAttachmentsForIssue(ExternalIssue externalIssue)

getIssueKeyRegex

String getIssueKeyRegex()

getLinks

Collection 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-2008 Atlassian. All Rights Reserved.