public interface

ImportResultHandler

com.atlassian.jira.web.action.util.ImportResultHandler
Known Indirect Subclasses

Class Overview

A generic handler to deal with larger problems during a data import.

Summary

Public Methods
boolean handleErrorResult(DataImportService.ImportResult lastResult, I18nHelper i18n, ErrorCollection errorCollection)
Given an import result this method will take the appropriate actions to deal with errors such as throwing up JohnsonEvents or populating the passed in errorcollection with the appropriate errors.

Public Methods

public boolean handleErrorResult (DataImportService.ImportResult lastResult, I18nHelper i18n, ErrorCollection errorCollection)

Given an import result this method will take the appropriate actions to deal with errors such as throwing up JohnsonEvents or populating the passed in errorcollection with the appropriate errors.

Parameters
lastResult The import result with validation errors.
i18n I18n bean needed to i18nize any error messages
errorCollection The error collection to populate with specific error messages
Returns
  • true if a JohnsonEvent was created meaning callers should probably redirect to a generic error page to see the JohnsonEvent.