com.atlassian.jira.imports.project.validation
Class AbstractSimpleMapperValidator
java.lang.Object
com.atlassian.jira.imports.project.validation.AbstractSimpleMapperValidator
- All Implemented Interfaces:
- MapperValidator
- Direct Known Subclasses:
- GroupMapperValidator, PriorityMapperValidator, ResolutionMapperValidator
public abstract class AbstractSimpleMapperValidator
- extends Object
- implements MapperValidator
- Since:
- v3.13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleMapperValidator
public AbstractSimpleMapperValidator()
validateMappings
public MessageSet validateMappings(I18nHelper i18nHelper,
SimpleProjectImportIdMapper simpleProjectImportIdMapper)
- Description copied from interface:
MapperValidator
- This is a simple validation method that will only check to see that all the required values of the
provided mapper have been mapped to the current instance of JIRA.
If there is a required value that is missing the message collection will contain an error.
- Specified by:
validateMappings
in interface MapperValidator
- Parameters:
i18nHelper
- used to resolve i18n messagessimpleProjectImportIdMapper
- the mapper that will be inspected to make sure that all its required values
are mapped.
- Returns:
- a MessageSet that will contain any errors or warnings that have been encountered.
getEntityDoesNotExistKey
protected abstract String getEntityDoesNotExistKey()
- Returns:
- gets the i18n key that should be added to the error message set if the mapping is not valid
getEntityName
protected abstract String getEntityName()
- Returns the name of the entity that this validator is for.
eg "Group", "Project Role", etc.
- Returns:
- the name of the entity that this validator is for.
Copyright © 2002-2009 Atlassian. All Rights Reserved.