Examples of ProductMarketing


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

       
        if (result.hasErrors()) {
            return productMarketingEdit(request, model, productMarketingForm);
        }
       
        ProductMarketing productMarketing = null;
        if(StringUtils.isNotEmpty(productMarketingForm.getId())){
            productMarketing = productService.getProductMarketingById(productMarketingForm.getId(), new FetchPlan(productMarketingFetchPlans));
        }

        try {
View Full Code Here

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

    protected ProductMarketingForm initProductMarketingForm(final HttpServletRequest request, final Model model) throws Exception {
        final RequestData requestData = requestUtil.getRequestData(request);
       
        final String productMarketingCode = request.getParameter(RequestConstants.REQUEST_PARAMETER_PRODUCT_MARKETING_CODE);
        if(StringUtils.isNotEmpty(productMarketingCode)){
            final ProductMarketing productMarketing = productService.getProductMarketingByCode(productMarketingCode, new FetchPlan(productMarketingFetchPlans));
            return backofficeFormFactory.buildProductMarketingForm(requestData, productMarketing);
        }
        return backofficeFormFactory.buildProductMarketingForm(requestData, null);
    }
View Full Code Here

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

        } else {
            // ADD/CREATE MODE
            final String productMarketingCode = request.getParameter(RequestConstants.REQUEST_PARAMETER_PRODUCT_MARKETING_CODE);
            if (StringUtils.isNotEmpty(productMarketingCode)) {
                final ProductMarketing productMarketing = productService.getProductMarketingByCode(productMarketingCode, new FetchPlan(productMarketingFetchPlans));
               
                modelAndView.addObject(ModelConstants.URL_BACK, backofficeUrlService.generateUrl(BoUrls.PRODUCT_MARKETING_DETAILS, requestData, productMarketing));

                Object[] params = { "New Sku" };
                overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, BoUrls.PRODUCT_SKU_EDIT.getKey(), params);
View Full Code Here

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

            final ProductSku productSku = productService.getProductSkuByCode(productSkuCode, new FetchPlan(productSkuFetchPlans));
            return backofficeFormFactory.buildProductSkuForm(requestData, productSku.getProductMarketing(), productSku);
        }
        final String productMarketingCode = request.getParameter(RequestConstants.REQUEST_PARAMETER_PRODUCT_MARKETING_CODE);
        if (StringUtils.isNotEmpty(productMarketingCode)) {
            final ProductMarketing productMarketing = productService.getProductMarketingByCode(productMarketingCode, new FetchPlan(productMarketingFetchPlans));
            return backofficeFormFactory.buildProductSkuForm(requestData, productMarketing, null);
        }
        return backofficeFormFactory.buildProductSkuForm(requestData, null, null);
    }
View Full Code Here

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

                    } else if (param instanceof CatalogCategoryVirtual) {
                        CatalogCategoryVirtual catalogCategoryVirtual = (CatalogCategoryVirtual) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_CATALOG_CATEGORY_CODE, handleParamValue(catalogCategoryVirtual.getCode().toString()));
                        break;
                    } else if (param instanceof ProductMarketing) {
                        ProductMarketing productMarketing = (ProductMarketing) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_PRODUCT_MARKETING_CODE, handleParamValue(productMarketing.getCode().toString()));
                        break;
                    } else if (param instanceof ProductSku) {
                        ProductSku productSku = (ProductSku) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_PRODUCT_SKU_CODE, handleParamValue(productSku.getCode().toString()));
                        break;
View Full Code Here

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

       
        Map<String, ProductMarketingPojo> productMarketingMap = new HashMap<String, ProductMarketingPojo>();
        for (Iterator<ProductSku> iteratorProductSku = productSkus.iterator(); iteratorProductSku.hasNext();) {
            final ProductSku productSku = (ProductSku) iteratorProductSku.next();
            final ProductSku reloadedProductSku = productService.getProductSkuByCode(productSku.getCode(), new FetchPlan(productSkuFetchPlans));
            final ProductMarketing reloadedProductMarketing = productService.getProductMarketingById(reloadedProductSku.getProductMarketing().getId(), new FetchPlan(productMarketingFetchPlans));
            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();) {
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.