com.atlassian.jira.bc.dataimport
Class DataImportService.ImportResult

java.lang.Object
  extended by com.atlassian.jira.bc.ServiceResultImpl
      extended by com.atlassian.jira.bc.dataimport.DataImportService.ImportResult
All Implemented Interfaces:
ServiceResult
Enclosing interface:
DataImportService

public static class DataImportService.ImportResult
extends ServiceResultImpl

Represents the result of performing an import. Clients should use the provided DataImportService.ImportResult.Builder to construct an instance of this class. It contains a general collection of errors to display in the UI.

It can also return a more specific error message via the DataImportService.ImportError to indicate a large problem during the import which will result in JIRA being locked after the import.


Nested Class Summary
static class DataImportService.ImportResult.Builder
           
 
Method Summary
 DataImportService.ImportError getImportError()
           
 DataImportParams getParams()
           
 String getSpecificErrorMessage()
           
 boolean isValid()
           
 
Methods inherited from class com.atlassian.jira.bc.ServiceResultImpl
getErrorCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getImportError

public DataImportService.ImportError getImportError()

getSpecificErrorMessage

public String getSpecificErrorMessage()

isValid

public boolean isValid()
Specified by:
isValid in interface ServiceResult
Overrides:
isValid in class ServiceResultImpl
Returns:
true if there are no errors, false otherwise.

getParams

public DataImportParams getParams()


Copyright © 2002-2014 Atlassian. All Rights Reserved.