public class AutomaticDataMapperImpl extends Object implements AutomaticDataMapper
Constructor and Description |
---|
AutomaticDataMapperImpl(ConstantsManager constantsManager,
CustomFieldManager customFieldManager,
CustomFieldMapperValidator customFieldMapperValidator,
ProjectManager projectManager,
IssueTypeImportHelper issueTypeImportHelper,
StatusMapperValidator statusMapperValidator,
ProjectRoleManager projectRoleManager,
IssueLinkTypeManager issueLinkTypeManager,
SubTaskManager subTaskManager,
IssueSecurityLevelManager issueSecurityLevelManager,
IssueSecuritySchemeManager issueSecuritySchemeManager,
FieldConfigSchemeManager fieldConfigSchemeManager) |
Modifier and Type | Method and Description |
---|---|
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.
|
public AutomaticDataMapperImpl(ConstantsManager constantsManager, CustomFieldManager customFieldManager, CustomFieldMapperValidator customFieldMapperValidator, ProjectManager projectManager, IssueTypeImportHelper issueTypeImportHelper, StatusMapperValidator statusMapperValidator, ProjectRoleManager projectRoleManager, IssueLinkTypeManager issueLinkTypeManager, SubTaskManager subTaskManager, IssueSecurityLevelManager issueSecurityLevelManager, IssueSecuritySchemeManager issueSecuritySchemeManager, FieldConfigSchemeManager fieldConfigSchemeManager)
public void mapIssueTypes(BackupProject backupProject, IssueTypeMapper issueTypeMapper)
AutomaticDataMapper
This mapper does not add validation errors but will only map issue types that are valid in the system.
mapIssueTypes
in interface AutomaticDataMapper
backupProject
- the backup project that will identify the issue type scheme we will use for mappingissueTypeMapper
- the issue type mapper to populate with issue types from the systempublic void mapIssueLinkTypes(IssueLinkTypeMapper issueLinkTypeMapper)
AutomaticDataMapper
This mapper does not add validation errors but will only map issue link types that are valid to be used.
mapIssueLinkTypes
in interface AutomaticDataMapper
issueLinkTypeMapper
- the issue link type mapper to populate.public void mapPriorities(SimpleProjectImportIdMapper priorityMapper)
AutomaticDataMapper
mapPriorities
in interface AutomaticDataMapper
priorityMapper
- ProjectImportIdMapper with old values registered from the import file.public void mapResolutions(SimpleProjectImportIdMapper resolutionMapper)
AutomaticDataMapper
mapResolutions
in interface AutomaticDataMapper
resolutionMapper
- ProjectImportIdMapper with old values registered from the import file.public void mapStatuses(BackupProject backupProject, StatusMapper statusMapper, IssueTypeMapper issueTypeMapper)
AutomaticDataMapper
mapStatuses
in interface AutomaticDataMapper
backupProject
- the backup project that will identify the workflow scheme we will use for mappingstatusMapper
- StatusMapper with old values registered from the import file.issueTypeMapper
- that has ALREADY been populated and mapped.public void mapProjectRoles(SimpleProjectImportIdMapper projectRoleMapper)
AutomaticDataMapper
mapProjectRoles
in interface AutomaticDataMapper
projectRoleMapper
- the mapper that contains the registered values and will be mapped to.public void mapIssueSecurityLevels(String projectKey, SimpleProjectImportIdMapper securityLevelMapper)
AutomaticDataMapper
mapIssueSecurityLevels
in interface AutomaticDataMapper
projectKey
- the backup project key that will identify the issue security level scheme we will use for mappingsecurityLevelMapper
- the mapper that contains the registered values wand will be mapped to.public void mapProjects(SimpleProjectImportIdMapper projectMapper)
AutomaticDataMapper
mapProjects
in interface AutomaticDataMapper
projectMapper
- ProjectImportIdMapper with old values registered from the import file.public void mapCustomFields(BackupProject backupProject, CustomFieldMapper customFieldMapper, IssueTypeMapper issueTypeMapper)
AutomaticDataMapper
mapCustomFields
in interface AutomaticDataMapper
backupProject
- the backup project that will identify the workflow scheme we will use for mappingcustomFieldMapper
- with old values registered from the import file.issueTypeMapper
- that has ALREADY been populated and mapped.public void mapCustomFieldOptions(BackupProject backupProject, CustomFieldOptionMapper customFieldOptionMapper, CustomFieldMapper customFieldMapper, IssueTypeMapper issueTypeMapper)
mapCustomFieldOptions
in interface AutomaticDataMapper
backupProject
- the backup project that will identify the workflow scheme we will use for mappingcustomFieldOptionMapper
- 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-2017 Atlassian. All Rights Reserved.