public class

IssueTypeMapperValidatorImpl

extends Object
implements IssueTypeMapperValidator
java.lang.Object
   ↳ com.atlassian.jira.imports.project.validation.IssueTypeMapperValidatorImpl

Summary

Public Constructors
IssueTypeMapperValidatorImpl(ConstantsManager constantsManager, IssueTypeImportHelper issueTypeImportHelper, SubTaskManager subTaskManager)
Public Methods
MessageSet validateMappings(I18nHelper i18nHelper, BackupProject backupProject, IssueTypeMapper issueTypeMapper)
Makes sure that the issue types that are required:
  • exists in the current instance
  • is valid for the current projects issue type scheme
  • is or is not a subtask based on how the issue type was defined in the backup system
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.imports.project.validation.IssueTypeMapperValidator

Public Constructors

public IssueTypeMapperValidatorImpl (ConstantsManager constantsManager, IssueTypeImportHelper issueTypeImportHelper, SubTaskManager subTaskManager)

Public Methods

public MessageSet validateMappings (I18nHelper i18nHelper, BackupProject backupProject, IssueTypeMapper issueTypeMapper)

Makes sure that the issue types that are required:

  • exists in the current instance
  • is valid for the current projects issue type scheme
  • is or is not a subtask based on how the issue type was defined in the backup system

Parameters
i18nHelper helper bean that allows us to get i18n translations
backupProject is the backup project the data is mapped from
issueTypeMapper is the populated issueTypeMapper
Returns
  • a MessageSet that will contain any generated errors (which should stop the import) or warnings (which should be displayed to the user). The error and warning collection's will be empty if all validation passes.