Examples of CatalogCategoryPojo


Examples of org.hoteia.qalingo.core.pojo.catalog.CatalogCategoryPojo

    @GET
    @Path("virtual/{catalogCode}/category/{categoryCode}")
    @Produces(MediaType.APPLICATION_JSON)
    public CategoryPojoResponse categoryDetails(@PathParam("catalogCode") final String catalogCode, @PathParam("categoryCode") final String categoryCode) {
        CategoryPojoResponse categoryPojoResponse = new CategoryPojoResponse();
        CatalogCategoryPojo category = catalogService.getCatalogCategoryByCode(catalogCode, categoryCode);
        categoryPojoResponse.setCategory(category);
        return categoryPojoResponse;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.catalog.CatalogCategoryPojo

            selectedMarketArea.setLocalizations(null);
           
            cmsCategories.setMarketArea(selectedMarketArea);
            List<CatalogCategoryPojo> categories = selectedMarketArea.getCatalog().getSortedRootCatalogCategories();
            for (Iterator<CatalogCategoryPojo> iterator = categories.iterator(); iterator.hasNext();) {
                CatalogCategoryPojo catalogCategoryPojo = (CatalogCategoryPojo) iterator.next();
                catalogCategoryPojo.setCatalogCategoryGlobalAttributes(null);
                catalogCategoryPojo.setCatalogCategoryMarketAreaAttributes(null);
                catalogCategoryPojo.setProductMarketings(null);
            }
            cmsCategories.setCatalogCategories(categories);
           
            CatalogPojo catalog = selectedMarketArea.getCatalog();
            catalog.setSortedRootCatalogCategories(null);
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.catalog.CatalogCategoryPojo

           
            cmsProducts.setMarketArea(selectedMarketArea);
           
            List<CatalogCategoryPojo> categories = selectedMarketArea.getCatalog().getSortedRootCatalogCategories();
            for (Iterator<CatalogCategoryPojo> iterator = categories.iterator(); iterator.hasNext();) {
                CatalogCategoryPojo catalogCategoryPojo = (CatalogCategoryPojo) iterator.next();
                if(catalogCategoryPojo.getCode().equals(categoryCode)){
                    List<ProductMarketingPojo> products = catalogCategoryPojo.getProductMarketings();
                    for (Iterator<ProductMarketingPojo> iteratorProductMarketingPojo = products.iterator(); iteratorProductMarketingPojo.hasNext();) {
                        ProductMarketingPojo productMarketingPojo = (ProductMarketingPojo) iteratorProductMarketingPojo.next();
                        productMarketingPojo.setProductBrand(null);
                        productMarketingPojo.setProductMarketingMarketAreaAttributes(null);
                        productMarketingPojo.setProductMarketingGlobalAttributes(null);
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.catalog.CatalogCategoryPojo

            selectedMarketArea.setLocalizations(null);
           
            cmsCategories.setMarketArea(selectedMarketArea);
            List<CatalogCategoryPojo> categories = selectedMarketArea.getCatalog().getSortedRootCatalogCategories();
            for (Iterator<CatalogCategoryPojo> iterator = categories.iterator(); iterator.hasNext();) {
                CatalogCategoryPojo catalogCategoryPojo = (CatalogCategoryPojo) iterator.next();
                catalogCategoryPojo.setCatalogCategoryGlobalAttributes(null);
                catalogCategoryPojo.setCatalogCategoryMarketAreaAttributes(null);
                catalogCategoryPojo.setProductMarketings(null);
            }
            cmsCategories.setCatalogCategories(categories);
           
            CatalogPojo catalog = selectedMarketArea.getCatalog();
            catalog.setSortedRootCatalogCategories(null);
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.catalog.CatalogCategoryPojo

           
            cmsProducts.setMarketArea(selectedMarketArea);
           
            List<CatalogCategoryPojo> categories = selectedMarketArea.getCatalog().getSortedRootCatalogCategories();
            for (Iterator<CatalogCategoryPojo> iterator = categories.iterator(); iterator.hasNext();) {
                CatalogCategoryPojo catalogCategoryPojo = (CatalogCategoryPojo) iterator.next();
                if(catalogCategoryPojo.getCode().equals(categoryCode)){
                    List<ProductMarketingPojo> products = catalogCategoryPojo.getProductMarketings();
                    for (Iterator<ProductMarketingPojo> iteratorProductMarketingPojo = products.iterator(); iteratorProductMarketingPojo.hasNext();) {
                        ProductMarketingPojo productMarketingPojo = (ProductMarketingPojo) iteratorProductMarketingPojo.next();
                        productMarketingPojo.setProductBrand(null);
                        productMarketingPojo.setProductMarketingMarketAreaAttributes(null);
                        productMarketingPojo.setProductMarketingGlobalAttributes(null);
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.catalog.CatalogCategoryPojo

        logger.debug("Found {} categories", allCategories.size());
        return PojoUtil.mapAll(dozerBeanMapper, allCategories, CatalogCategoryPojo.class);
    }

    public CatalogCategoryPojo buildCatalogCategory(final CatalogCategoryMaster catalogCategory) {
        final CatalogCategoryPojo catalogCategoryPojo = dozerBeanMapper.map(catalogCategory, CatalogCategoryPojo.class);
        logger.debug("Load {} category", catalogCategory.getCode());
        return catalogCategoryPojo;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.catalog.CatalogCategoryPojo

        logger.debug("Found catalogCategoryVirtual {} for catalogCode {}", catalogCategoryVirtual, categoryCode);
        return buildCatalogCategory(catalogCategoryVirtual);
    }
   
    public CatalogCategoryPojo buildCatalogCategory(final CatalogCategoryVirtual catalogCategory) {
        final CatalogCategoryPojo catalogCategoryPojo = dozerBeanMapper.map(catalogCategory, CatalogCategoryPojo.class);
        logger.debug("Load {} category", catalogCategory.getCode());
        return catalogCategoryPojo;
    }
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.