Package org.hoteia.qalingo.core.pojo.catalog

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


    @GET
    @Path("virtual/{catalogCode}")
    @Produces(MediaType.APPLICATION_JSON)
    public CatalogPojoResponse getVirtuyalCatalogByCode(@PathParam("catalogCode") final String catalogCode) {
        CatalogPojoResponse catalogPojoResponse = new CatalogPojoResponse();
        CatalogPojo catalogPojo = catalogService.getVirtualCatalogByCode(catalogCode);
        catalogPojoResponse.setCatalog(catalogPojo);
        return catalogPojoResponse;
    }
View Full Code Here


                catalogCategoryPojo.setCatalogCategoryMarketAreaAttributes(null);
                catalogCategoryPojo.setProductMarketings(null);
            }
            cmsCategories.setCatalogCategories(categories);
           
            CatalogPojo catalog = selectedMarketArea.getCatalog();
            catalog.setSortedRootCatalogCategories(null);
            catalog.setSortedAllCatalogCategories(null);
            cmsCategories.setCatalog(catalog);
        }

        return cmsCategories;
    }
View Full Code Here

                    }
                    cmsProducts.setProductMarketings(products);
                }
            }

            CatalogPojo catalog = selectedMarketArea.getCatalog();
            catalog.setSortedRootCatalogCategories(null);
            cmsProducts.setCatalog(catalog);

        }

        return cmsProducts;
View Full Code Here

                catalogCategoryPojo.setCatalogCategoryMarketAreaAttributes(null);
                catalogCategoryPojo.setProductMarketings(null);
            }
            cmsCategories.setCatalogCategories(categories);
           
            CatalogPojo catalog = selectedMarketArea.getCatalog();
            catalog.setSortedRootCatalogCategories(null);
            catalog.setSortedAllCatalogCategories(null);
            cmsCategories.setCatalog(catalog);
        }

        return cmsCategories;
    }
View Full Code Here

                    }
                    cmsProducts.setProductMarketings(products);
                }
            }

            CatalogPojo catalog = selectedMarketArea.getCatalog();
            catalog.setSortedRootCatalogCategories(null);
            cmsProducts.setCatalog(catalog);

        }

        return cmsProducts;
View Full Code Here

        logger.debug("Found catalog {} for catalogCode {}", catalog, catalogCode);
        return buildVirtualCatalog(catalog);
    }
   
    public CatalogPojo buildMasterCatalog(final CatalogMaster catalogMaster) {
        final CatalogPojo catalogPojo = dozerBeanMapper.map(catalogMaster, CatalogPojo.class);
        logger.debug("Load {} catalog", catalogMaster.getCode());
        return catalogPojo;
    }
View Full Code Here

        logger.debug("Load {} catalog", catalogMaster.getCode());
        return catalogPojo;
    }

    public CatalogPojo buildVirtualCatalog(final CatalogVirtual catalogVirtual) {
        final CatalogPojo catalogPojo = dozerBeanMapper.map(catalogVirtual, CatalogPojo.class);
        logger.debug("Load {} catalog", catalogVirtual.getCode());
        return catalogPojo;
    }
View Full Code Here

    public CatalogPojo getCatalog(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
        final RequestData requestData = requestUtil.getRequestData(request);
        final MarketArea currentMarketArea = requestData.getMarketArea();
        final String catalogType = request.getParameter(RequestConstants.REQUEST_PARAMETER_CATALOG_TYPE);

        CatalogPojo catalogPojo = new CatalogPojo();
        if("master".equals(catalogType)){
            final CatalogMaster catalogMaster = catalogService.getMasterCatalogById(currentMarketArea.getCatalog().getCatalogMaster().getId());

            Set<CatalogCategoryMaster> catalogCategories = new HashSet<CatalogCategoryMaster>();
            if(catalogMaster.getCatalogCategories() != null){
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.pojo.catalog.CatalogPojo

Copyright © 2018 www.massapicom. 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.