public abstract class

AbstractSimpleMapperValidator

extends Object
implements MapperValidator
java.lang.Object
   ↳ com.atlassian.jira.imports.project.validation.AbstractSimpleMapperValidator
Known Direct Subclasses

Summary

Public Constructors
AbstractSimpleMapperValidator()
Public Methods
MessageSet validateMappings(I18nHelper i18nHelper, SimpleProjectImportIdMapper simpleProjectImportIdMapper)
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.
Protected Methods
abstract String getEntityDoesNotExistKey()
abstract String getEntityName()
Returns the name of the entity that this validator is for.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.imports.project.validation.MapperValidator

Public Constructors

public AbstractSimpleMapperValidator ()

Public Methods

public MessageSet validateMappings (I18nHelper i18nHelper, SimpleProjectImportIdMapper simpleProjectImportIdMapper)

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.

Parameters
i18nHelper used to resolve i18n messages
simpleProjectImportIdMapper 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.

Protected Methods

protected abstract String getEntityDoesNotExistKey ()

Returns
  • gets the i18n key that should be added to the error message set if the mapping is not valid

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.