public static class DataImportService.ImportResult.Builder extends Object
Constructor and Description |
---|
Builder(DataImportParams params) |
Modifier and Type | Method and Description |
---|---|
DataImportService.ImportResult.Builder |
addErrorMessage(String errorMessage) |
DataImportService.ImportResult.Builder |
addErrorMessage(String message,
ErrorCollection.Reason reason) |
DataImportService.ImportResult.Builder |
addErrorMessages(Iterable<String> errorMessages) |
DataImportService.ImportResult.Builder |
addValidationErrorMessages(Collection<String> validationErrorMessages) |
DataImportService.ImportResult |
build() |
ErrorCollection |
getErrorCollection() |
boolean |
isValid() |
void |
setSpecificError(DataImportService.ImportError error,
String specificErrorMessage) |
DataImportService.ImportResult.Builder |
withImportError(DataImportService.ImportError error) |
DataImportService.ImportResult.Builder |
withSpecificError(DataImportService.ImportError error,
String specificErrorMessage) |
public Builder(DataImportParams params)
public ErrorCollection getErrorCollection()
public DataImportService.ImportResult.Builder addErrorMessage(String errorMessage)
public DataImportService.ImportResult.Builder addErrorMessage(String message, ErrorCollection.Reason reason)
public DataImportService.ImportResult.Builder addErrorMessages(Iterable<String> errorMessages)
public void setSpecificError(DataImportService.ImportError error, String specificErrorMessage)
public DataImportService.ImportResult.Builder withSpecificError(DataImportService.ImportError error, String specificErrorMessage)
public DataImportService.ImportResult.Builder withImportError(DataImportService.ImportError error)
public DataImportService.ImportResult.Builder addValidationErrorMessages(Collection<String> validationErrorMessages)
public DataImportService.ImportResult build()
public boolean isValid()
Copyright © 2002-2024 Atlassian. All Rights Reserved.