Examples of CatalogCategoryVirtualProductSkuRel


Examples of org.hoteia.qalingo.core.domain.CatalogCategoryVirtualProductSkuRel

    public CatalogCategoryVirtual getDefaultVirtualCatalogCategory(final ProductSku productSku, final List<CatalogCategoryVirtual> catalogCategories, boolean withFallback) {
        if(catalogCategories != null){
            for (Iterator<CatalogCategoryVirtual> iteratorCatalogCategoryVirtual = catalogCategories.iterator(); iteratorCatalogCategoryVirtual.hasNext();) {
                CatalogCategoryVirtual catalogCategoryVirtual = (CatalogCategoryVirtual) iteratorCatalogCategoryVirtual.next();
                for (Iterator<CatalogCategoryVirtualProductSkuRel> iteratorCatalogCategoryProductSkuRel = catalogCategoryVirtual.getCatalogCategoryProductSkuRels().iterator(); iteratorCatalogCategoryProductSkuRel.hasNext();) {
                    CatalogCategoryVirtualProductSkuRel catalogCategoryVirtualProductSkuRel = (CatalogCategoryVirtualProductSkuRel) iteratorCatalogCategoryProductSkuRel.next();
                    if(productSku.getCode().equals(catalogCategoryVirtualProductSkuRel.getProductSku().getCode())
                            && catalogCategoryVirtualProductSkuRel.isDefaultCategory()){
                        return catalogCategoryVirtual;
                    }
                }
            }
            if(withFallback
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.CatalogCategoryVirtualProductSkuRel

                    String skuCode = skuCodesSplit[i];
                    if(productSkuCodes != null
                            && !productSkuCodes.contains(skuCode)){
                        final ProductSku reloadedProductSku = productService.getProductSkuByCode(skuCode, new FetchPlan(productSkuFetchPlans));
                        if(reloadedProductSku != null){
                            reloadedCategory.getCatalogCategoryProductSkuRels().add(new CatalogCategoryVirtualProductSkuRel(reloadedCategory, reloadedProductSku));
                            reloadedCategory = catalogCategoryService.saveOrUpdateCatalogCategory(reloadedCategory);
                        }
                    }
                }
            }
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.