Examples of ProductMarketingSolr


Examples of org.hoteia.qalingo.core.solr.bean.ProductMarketingSolr

        }
        if (logger.isDebugEnabled()) {
            logger.debug("Indexing productMarketing " + productMarketing.getId() + " : " + productMarketing.getCode() + " : " + productMarketing.getName());
        }
       
        ProductMarketingSolr productSolr = new ProductMarketingSolr();
        productSolr.setId(productMarketing.getId());
        productSolr.setCode(productMarketing.getCode());
        productSolr.setName(productMarketing.getName());
        productSolr.setDescription(productMarketing.getDescription());
       
        CatalogCategoryVirtual defaultVirtualCatalogCategory = productService.getDefaultVirtualCatalogCategory(productMarketing, catalogCategories, true);

        if(defaultVirtualCatalogCategory != null){
            productSolr.setDefaultCategoryCode(defaultVirtualCatalogCategory.getCode());
        }
       
        ProductSkuPrice productSkuPrice = productMarketing.getDefaultProductSku().getPrice(marketArea.getId(), retailer.getId());
        if(productSkuPrice != null){
            BigDecimal salePrice = productSkuPrice.getSalePrice();
            productSolr.setPrice(salePrice.floatValue());
        }
       
        if(catalogCategories != null){
            for (CatalogCategoryVirtual catalogCategoryVirtual : catalogCategories) {
                productSolr.addCatalogCategories(catalogCategoryVirtual.getCode());
            }
        }
       
        productMarketingSolrServer.addBean(productSolr);
        productMarketingSolrServer.commit();
View Full Code Here

Examples of org.hoteia.qalingo.core.solr.bean.ProductMarketingSolr

     */
    public List<SearchProductItemViewBean> buildListViewBeanSearchProductItem(final RequestData requestData, final ProductMarketingResponseBean productMarketingResponseBean) throws Exception {
        final List<SearchProductItemViewBean> searchProductItems = new ArrayList<SearchProductItemViewBean>();
        List<ProductMarketingSolr> productMarketings = productMarketingResponseBean.getProductMarketingSolrList();
        for (Iterator<ProductMarketingSolr> iterator = productMarketings.iterator(); iterator.hasNext();) {
            ProductMarketingSolr productMarketingSolr = (ProductMarketingSolr) iterator.next();
            SearchProductItemViewBean searchItemViewBean = buildViewBeanSearchProductItem(requestData, productMarketingSolr);
            if(searchItemViewBean != null){
              searchProductItems.add(searchItemViewBean);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.