public class ProjectImportMapperImpl extends Object implements ProjectImportMapper
Constructor and Description |
---|
ProjectImportMapperImpl(UserUtil userUtil,
GroupManager groupManager) |
Modifier and Type | Method and Description |
---|---|
void |
clearMappedValues()
This will clear any mapped data that may have been entered into the mappers.
|
SimpleProjectImportIdMapper |
getChangeGroupMapper()
Gets a ProjectImportIdMapper that maps the change group id's from the old backup project data to the id's
generated when adding the change group data to the new JIRA instance.
|
SimpleProjectImportIdMapper |
getCommentMapper()
Gets a ProjectImportIdMapper that maps the Comment id's from the old backup project data to the id's
in the current system.
|
SimpleProjectImportIdMapper |
getComponentMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the project components "in-use" (required) by the backup projects
data.
|
CustomFieldMapper |
getCustomFieldMapper()
Gets a CustomFieldMapper which, when fully populated, indicates all the custom fields "in-use" (required) by the backup projects
data.
|
CustomFieldOptionMapper |
getCustomFieldOptionMapper()
Gets a CustomFieldOptionMapper which, when fully populated, indicates how to map the IDs of the Custom Field Options
in the Import file, to the equivalent Option in the current JIRA.
|
GroupMapper |
getGroupMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the groups "in-use" (required) by the backup projects
data.
|
IssueLinkTypeMapper |
getIssueLinkTypeMapper()
Gets a ProjectImportIdMapper that maps the IssueLinkType id's from the old backup project data to the id's
in the current system.
|
SimpleProjectImportIdMapper |
getIssueMapper()
Gets a ProjectImportIdMapper that maps the issue id's from the old backup project data to the id's
generated when adding the issue data to the new JIRA instance.
|
SimpleProjectImportIdMapper |
getIssueSecurityLevelMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the issue security levels "in-use" (required) by the backup projects
data.
|
IssueTypeMapper |
getIssueTypeMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the issue issue types "in-use" (required) by the backup projects
data.
|
<T extends ProjectImportIdMapper> |
getNamedIdMapper(String name)
Get a mapper from the list of mappers.
|
SimpleProjectImportIdMapper |
getPriorityMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the issue priorities "in-use" (required) by the backup projects
data.
|
SimpleProjectImportIdMapper |
getProjectMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the projects from the backup file and
the mapped projects in the current JIRA instance.
|
ProjectRoleActorMapper |
getProjectRoleActorMapper()
Gets a ProjectRoleActorMapper which, when fully populated, indicates all the ProjectRoleActors "in-use" (optional) by the backup
projects data's issues.
|
SimpleProjectImportIdMapper |
getProjectRoleMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the project roles "in-use" (required) by the backup projects
data.
|
SimpleProjectImportIdMapper |
getResolutionMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the issue resolutions "in-use" (required) by the backup projects
data.
|
StatusMapper |
getStatusMapper()
Gets a StatusMapper which, when fully populated, indicates all the issue statuses "in-use" (required) by the backup projects
data.
|
UserMapper |
getUserMapper()
Gets a UserMapper which, when fully populated, indicates all the users "in-use" (required) by the backup
projects data's issues.
|
SimpleProjectImportIdMapper |
getVersionMapper()
Gets a ProjectImportIdMapper which, when fully populated, indicates all the project versions "in-use" (required) by the backup projects
data.
|
ProjectImportIdMapper |
putNamedIdMapper(String name,
ProjectImportIdMapper mapper)
Add a mapper to the list of mappers.
|
String |
toString() |
public ProjectImportMapperImpl(UserUtil userUtil, GroupManager groupManager)
public SimpleProjectImportIdMapper getIssueMapper()
ProjectImportMapper
NOTE: This is only populated once the issues have been persisted into the new system.
getIssueMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getProjectMapper()
ProjectImportMapper
getProjectMapper
in interface ProjectImportMapper
public UserMapper getUserMapper()
ProjectImportMapper
getUserMapper
in interface ProjectImportMapper
public ProjectRoleActorMapper getProjectRoleActorMapper()
ProjectImportMapper
getProjectRoleActorMapper
in interface ProjectImportMapper
public GroupMapper getGroupMapper()
ProjectImportMapper
getGroupMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getIssueSecurityLevelMapper()
ProjectImportMapper
getIssueSecurityLevelMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getVersionMapper()
ProjectImportMapper
getVersionMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getComponentMapper()
ProjectImportMapper
getComponentMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getProjectRoleMapper()
ProjectImportMapper
getProjectRoleMapper
in interface ProjectImportMapper
public CustomFieldMapper getCustomFieldMapper()
ProjectImportMapper
getCustomFieldMapper
in interface ProjectImportMapper
public CustomFieldOptionMapper getCustomFieldOptionMapper()
ProjectImportMapper
getCustomFieldOptionMapper
in interface ProjectImportMapper
public IssueTypeMapper getIssueTypeMapper()
ProjectImportMapper
getIssueTypeMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getPriorityMapper()
ProjectImportMapper
getPriorityMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getResolutionMapper()
ProjectImportMapper
getResolutionMapper
in interface ProjectImportMapper
public StatusMapper getStatusMapper()
ProjectImportMapper
getStatusMapper
in interface ProjectImportMapper
public IssueLinkTypeMapper getIssueLinkTypeMapper()
ProjectImportMapper
getIssueLinkTypeMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getChangeGroupMapper()
ProjectImportMapper
NOTE: This is only populated once the change groups have been persisted into the new system.
getChangeGroupMapper
in interface ProjectImportMapper
public SimpleProjectImportIdMapper getCommentMapper()
ProjectImportMapper
getCommentMapper
in interface ProjectImportMapper
public void clearMappedValues()
ProjectImportMapper
clearMappedValues
in interface ProjectImportMapper
public ProjectImportIdMapper putNamedIdMapper(String name, ProjectImportIdMapper mapper)
ProjectImportMapper
putNamedIdMapper
in interface ProjectImportMapper
name
- The name for this mapper. Plugins should namespace their mappers to avoid conflicts.mapper
- A ProjectImportIdMapper
public <T extends ProjectImportIdMapper> T getNamedIdMapper(String name)
ProjectImportMapper
getNamedIdMapper
in interface ProjectImportMapper
name
- The name for this mapper. Plugins should namespace their mappers to avoid conflicts.Copyright © 2002-2021 Atlassian. All Rights Reserved.