public class TrackingEventProductDataPopulator extends java.lang.Object implements Populator<TrackingEventCsvData,TrackingEvent>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PRODUCT_DETAIL_PAGE_VIEW_EVENT |
| Constructor and Description |
|---|
TrackingEventProductDataPopulator() |
| Modifier and Type | Method and Description |
|---|---|
BaseSiteService |
getBaseSiteService() |
protected java.lang.String |
getBrand(ProductModel productModel) |
CatalogVersionService |
getCatalogVersionService() |
protected java.lang.String |
getCategories(ProductModel productModel) |
ProductService |
getProductService() |
protected java.lang.String |
getSiteId(TrackingEventCsvData source) |
void |
populate(TrackingEventCsvData source,
TrackingEvent target)
Populate the target instance with values from the source instance.
|
void |
setBaseSiteService(BaseSiteService baseSiteService) |
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setProductService(ProductService productService) |
protected void |
setupSiteAndCatalogVersion(TrackingEventCsvData source)
Sets up the base site id in session to get the correct catalog information
|
protected boolean |
shouldPopulateProductData(TrackingEventCsvData source) |
public static final java.lang.String PRODUCT_DETAIL_PAGE_VIEW_EVENT
public void populate(TrackingEventCsvData source, TrackingEvent target)
Populatorpopulate in interface Populator<TrackingEventCsvData,TrackingEvent>source - the source objecttarget - the target to fillprotected boolean shouldPopulateProductData(TrackingEventCsvData source)
protected java.lang.String getCategories(ProductModel productModel)
protected java.lang.String getBrand(ProductModel productModel)
protected void setupSiteAndCatalogVersion(TrackingEventCsvData source)
protected java.lang.String getSiteId(TrackingEventCsvData source)
public BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService baseSiteService)
public CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
public ProductService getProductService()
public void setProductService(ProductService productService)
Copyright © 2018 SAP SE. All Rights Reserved.