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

java.lang.Object
  extended by com.atlassian.jira.imports.project.validation.AbstractSimpleMapperValidator
All Implemented Interfaces:
MapperValidator
Direct Known Subclasses:
GroupMapperValidator, PriorityMapperValidator, ResolutionMapperValidator

public abstract class AbstractSimpleMapperValidator
extends java.lang.Object
implements MapperValidator

Since:
v3.13

Constructor Summary
AbstractSimpleMapperValidator()
           
 
Method Summary
protected abstract  java.lang.String getEntityDoesNotExistKey()
           
protected abstract  java.lang.String getEntityName()
          Returns the name of the entity that this validator is for.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSimpleMapperValidator

public AbstractSimpleMapperValidator()
Method Detail

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 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.

getEntityDoesNotExistKey

protected abstract java.lang.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 java.lang.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-2010 Atlassian. All Rights Reserved.