com.atlassian.jira.imports.project.validation
Class CustomFieldOptionMapperValidatorImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.validation.CustomFieldOptionMapperValidatorImpl
All Implemented Interfaces:
CustomFieldOptionMapperValidator

public class CustomFieldOptionMapperValidatorImpl
extends Object
implements CustomFieldOptionMapperValidator

Since:
v3.13

Constructor Summary
CustomFieldOptionMapperValidatorImpl(OptionsManager optionsManager)
           
 
Method Summary
 void validateMappings(I18nHelper i18nHelper, BackupProject backupProject, CustomFieldOptionMapper customFieldOptionMapper, CustomFieldMapper customFieldMapper, Map customFieldValueMessageSets)
          Validates the automatic mappings that have been created to see if the mappings are relevant in the current JIRA instances setup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFieldOptionMapperValidatorImpl

public CustomFieldOptionMapperValidatorImpl(OptionsManager optionsManager)
Method Detail

validateMappings

public void validateMappings(I18nHelper i18nHelper,
                             BackupProject backupProject,
                             CustomFieldOptionMapper customFieldOptionMapper,
                             CustomFieldMapper customFieldMapper,
                             Map customFieldValueMessageSets)
Description copied from interface: CustomFieldOptionMapperValidator
Validates the automatic mappings that have been created to see if the mappings are relevant in the current JIRA instances setup. Basically we just check that required Custom Field Options exist in the new system. However, it is possible to get invalid data in a Custom Field Value record. If a "required" option is not actually valid in the correct context, then we only mark this as a warning, as this data can be ignored in the import.

Specified by:
validateMappings in interface CustomFieldOptionMapperValidator
Parameters:
i18nHelper - used to i18n error messages
backupProject - used to determine the project portion which helps identify which custom field configuration we are using
customFieldOptionMapper - the mapper that is being validated, should have been mapped and flagged as required.
customFieldMapper - a fully populated and validated custom field mapper.
customFieldValueMessageSets - this is a map of that is keyed by the old custom field id who's value is a message set of errors and warnings about that custom field. This is where options related errors and warnings will be reported.


Copyright © 2002-2012 Atlassian. All Rights Reserved.