Examples of ProductSkuPojo


Examples of org.hoteia.qalingo.core.pojo.product.ProductSkuPojo

        final ProductSku productSku = productService.getProductSkuByCode(productSkuCode);
        return buildProductSku(productSku);
    }
   
    public ProductSkuPojo buildProductSku(final ProductSku productSku) {
        final ProductSkuPojo productSkuPojo = dozerBeanMapper.map(productSku, ProductSkuPojo.class);
        logger.debug("Load {} sku", productSku.getCode());
        return productSkuPojo;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.product.ProductSkuPojo

            }
        } else if(event.getDestinationObject() instanceof ProductSkuPojo){
            if(event.getFieldMap().getDestFieldName().equals("code")){
                // INJECT BACKOFFICE URLS
                ProductSku productSku = (ProductSku) event.getSourceObject();
                ProductSkuPojo productSkuPojo = (ProductSkuPojo) event.getDestinationObject();
                try {
                    final RequestData requestData = requestUtil.getRequestData(httpServletRequest);
                    final MarketArea marketArea = requestData.getMarketArea();
                    final Retailer retailer = requestData.getMarketAreaRetailer();
                    final Localization localization = requestData.getMarketAreaLocalization();
                    final String localizationCode = localization.getCode();
                   
                    final Asset defaultPackshotImage = productSku.getDefaultPackshotImage(ImageSize.SMALL.name());
                    if (defaultPackshotImage != null) {
                        String summaryImage = engineSettingService.getProductMarketingImageWebPath(defaultPackshotImage);
                        productSkuPojo.setDefaultPackshotImage(summaryImage);
                    } else {
                        productSkuPojo.setDefaultPackshotImage("");
                    }
                   
                    productSkuPojo.setI18nName(productSku.getI18nName(localizationCode));
                   
                    ProductSkuPrice price = productSku.getPrice(marketArea.getId(), retailer.getId());
                    if(price != null){
                        productSkuPojo.setPriceWithStandardCurrencySign(price.getPriceWithStandardCurrencySign());
                    }

                } catch (Exception e) {
                    logger.error("postWritingDestinationValue error with ProductSkuPojo", e);
                }
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.product.ProductSkuPojo

            ProductMarketingPojo productMarketingPojo = catalogPojoService.buildProductMarketing(reloadedProductMarketing);
           
            // CLEAN NOT AVAILABLE SKU
            List<ProductSkuPojo> productSkuPojos = new ArrayList<ProductSkuPojo>(productMarketingPojo.getProductSkus());
            for (Iterator<ProductSkuPojo> iterator = productSkuPojos.iterator(); iterator.hasNext();) {
                ProductSkuPojo productSkuPojo = (ProductSkuPojo) iterator.next();
                if(!productSkuIds.contains(productSkuPojo.getId())){
                    productMarketingPojo.getProductSkus().remove(productSkuPojo);
                }
            }
            productMarketingMap.put(productMarketingPojo.getCode(), productMarketingPojo);
        }
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.