Class MarketplaceSlotsTranslator
- java.lang.Object
-
- de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
-
- de.hybris.platform.marketplaceservices.dataimport.batch.translator.MarketplaceSlotsTranslator
-
public class MarketplaceSlotsTranslator extends AbstractValueTranslator
Slots translator for marketplace
-
-
Constructor Summary
Constructors Constructor Description MarketplaceSlotsTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
exportValue(java.lang.Object paramObject)
Translates an attribute value for export usage.protected org.springframework.context.ApplicationContext
getApplicationContext()
protected CatalogVersionService
getCatalogVersionService()
protected VendorCMSPageService
getVendorCMSPageService()
protected VendorCMSStrategy
getVendorCMSStrategy()
protected VendorService
getVendorService()
java.lang.Object
importValue(java.lang.String paramString, Item paramItem)
Translates a tokenized csv value for import usage.void
init(StandardColumnDescriptor descriptor)
Called once per header creation to allow configuring this translator using column modifiers etc.protected void
prepareVendorLandingPage(VendorModel vendor, CatalogVersionModel catalogVersion)
void
setCatalogVersionService(CatalogVersionService catalogVersionService)
void
setVendorCMSPageService(VendorCMSPageService vendorCMSPageService)
void
setVendorCMSStrategy(VendorCMSStrategy vendorCMSStrategy)
void
setVendorService(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:AbstractValueTranslator
Translates a tokenized csv value for import usage. This means that the result object must be a instance of the expected attribute type.- Specified by:
importValue
in classAbstractValueTranslator
- Parameters:
paramString
- expression to translateparamItem
- the target item in case it already exist, null otherwise (for partOf attributes!)- Returns:
- Object translated value
-
prepareVendorLandingPage
protected void prepareVendorLandingPage(VendorModel vendor, CatalogVersionModel catalogVersion)
-
exportValue
public java.lang.String exportValue(java.lang.Object paramObject)
Description copied from class:AbstractValueTranslator
Translates 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:
exportValue
in classAbstractValueTranslator
- Parameters:
paramObject
- value to translate- Returns:
- String translated value
-
init
public void init(StandardColumnDescriptor descriptor)
Description copied from class:AbstractValueTranslator
Called once per header creation to allow configuring this translator using column modifiers etc.- Overrides:
init
in classAbstractValueTranslator
- Parameters:
descriptor
- descriptor where the value to translate belongs to
-
getVendorService
protected VendorService getVendorService()
-
setVendorService
public void setVendorService(VendorService vendorService)
-
getVendorCMSPageService
protected VendorCMSPageService getVendorCMSPageService()
-
setVendorCMSPageService
public void setVendorCMSPageService(VendorCMSPageService vendorCMSPageService)
-
getVendorCMSStrategy
protected VendorCMSStrategy getVendorCMSStrategy()
-
setVendorCMSStrategy
public void setVendorCMSStrategy(VendorCMSStrategy vendorCMSStrategy)
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()
-
-