Class MarketplaceCategoryTranslator
- java.lang.Object
-
- de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
-
- de.hybris.platform.marketplaceservices.dataimport.batch.translator.MarketplaceCategoryTranslator
-
public class MarketplaceCategoryTranslator extends AbstractValueTranslator
Category translator for marketplace, validate the category must be assigned to the vendor
-
-
Constructor Summary
Constructors Constructor Description MarketplaceCategoryTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringexportValue(java.lang.Object paramObject)Translates an attribute value for export usage.CatalogVersionServicegetCatalogVersionService()CategoryServicegetCategoryService()VendorServicegetVendorService()java.lang.ObjectimportValue(java.lang.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.protected booleanisCategoryValidForVendor(CategoryModel category, VendorModel vendor)voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetCategoryService(CategoryService categoryService)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
-
-
-
-
Method Detail
-
importValue
public java.lang.Object importValue(java.lang.String paramString, Item paramItem)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
-
isCategoryValidForVendor
protected boolean isCategoryValidForVendor(CategoryModel category, VendorModel vendor)
-
exportValue
public java.lang.String exportValue(java.lang.Object paramObject)
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
public void init(StandardColumnDescriptor descriptor)
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
-
getCategoryService
public CategoryService getCategoryService()
-
setCategoryService
public void setCategoryService(CategoryService categoryService)
-
getVendorService
public VendorService getVendorService()
-
setVendorService
public void setVendorService(VendorService vendorService)
-
getCatalogVersionService
public CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
-