com.atlassian.jira.imports.project.mapper
Class AutomaticDataMapperImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.mapper.AutomaticDataMapperImpl
All Implemented Interfaces:
AutomaticDataMapper

public class AutomaticDataMapperImpl
extends Object
implements AutomaticDataMapper

Since:
v3.13

Constructor Summary
AutomaticDataMapperImpl(ConstantsManager constantsManager, CustomFieldManager customFieldManager, CustomFieldMapperValidator customFieldMapperValidator, ProjectManager projectManager, IssueTypeImportHelper issueTypeImportHelper, StatusMapperValidator statusMapperValidator, ProjectRoleManager projectRoleManager, IssueLinkTypeManager issueLinkTypeManager, SubTaskManager subTaskManager, IssueSecurityLevelManager issueSecurityLevelManager, IssueSecuritySchemeManager issueSecuritySchemeManager)
           
 
Method Summary
 void mapCustomFieldOptions(BackupProject backupProject, CustomFieldOptionMapper customFieldOptionMapper, CustomFieldMapper customFieldMapper, IssueTypeMapper issueTypeMapper)
          Automatically map custom field options in the given mapper.
 void mapCustomFields(BackupProject backupProject, CustomFieldMapper customFieldMapper, IssueTypeMapper issueTypeMapper)
          Automatically map Custom Fields in the given mapper.
 void mapIssueLinkTypes(IssueLinkTypeMapper issueLinkTypeMapper)
          Populates the issueLinkTypeMapper with the issue link type mappings that are relevant to the backup project.
 void mapIssueSecurityLevels(String projectKey, SimpleProjectImportIdMapper securityLevelMapper)
          Automatically map issue security levels in the given mapper.
 void mapIssueTypes(BackupProject backupProject, IssueTypeMapper issueTypeMapper)
          Populates the issueTypeMapper with the issue type mappings that are relevant to the backup project.
 void mapPriorities(SimpleProjectImportIdMapper priorityMapper)
          Automatically map Priorities in the given mapper.
 void mapProjectRoles(SimpleProjectImportIdMapper projectRoleMapper)
          Automatically map project roles in the given mapper.
 void mapProjects(SimpleProjectImportIdMapper projectMapper)
          Automatically map Projects in the given mapper.
 void mapResolutions(SimpleProjectImportIdMapper resolutionMapper)
          Automatically map Resolutions in the given mapper.
 void mapStatuses(BackupProject backupProject, StatusMapper statusMapper, IssueTypeMapper issueTypeMapper)
          Automatically map Statuses in the given mapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticDataMapperImpl

public AutomaticDataMapperImpl(ConstantsManager constantsManager,
                               CustomFieldManager customFieldManager,
                               CustomFieldMapperValidator customFieldMapperValidator,
                               ProjectManager projectManager,
                               IssueTypeImportHelper issueTypeImportHelper,
                               StatusMapperValidator statusMapperValidator,
                               ProjectRoleManager projectRoleManager,
                               IssueLinkTypeManager issueLinkTypeManager,
                               SubTaskManager subTaskManager,
                               IssueSecurityLevelManager issueSecurityLevelManager,
                               IssueSecuritySchemeManager issueSecuritySchemeManager)
Method Detail

mapIssueTypes

public void mapIssueTypes(BackupProject backupProject,
                          IssueTypeMapper issueTypeMapper)
Description copied from interface: AutomaticDataMapper
Populates the issueTypeMapper with the issue type mappings that are relevant to the backup project. This mapper does not add validation errors but will only map issue types that are valid in the system.

Specified by:
mapIssueTypes in interface AutomaticDataMapper
Parameters:
backupProject - the backup project that will identify the issue type scheme we will use for mapping
issueTypeMapper - the issue type mapper to populate with issue types from the system

mapIssueLinkTypes

public void mapIssueLinkTypes(IssueLinkTypeMapper issueLinkTypeMapper)
Description copied from interface: AutomaticDataMapper
Populates the issueLinkTypeMapper with the issue link type mappings that are relevant to the backup project. This mapper does not add validation errors but will only map issue link types that are valid to be used.

Specified by:
mapIssueLinkTypes in interface AutomaticDataMapper
Parameters:
issueLinkTypeMapper - the issue link type mapper to populate.

mapPriorities

public void mapPriorities(SimpleProjectImportIdMapper priorityMapper)
Description copied from interface: AutomaticDataMapper
Automatically map Priorities in the given mapper. Looks at all priorities that are registered in the mapper from the import file, and maps them to a priority in the current system if possible.

Specified by:
mapPriorities in interface AutomaticDataMapper
Parameters:
priorityMapper - ProjectImportIdMapper with old values registered from the import file.

mapResolutions

public void mapResolutions(SimpleProjectImportIdMapper resolutionMapper)
Description copied from interface: AutomaticDataMapper
Automatically map Resolutions in the given mapper. Looks at all Resolutions that are registered in the mapper from the import file, and maps them to a Resolution in the current system if possible.

Specified by:
mapResolutions in interface AutomaticDataMapper
Parameters:
resolutionMapper - ProjectImportIdMapper with old values registered from the import file.

mapStatuses

public void mapStatuses(BackupProject backupProject,
                        StatusMapper statusMapper,
                        IssueTypeMapper issueTypeMapper)
Description copied from interface: AutomaticDataMapper
Automatically map Statuses in the given mapper. Looks at all Statuses that are registered in the mapper from the import file, and maps them to a Status in the current system if possible.

Specified by:
mapStatuses in interface AutomaticDataMapper
Parameters:
backupProject - the backup project that will identify the workflow scheme we will use for mapping
statusMapper - StatusMapper with old values registered from the import file.
issueTypeMapper - that has ALREADY been populated and mapped.

mapProjectRoles

public void mapProjectRoles(SimpleProjectImportIdMapper projectRoleMapper)
Description copied from interface: AutomaticDataMapper
Automatically map project roles in the given mapper. Looks at all project roles that are registered in the mapper from the import file, and maps them to a project role in the current system if possible.

Specified by:
mapProjectRoles in interface AutomaticDataMapper
Parameters:
projectRoleMapper - the mapper that contains the registered values and will be mapped to.

mapIssueSecurityLevels

public void mapIssueSecurityLevels(String projectKey,
                                   SimpleProjectImportIdMapper securityLevelMapper)
Description copied from interface: AutomaticDataMapper
Automatically map issue security levels in the given mapper.

Specified by:
mapIssueSecurityLevels in interface AutomaticDataMapper
Parameters:
projectKey - the backup project key that will identify the issue security level scheme we will use for mapping
securityLevelMapper - the mapper that contains the registered values wand will be mapped to.

mapProjects

public void mapProjects(SimpleProjectImportIdMapper projectMapper)
Description copied from interface: AutomaticDataMapper
Automatically map Projects in the given mapper. Looks at all Projects that are registered in the mapper from the import file, and maps them to a Project in the current system if possible, this is done by matching the projects key.

Specified by:
mapProjects in interface AutomaticDataMapper
Parameters:
projectMapper - ProjectImportIdMapper with old values registered from the import file.

mapCustomFields

public void mapCustomFields(BackupProject backupProject,
                            CustomFieldMapper customFieldMapper,
                            IssueTypeMapper issueTypeMapper)
Description copied from interface: AutomaticDataMapper
Automatically map Custom Fields in the given mapper. Looks at all Custom Fields that are required in the mapper from the import file, and maps them to a Custom Field in the current system if possible.

Specified by:
mapCustomFields in interface AutomaticDataMapper
Parameters:
backupProject - the backup project that will identify the workflow scheme we will use for mapping
customFieldMapper - with old values registered from the import file.
issueTypeMapper - that has ALREADY been populated and mapped.

mapCustomFieldOptions

public void mapCustomFieldOptions(BackupProject backupProject,
                                  CustomFieldOptionMapper customFieldOptionMapper,
                                  CustomFieldMapper customFieldMapper,
                                  IssueTypeMapper issueTypeMapper)
Description copied from interface: AutomaticDataMapper
Automatically map custom field options in the given mapper. Looks at all the Custom Field Options that are required in the mapper from the import file, and maps them to a Custom Field option in the current system if possible.

Specified by:
mapCustomFieldOptions in interface AutomaticDataMapper
Parameters:
backupProject - the backup project that will identify the workflow scheme we will use for mapping
customFieldOptionMapper - with old values registered from the import file.
customFieldMapper - a fully mapped and validated custom field mapper.
issueTypeMapper - a fully mapped and validated issue type mapper.


Copyright © 2002-2012 Atlassian. All Rights Reserved.