public class DefaultImportResultHandler extends Object implements ImportResultHandler
SetupImport
and ImportAll
for
some consistent error handling.Constructor and Description |
---|
DefaultImportResultHandler(JohnsonProvider johnsonProvider,
LicenseJohnsonEventRaiser licenseJohnsonEventRaiser) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleErrorResult(DataImportService.ImportResult importResult,
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 DefaultImportResultHandler(JohnsonProvider johnsonProvider, LicenseJohnsonEventRaiser licenseJohnsonEventRaiser)
public boolean handleErrorResult(DataImportService.ImportResult importResult, I18nHelper i18n, ErrorCollection errorCollection)
ImportResultHandler
handleErrorResult
in interface ImportResultHandler
importResult
- The import result with validation errors.i18n
- I18n bean needed to i18nize any error messageserrorCollection
- The error collection to populate with specific error messagesCopyright © 2002-2018 Atlassian. All Rights Reserved.