Class ExportFileWriteResponse
- java.lang.Object
-
- com.broadleafcommerce.common.dataexport.service.ExportFileWriteResponse
-
public final class ExportFileWriteResponse extends Object
Response returned byExportFileWriter
to 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 boolean
equals(Object o)
static ExportFileWriteResponse
failure(String errorMessage)
String
getErrorMessage()
Ifsuccessful
is false, then this should contain a description of the error encountered when attempting to write to the file.int
hashCode()
boolean
isSuccessful()
True if the write operation completed successfully, false otherwise.static ExportFileWriteResponse
success()
String
toString()
-
-
-
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()
Ifsuccessful
is false, then this should contain a description of the error encountered when attempting to write to the file. This will be used byExportManager
and set on the correspondingExport
.
-
-