com.atlassian.jira.web.action.util
Class DefaultImportResultHandler
java.lang.Object
com.atlassian.jira.web.action.util.DefaultImportResultHandler
- All Implemented Interfaces:
- ImportResultHandler
public class DefaultImportResultHandler
- extends Object
- implements ImportResultHandler
An error handler to be used both by SetupImport
and
ImportAll
for some consistent error handling.
- Since:
- v4.4
Method Summary |
boolean |
handleErrorResult(javax.servlet.ServletContext context,
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultImportResultHandler
public DefaultImportResultHandler(JiraLicenseService jiraLicenseService,
LicenseJohnsonEventRaiser licenseJohnsonEventRaiser,
ExternalLinkUtil externalLinkUtil,
BuildUtilsInfo buildUtilsInfo)
handleErrorResult
public boolean handleErrorResult(javax.servlet.ServletContext context,
DataImportService.ImportResult lastResult,
I18nHelper i18n,
ErrorCollection errorCollection)
- Description copied from interface:
ImportResultHandler
- 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.
- Specified by:
handleErrorResult
in interface ImportResultHandler
- Parameters:
context
- The servlet context needed to throw up a JohnsonEvent.lastResult
- The import result with validation errors.i18n
- I18n bean needed to i18nize any error messageserrorCollection
- 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.
Copyright © 2002-2011 Atlassian. All Rights Reserved.