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 booleanequals(Object o)static RowGenerationResponsefailure(String errorMessage)StringgetErrorMessage()Ifsuccessfulis false, then this should contain a description of the error encountered when attempting to produce the rows.List<Map<String,String>>getRows()Ifsuccessfulis true, then this should contain all of the generated rows.inthashCode()booleanisSuccessful()True if the rows were produced successfully, false otherwise.static RowGenerationResponsesuccess(List<Map<String,String>> rows)StringtoString()
-
-
-
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()
Ifsuccessfulis true, then this should contain all of the generated rows.
-
getErrorMessage
public String getErrorMessage()
Ifsuccessfulis false, then this should contain a description of the error encountered when attempting to produce the rows. This will be used byExportManagerand set on the correspondingExport.
-
-