Class ClassificationTypeSystemSheetCompressor
java.lang.Object
com.hybris.backoffice.excel.template.populator.ClassificationTypeSystemSheetCompressor
Compresses ClassificationTypeSystem rows by classification attribute. Some column values (as in
For example the values in column:
FULL_NAME and
ATTRIBUTE_LOC_LANG) differ for each row, thus they will be merged to a single cell containing a collection of those
elements using CollectionFormatter. For example the values in column:
+------------------+ | AttributeLocLang | +------------------+ | en | | de | | fr | +------------------+will be compressed to:
+------------------+
| AttributeLocLang |
+------------------+
| {en},{de},{fr} |
+------------------+
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final BiFunction<String,String, String> protected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCollectionFormatter(CollectionFormatter collectionFormatter)
-
Field Details
-
MERGING_SYMBOL
- See Also:
-
MERGING_STRATEGY
-
-
Constructor Details
-
ClassificationTypeSystemSheetCompressor
public ClassificationTypeSystemSheetCompressor()
-
-
Method Details
-
compress
public Collection<Map<ExcelTemplateConstants.ClassificationTypeSystemColumns,String>> compress(@Nonnull Collection<Map<ExcelTemplateConstants.ClassificationTypeSystemColumns, String>> rows) -
setCollectionFormatter
-