Class TimeZoneDataNormalizer
- java.lang.Object
-
- com.broadleafcommerce.common.dataexport.service.specification.TimeZoneDataNormalizer
-
- All Implemented Interfaces:
ExportDataNormalizer
public class TimeZoneDataNormalizer extends Object implements 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
Constructors Constructor Description TimeZoneDataNormalizer(List<String> headerNamesToNormalize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getHeaderNamesToNormalize()
The list of header names to normalize.void
normalize(Map<String,String> row, Export export, Map<String,Object> params)
Normalizes the data under certain headers fromExportDataNormalizer.getHeaderNamesToNormalize()
.
-
-
-
Method Detail
-
normalize
public void normalize(Map<String,String> row, Export export, @Nullable Map<String,Object> params)
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
public List<String> 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
-
-