Class TimeZoneDataNormalizer
java.lang.Object
com.broadleafcommerce.common.dataexport.service.specification.TimeZoneDataNormalizer
- All Implemented Interfaces:
ExportDataNormalizer
This normalizer is used to format the date values for specified time-zone. For example:
"2020-06-23T08:00:00Z" -> "2020-06-23T04:00:00-04:00[America/New_York]"
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TimeZoneDataNormalizer
-
-
Method Details
-
normalize
Description copied from interface:ExportDataNormalizer
Normalizes the data under certain headers fromExportDataNormalizer.getHeaderNamesToNormalize()
.- Specified by:
normalize
in interfaceExportDataNormalizer
- Parameters:
row
- the row data to write to the fileexport
- theExport
that is being processedparams
- (optional) a map of additional parameters
-
getHeaderNamesToNormalize
Description copied from interface:ExportDataNormalizer
The list of header names to normalize. This list is used to retrieve the value from the row map.- Specified by:
getHeaderNamesToNormalize
in interfaceExportDataNormalizer
- Returns:
- the list of header names to normalize
-