Package org.hoteia.qalingo.core.web.servlet

Examples of org.hoteia.qalingo.core.web.servlet.ModelAndViewThemeDevice.addObject()


                final String urlRedirect = backofficeUrlService.generateUrl(BoUrls.VIRTUAL_CATALOG, requestData);
                return new ModelAndView(new RedirectView(urlRedirect));
            }
         }

        modelAndView.addObject("availableGlobaleAttributeDefinitions", backofficeViewBeanFactory.buildListViewBeanAttributeDefinition(requestData, attributeService.findProductSkuGlobalAttributeDefinitions()));
        modelAndView.addObject("availableMarketAreaAttributeDefinitions", backofficeViewBeanFactory.buildListViewBeanAttributeDefinition(requestData, attributeService.findProductSkuMarketAreaAttributeDefinitions()));

        return modelAndView;
  }
 
View Full Code Here


                return new ModelAndView(new RedirectView(urlRedirect));
            }
         }

        modelAndView.addObject("availableGlobaleAttributeDefinitions", backofficeViewBeanFactory.buildListViewBeanAttributeDefinition(requestData, attributeService.findProductSkuGlobalAttributeDefinitions()));
        modelAndView.addObject("availableMarketAreaAttributeDefinitions", backofficeViewBeanFactory.buildListViewBeanAttributeDefinition(requestData, attributeService.findProductSkuMarketAreaAttributeDefinitions()));

        return modelAndView;
  }
 
  @RequestMapping(value = BoUrls.PRODUCT_SKU_EDIT_URL, method = RequestMethod.POST)
View Full Code Here

  @RequestMapping(FoUrls.OUR_COMPANY_URL)
  public ModelAndView ourCompany(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), FoUrls.OUR_COMPANY.getVelocityPage());
   
    final OurCompanyViewBean ourCompany = frontofficeViewBeanFactory.buildViewBeanOurCompany(requestUtil.getRequestData(request));
    modelAndView.addObject(ModelConstants.OUR_COMPANY_VIEW_BEAN, ourCompany);
   
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, FoUrls.OUR_COMPANY.getKey());

        return modelAndView;
  }
View Full Code Here

            model.addAttribute(ModelConstants.AUTH_ERROR_MESSAGE, getCommonMessage(ScopeCommonMessage.AUTH, "login_or_password_are_wrong", locale));
        }
       
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, FoUrls.CART_AUTH.getKey());
       
        modelAndView.addObject(ModelConstants.CHECKOUT_STEP, 2);

        return modelAndView;
    }

    @RequestMapping(FoUrls.LOGIN_CHECK_URL)
View Full Code Here

      final String urlRedirect = urlService.generateUrl(FoUrls.HOME, requestUtil.getRequestData(request));
          return new ModelAndView(new RedirectView(urlRedirect));
    }
   
    SecurityViewBean security = frontofficeViewBeanFactory.buildViewBeanSecurity(requestUtil.getRequestData(request));
    modelAndView.addObject("security", security);
   
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, FoUrls.TIMEOUT.getKey());
   
        return modelAndView;
  }
View Full Code Here

    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), FoUrls.RETAILER_CONTACT.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);
        final MarketArea currentMarketArea = requestData.getMarketArea();
        final Retailer currentRetailer = requestData.getMarketAreaRetailer();
   
    modelAndView.addObject(ModelConstants.URL_BACK, urlService.generateUrl(FoUrls.HOME, requestUtil.getRequestData(request)));
   
    Retailer retailer = retailerService.getRetailerByCode(currentMarketArea.getId(), currentRetailer.getId(), retailerCode);

    // SANITY CHECK
    if(retailer.getDefaultAddress() == null
View Full Code Here

        final String taxCode = request.getParameter(RequestConstants.REQUEST_PARAMETER_TAX_CODE);
        final Tax tax = taxService.getTaxByCode(taxCode);
       
        // SANITY CHECK
        if(tax != null){
            modelAndView.addObject(ModelConstants.TAX_VIEW_BEAN, backofficeViewBeanFactory.buildViewBeanTax(requestData, tax));
        } else {
            final String url = requestUtil.getLastRequestUrl(request);
            return new ModelAndView(new RedirectView(url));
        }
View Full Code Here

   
    final String customerCode = request.getParameter(RequestConstants.REQUEST_PARAMETER_CUSTOMER_CODE);
    final Customer customer = customerService.getCustomerByCode(customerCode);
   
    if(customer != null){
          modelAndView.addObject(ModelConstants.CUSTOMER_VIEW_BEAN, backofficeViewBeanFactory.buildViewBeanCustomer(requestUtil.getRequestData(request), customer));
    } else {
      final String url = requestUtil.getLastRequestUrl(request);
      return new ModelAndView(new RedirectView(url));
    }
View Full Code Here

    } else {
      final String url = requestUtil.getLastRequestUrl(request);
      return new ModelAndView(new RedirectView(url));
    }

    modelAndView.addObject(ModelConstants.CUSTOMER_VIEW_BEAN, backofficeViewBeanFactory.buildViewBeanCustomer(requestData, customer));
   
        model.addAttribute(ModelConstants.URL_BACK, backofficeUrlService.generateUrl(BoUrls.CUSTOMER_LIST, requestData));
   
        Object[] params = {customer.getLastname() + " " + customer.getFirstname()};
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, BoUrls.CUSTOMER_DETAILS.getKey(), params);
View Full Code Here

        final Store retailer = retailerService.getStoreByCode(storeCode);

        // SANITY CHECK
        if (retailer != null) {
            modelAndView.addObject(ModelConstants.STORE_VIEW_BEAN, backofficeViewBeanFactory.buildViewBeanStore(requestData, retailer));
        } else {
            final String url = requestUtil.getLastRequestUrl(request);
            return new ModelAndView(new RedirectView(url));
        }
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.