Class ExportFileWriteResponse
- java.lang.Object
-
- com.broadleafcommerce.common.dataexport.service.ExportFileWriteResponse
-
public final class ExportFileWriteResponse extends Object
Response returned byExportFileWriterto indicate the results of writing to a file.- Author:
- Samarth Dhruva (samarthd)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ExportFileWriteResponsefailure(String errorMessage)StringgetErrorMessage()Ifsuccessfulis false, then this should contain a description of the error encountered when attempting to write to the file.inthashCode()booleanisSuccessful()True if the write operation completed successfully, false otherwise.static ExportFileWriteResponsesuccess()StringtoString()
-
-
-
Method Detail
-
success
public static ExportFileWriteResponse success()
-
failure
public static ExportFileWriteResponse failure(String errorMessage)
-
isSuccessful
public boolean isSuccessful()
True if the write operation completed successfully, false otherwise.
-
getErrorMessage
public String getErrorMessage()
Ifsuccessfulis false, then this should contain a description of the error encountered when attempting to write to the file. This will be used byExportManagerand set on the correspondingExport.
-
-