Class SapClassificationAttributeAuthorTranslator
- java.lang.Object
-
- de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
-
- de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeTranslator
-
- de.hybris.platform.sap.sapmodel.authors.SapClassificationAttributeAuthorTranslator
-
- All Implemented Interfaces:
NotifiedSpecialValueTranslator,SpecialValueTranslator
public class SapClassificationAttributeAuthorTranslator extends ClassificationAttributeTranslator implements NotifiedSpecialValueTranslator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeTranslator
ClassificationAttributeTranslator.Modifiers
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIMPEX_NONEXISTEND_CLSATTRVALUE_FALLBACK_KEY-
Fields inherited from class de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeTranslator
allDoneFor, attributeSeparator, classAttr, classAttrAssignment, className, classSystemVersion, collectionDelimiter, currentCellValue, dateFormatString, lang, locale, numberFormatString, qualfier, systemName, TO_ESCAPE, versionName
-
-
Constructor Summary
Constructors Constructor Description SapClassificationAttributeAuthorTranslator()General no-arg constructorSapClassificationAttributeAuthorTranslator(ClassificationSystemVersion sysVer, ClassificationAttribute attr, char delimiter, Language lang)Testing purpose constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractValueTranslatorgetFallbackValueTranslator()voidinit(SpecialColumnDescriptor columnDescriptor)Called once upon header creation to do some initial setup logic.voidnotifyTranslationEnd(ValueLine line, HeaderDescriptor header, Item processedItem)Is called if allSpecialValueTranslators used in header have been triggered.java.util.Collection<UnitAwareValue>translateCurrentUnitAwareValues(ValueLine line, ClassAttributeAssignment assignment, Product processedItem)-
Methods inherited from class de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeTranslator
getAssignment, getFeature, getSingleCellValueTranslator, getValueCtx, matchAssignment, performExport, performImport, splitValues, translateCurrentValues
-
Methods inherited from class de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
isEmpty, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.impex.jalo.translators.SpecialValueTranslator
isEmpty, performExport, performImport, validate
-
-
-
-
Field Detail
-
IMPEX_NONEXISTEND_CLSATTRVALUE_FALLBACK_KEY
public static final java.lang.String IMPEX_NONEXISTEND_CLSATTRVALUE_FALLBACK_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SapClassificationAttributeAuthorTranslator
public SapClassificationAttributeAuthorTranslator()
General no-arg constructor
-
SapClassificationAttributeAuthorTranslator
public SapClassificationAttributeAuthorTranslator(ClassificationSystemVersion sysVer, ClassificationAttribute attr, char delimiter, Language lang)
Testing purpose constructor.
-
-
Method Detail
-
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 classClassificationAttributeTranslator- Parameters:
columnDescriptor- the newly created column descriptor- Throws:
HeaderValidationException- indicates that the column descriptor is not configured properly
-
getFallbackValueTranslator
protected AbstractValueTranslator getFallbackValueTranslator()
- Overrides:
getFallbackValueTranslatorin classClassificationAttributeTranslator
-
translateCurrentUnitAwareValues
public java.util.Collection<UnitAwareValue> translateCurrentUnitAwareValues(ValueLine line, ClassAttributeAssignment assignment, Product processedItem) throws HeaderValidationException
- Overrides:
translateCurrentUnitAwareValuesin classClassificationAttributeTranslator- Throws:
HeaderValidationException
-
notifyTranslationEnd
public void notifyTranslationEnd(ValueLine line, HeaderDescriptor header, Item processedItem) throws ImpExException
Description copied from interface:NotifiedSpecialValueTranslatorIs called if allSpecialValueTranslators used in header have been triggered. Implement here special logic which has to be executed after end of overall translation.- Specified by:
notifyTranslationEndin interfaceNotifiedSpecialValueTranslator- Overrides:
notifyTranslationEndin classClassificationAttributeTranslator- Parameters:
line- current value lineheader- current headerprocessedItem- item which was created or updated- Throws:
ImpExException- an ImpEx specific problem has occur
-
-