Class DataFeedFileTransformResponseDetails
java.lang.Object
com.broadleafcommerce.datafeed.service.publisher.file.support.DataFeedFileTransformResponseDetails
A payload describing the results of a
DataFeedFileTransformer.transform(FilePublishContext)
operation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
If errors are encountered during the run of this file transformation process (ex:isContainsErrors()
is true), details should be added here.int
hashCode()
boolean
A simple flag indicating whether the file transformation process encountered any errors.boolean
In some rare cases, the transform step may find that it naturally didn't have any data to operate on, or didn't have any data to write after transformation.void
setContainsErrors
(boolean containsErrors) A simple flag indicating whether the file transformation process encountered any errors.void
setErrorDetails
(List<String> errorDetails) If errors are encountered during the run of this file transformation process (ex:isContainsErrors()
is true), details should be added here.void
setResultShouldBeSubmitted
(boolean resultShouldBeSubmitted) In some rare cases, the transform step may find that it naturally didn't have any data to operate on, or didn't have any data to write after transformation.toString()
-
Constructor Details
-
DataFeedFileTransformResponseDetails
public DataFeedFileTransformResponseDetails()
-
-
Method Details
-
isResultShouldBeSubmitted
public boolean isResultShouldBeSubmitted()In some rare cases, the transform step may find that it naturally didn't have any data to operate on, or didn't have any data to write after transformation. In such cases, the final file would be empty, and thus we should not upload anything to the remote provider and simply exit with success. This flag should be set to true in such cases.- Returns:
- whether the resulting file from the transform step should be submitted to the destination provider
-
isContainsErrors
public boolean isContainsErrors()A simple flag indicating whether the file transformation process encountered any errors.- Returns:
- whether this file transformation process experienced errors
- See Also:
-
getErrorDetails
If errors are encountered during the run of this file transformation process (ex:isContainsErrors()
is true), details should be added here. Otherwise, this will be empty.- Returns:
- details about any errors experienced by this file transformation process
- See Also:
-
setResultShouldBeSubmitted
public void setResultShouldBeSubmitted(boolean resultShouldBeSubmitted) In some rare cases, the transform step may find that it naturally didn't have any data to operate on, or didn't have any data to write after transformation. In such cases, the final file would be empty, and thus we should not upload anything to the remote provider and simply exit with success. This flag should be set to true in such cases.- Parameters:
resultShouldBeSubmitted
- whether the resulting file from the transform step should be submitted to the destination provider
-
setContainsErrors
public void setContainsErrors(boolean containsErrors) A simple flag indicating whether the file transformation process encountered any errors.- Parameters:
containsErrors
- whether this file transformation process experienced errors- See Also:
-
setErrorDetails
If errors are encountered during the run of this file transformation process (ex:isContainsErrors()
is true), details should be added here. Otherwise, this will be empty.- Parameters:
errorDetails
- details about any errors experienced by this file transformation process- See Also:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-