com.atlassian.jira.imports.csv
Class CsvDataBean
java.lang.Object
com.atlassian.jira.imports.csv.CsvDataBean
- All Implemented Interfaces:
- ImportDataBean
public class CsvDataBean
- extends Object
- implements ImportDataBean
Constructor Summary |
CsvDataBean(File file,
ExternalVersionMapper affectedVersionMapper,
ExternalVersionMapper fixedVersionMapper,
List userMappers,
ExternalComponentMapper componentMapper,
ExternalProjectMapper projectMapper,
ExternalIssueMapper issueMapper,
ExternalCommentMapper commentMapper,
ExternalCustomFieldValueMapper customFieldValueMapper,
Character delimiter)
|
CsvDataBean(File file,
File propertiesFile,
Locale locale,
Character delimiter)
|
CsvDataBean(File file,
Locale locale,
Character delimiter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
provider
CsvProvider provider
projectsCache
Map projectsCache
usersCache
Set usersCache
versionCache
Map versionCache
componentCache
Map componentCache
issueCache
Map issueCache
CsvDataBean
public CsvDataBean(File file,
ExternalVersionMapper affectedVersionMapper,
ExternalVersionMapper fixedVersionMapper,
List userMappers,
ExternalComponentMapper componentMapper,
ExternalProjectMapper projectMapper,
ExternalIssueMapper issueMapper,
ExternalCommentMapper commentMapper,
ExternalCustomFieldValueMapper customFieldValueMapper,
Character delimiter)
throws FileNotFoundException
- Throws:
FileNotFoundException
CsvDataBean
public CsvDataBean(File file,
Locale locale,
Character delimiter)
throws FileNotFoundException
- Throws:
FileNotFoundException
CsvDataBean
public CsvDataBean(File file,
File propertiesFile,
Locale locale,
Character delimiter)
throws FileNotFoundException,
org.apache.commons.configuration.ConfigurationException
- Throws:
FileNotFoundException
org.apache.commons.configuration.ConfigurationException
getProjects
public Collection 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 Collection getVersions(ExternalProject externalProject)
- Specified by:
getVersions
in interface ImportDataBean
- Parameters:
externalProject
- that contains versions
- Returns:
- a collection of
ExternalVersion
objects
getComponents
public Collection getComponents(ExternalProject externalProject)
- Specified by:
getComponents
in interface ImportDataBean
- Parameters:
externalProject
- containing components
- Returns:
- a collection of
ExternalComponent
getUsers
public Collection 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
getIssues
public Collection 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 Iterator getIssuesIterator(ExternalProject externalProject)
- Specified by:
getIssuesIterator
in interface ImportDataBean
cleanUp
public void cleanUp()
- Specified by:
cleanUp
in interface ImportDataBean
getAttachmentsForIssue
public Collection getAttachmentsForIssue(ExternalIssue externalIssue)
- Specified by:
getAttachmentsForIssue
in interface ImportDataBean
getIssueKeyRegex
public String getIssueKeyRegex()
- Specified by:
getIssueKeyRegex
in interface ImportDataBean
getLinks
public Collection 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 Long getTotalIssues()
- Specified by:
getTotalIssues
in interface ImportDataBean
- Returns:
- the total number of issues to be imported
getUserFieldsPrefix
protected List getUserFieldsPrefix()
getVersionFieldsPrefix
protected List getVersionFieldsPrefix()
setAffectedVersionMapper
public void setAffectedVersionMapper(SimpleExternalVersionMapper affectedVersionMapper)
setFixedVersionMapper
public void setFixedVersionMapper(SimpleExternalVersionMapper fixedVersionMapper)
setUserMappers
public void setUserMappers(List userMappers)
setComponentMapper
public void setComponentMapper(ExternalComponentMapper componentMapper)
setProjectMapper
public void setProjectMapper(ExternalProjectMapper projectMapper)
setIssueMapper
public void setIssueMapper(ExternalIssueMapper issueMapper)
setTimeEstimateConverter
public void setTimeEstimateConverter(TimeEstimateConverter timeEstimateConverter)
setCommentMapper
public void setCommentMapper(ExternalCommentMapper commentMapper)
setCustomFieldValueMapper
public void setCustomFieldValueMapper(ExternalCustomFieldValueMapper customFieldValueMapper)
Copyright © 2002-2007 Atlassian. All Rights Reserved.