Class MarketplaceProductsTranslator
java.lang.Object
de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
de.hybris.platform.marketplaceservices.dataimport.batch.translator.MarketplaceProductsTranslator
Products translator for marketplace, to find products under specific CatalogVersion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportValue(Object paramObject) Translates an attribute value for export usage.protected org.springframework.context.ApplicationContextprotected ProductManagerimportValue(String paramString, Item paramItem) Translates a tokenized csv value for import usage.voidinit(StandardColumnDescriptor descriptor) Called once per header creation to allow configuring this translator using column modifiers etc.voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetProductService(ProductService productService) voidsetVendorService(VendorService vendorService) Methods inherited from class de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
clearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, isDebugEnabled, isInfoEnabled, setEmpty, setError, validate, warn, wasEmpty, wasUnresolved
-
Constructor Details
-
MarketplaceProductsTranslator
public MarketplaceProductsTranslator()
-
-
Method Details
-
importValue
Description copied from class:AbstractValueTranslatorTranslates a tokenized csv value for import usage. This means that the result object must be a instance of the expected attribute type.- Specified by:
importValuein classAbstractValueTranslator- Parameters:
paramString- expression to translateparamItem- the target item in case it already exist, null otherwise (for partOf attributes!)- Returns:
- Object translated value
-
exportValue
Description copied from class:AbstractValueTranslatorTranslates an attribute value for export usage. This means the attribute value must be transformed into a string which should be re-importable again.- Specified by:
exportValuein classAbstractValueTranslator- Parameters:
paramObject- value to translate- Returns:
- String translated value
-
init
Description copied from class:AbstractValueTranslatorCalled once per header creation to allow configuring this translator using column modifiers etc.- Overrides:
initin classAbstractValueTranslator- Parameters:
descriptor- descriptor where the value to translate belongs to
-
getProductService
-
setProductService
-
getVendorService
-
setVendorService
-
getCatalogVersionService
-
setCatalogVersionService
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
getProductManager
-