Class SapClassificationAttributeTranslator
- java.lang.Object
-
- de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
-
- de.hybris.platform.sap.sapmodel.inbound.SapClassificationAttributeTranslator
-
- All Implemented Interfaces:
SpecialValueTranslator
public class SapClassificationAttributeTranslator extends AbstractSpecialValueTranslator
The SapClassificationAttributeTranslator translator is called from data hub before the ClassificationAttributeTranslator is being called. This translator removes the product current classification attribute values before importing the new ones from the SAP/ERP backend. The target item of type BaseProductAttributes depends on the item type CleanBaseProductAttributes which calls (SapClassificationAttributeTranslator) The target item of type SalesProductAttributes depends on the item type CleanSalesProductAttributes which calls (SapClassificationAttributeTranslator) The target item of type BaseVariantAttributes depends on the item type CleanBaseVariantAttributes which calls (SapClassificationAttributeTranslator) The target item of type SalesVariantAttributes depends on the item type CleanSalesVariantAttributes which calls (SapClassificationAttributeTranslator)
-
-
Constructor Summary
Constructors Constructor Description SapClassificationAttributeTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(SpecialColumnDescriptor columnDescriptor)Called once upon header creation to do some initial setup logic.voidperformImport(java.lang.String cellValue, Item processedItem)Called each time a non-empty cell value has to be imported.-
Methods inherited from class de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
isEmpty, performExport, validate
-
-
-
-
Method Detail
-
performImport
public void performImport(java.lang.String cellValue, Item processedItem) throws ImpExExceptionDescription copied from interface:SpecialValueTranslatorCalled each time a non-empty cell value has to be imported.- Specified by:
performImportin interfaceSpecialValueTranslator- Overrides:
performImportin classAbstractSpecialValueTranslator- Parameters:
cellValue- the cell value stringprocessedItem- the item to import the value for- Throws:
ImpExException- indicates an import error
-
init
public void init(SpecialColumnDescriptor columnDescriptor) throws HeaderValidationException
Description copied from interface:SpecialValueTranslatorCalled once upon header creation to do some initial setup logic.- Specified by:
initin interfaceSpecialValueTranslator- Overrides:
initin classAbstractSpecialValueTranslator- Parameters:
columnDescriptor- the newly created column descriptor- Throws:
HeaderValidationException- indicates that the column descriptor is not configured properly
-
-