Class RowGenerationResponse
- java.lang.Object
-
- com.broadleafcommerce.common.dataexport.service.RowGenerationResponse
-
public final class RowGenerationResponse extends Object
A response returned byExportProcessor.generateRows(List, Export)
indicating the results of producing some rows in an export.- Author:
- Samarth Dhruva (samarthd)
- See Also:
ExportProcessor.generateRows(List, Export)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static RowGenerationResponse
failure(String errorMessage)
String
getErrorMessage()
Ifsuccessful
is false, then this should contain a description of the error encountered when attempting to produce the rows.List<Map<String,String>>
getRows()
Ifsuccessful
is true, then this should contain all of the generated rows.int
hashCode()
boolean
isSuccessful()
True if the rows were produced successfully, false otherwise.static RowGenerationResponse
success(List<Map<String,String>> rows)
String
toString()
-
-
-
Method Detail
-
success
public static RowGenerationResponse success(List<Map<String,String>> rows)
-
failure
public static RowGenerationResponse failure(String errorMessage)
-
isSuccessful
public boolean isSuccessful()
True if the rows were produced successfully, false otherwise.
-
getRows
public List<Map<String,String>> getRows()
Ifsuccessful
is true, then this should contain all of the generated rows.
-
getErrorMessage
public String getErrorMessage()
Ifsuccessful
is false, then this should contain a description of the error encountered when attempting to produce the rows. This will be used byExportManager
and set on the correspondingExport
.
-
-