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

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


          }
         
      modelAndView.addObject(Constants.PAGINATION_PAGE_URL, url);
      modelAndView.addObject(Constants.PAGINATION_PAGE_PAGED_LIST_HOLDER, productsViewBeanPagedListHolder);
      modelAndView.addObject(Constants.SEARCH_TEXT, searchForm.getText());
      modelAndView.addObject(Constants.PAGINATION_PAGE_SIZE, productsViewBeanPagedListHolder.getPageSize());
      modelAndView.addObject(Constants.PAGINATION_SORT_BY, sortBy);
      modelAndView.addObject(Constants.PAGINATION_ORDER, order);
      modelAndView.addObject(Constants.PRICE_RANGE_PARAMETER, searchForm.getPrice());
      modelAndView.addObject(Constants.CATALOG_CATEGORIES_PARAMETER, searchForm.getCategoriesFilter());
     
View Full Code Here


         
      modelAndView.addObject(Constants.PAGINATION_PAGE_URL, url);
      modelAndView.addObject(Constants.PAGINATION_PAGE_PAGED_LIST_HOLDER, productsViewBeanPagedListHolder);
      modelAndView.addObject(Constants.SEARCH_TEXT, searchForm.getText());
      modelAndView.addObject(Constants.PAGINATION_PAGE_SIZE, productsViewBeanPagedListHolder.getPageSize());
      modelAndView.addObject(Constants.PAGINATION_SORT_BY, sortBy);
      modelAndView.addObject(Constants.PAGINATION_ORDER, order);
      modelAndView.addObject(Constants.PRICE_RANGE_PARAMETER, searchForm.getPrice());
      modelAndView.addObject(Constants.CATALOG_CATEGORIES_PARAMETER, searchForm.getCategoriesFilter());
     
    } catch (Exception e) {
View Full Code Here

      modelAndView.addObject(Constants.PAGINATION_PAGE_URL, url);
      modelAndView.addObject(Constants.PAGINATION_PAGE_PAGED_LIST_HOLDER, productsViewBeanPagedListHolder);
      modelAndView.addObject(Constants.SEARCH_TEXT, searchForm.getText());
      modelAndView.addObject(Constants.PAGINATION_PAGE_SIZE, productsViewBeanPagedListHolder.getPageSize());
      modelAndView.addObject(Constants.PAGINATION_SORT_BY, sortBy);
      modelAndView.addObject(Constants.PAGINATION_ORDER, order);
      modelAndView.addObject(Constants.PRICE_RANGE_PARAMETER, searchForm.getPrice());
      modelAndView.addObject(Constants.CATALOG_CATEGORIES_PARAMETER, searchForm.getCategoriesFilter());
     
    } catch (Exception e) {
      logger.error("SOLR Error", e);
View Full Code Here

      modelAndView.addObject(Constants.PAGINATION_PAGE_PAGED_LIST_HOLDER, productsViewBeanPagedListHolder);
      modelAndView.addObject(Constants.SEARCH_TEXT, searchForm.getText());
      modelAndView.addObject(Constants.PAGINATION_PAGE_SIZE, productsViewBeanPagedListHolder.getPageSize());
      modelAndView.addObject(Constants.PAGINATION_SORT_BY, sortBy);
      modelAndView.addObject(Constants.PAGINATION_ORDER, order);
      modelAndView.addObject(Constants.PRICE_RANGE_PARAMETER, searchForm.getPrice());
      modelAndView.addObject(Constants.CATALOG_CATEGORIES_PARAMETER, searchForm.getCategoriesFilter());
     
    } catch (Exception e) {
      logger.error("SOLR Error", e);
      return displaySearch(request, model);
View Full Code Here

      modelAndView.addObject(Constants.SEARCH_TEXT, searchForm.getText());
      modelAndView.addObject(Constants.PAGINATION_PAGE_SIZE, productsViewBeanPagedListHolder.getPageSize());
      modelAndView.addObject(Constants.PAGINATION_SORT_BY, sortBy);
      modelAndView.addObject(Constants.PAGINATION_ORDER, order);
      modelAndView.addObject(Constants.PRICE_RANGE_PARAMETER, searchForm.getPrice());
      modelAndView.addObject(Constants.CATALOG_CATEGORIES_PARAMETER, searchForm.getCategoriesFilter());
     
    } catch (Exception e) {
      logger.error("SOLR Error", e);
      return displaySearch(request, model);
    }
View Full Code Here

   
    loadRecentProducts(request, requestData, model, new FetchPlan(categoryVirtualFetchPlans), new FetchPlan(productMarketingFetchPlans), new FetchPlan(productSkuFetchPlans));
       
        final Cart currentCart = requestData.getCart();
        final CartViewBean cartViewBean = frontofficeViewBeanFactory.buildViewBeanCart(requestUtil.getRequestData(request), currentCart);
        modelAndView.addObject(ModelConstants.CART_VIEW_BEAN, cartViewBean);
   
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, FoUrls.CATALOG_SEARCH.getKey());

        return modelAndView;
  }
View Full Code Here

 
    protected ModelAndView displaySearch(final HttpServletRequest request, final Model model) throws Exception {
        ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), FoUrls.CATALOG_SEARCH.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);

        modelAndView.addObject(ModelConstants.SEARCH_FORM, formFactory.buildSearchForm(requestData));

        loadRecentProducts(request, requestData, model, new FetchPlan(categoryVirtualFetchPlans), new FetchPlan(productMarketingFetchPlans), new FetchPlan(productSkuFetchPlans));

        final Cart currentCart = requestData.getCart();
        final CartViewBean cartViewBean = frontofficeViewBeanFactory.buildViewBeanCart(requestUtil.getRequestData(request), currentCart);
View Full Code Here

   
  @RequestMapping(value = BoUrls.CACHE_URL, method = RequestMethod.GET)
  public ModelAndView cache(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.CACHE.getVelocityPage());
    List<ServerStatus> severList = serverService.findServerList();
    modelAndView.addObject("severList", severList);
   
        return modelAndView;
  }
  @RequestMapping(value = "/flushCache.html", method = RequestMethod.POST)
  public ModelAndView flushCache(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
View Full Code Here

        loadRecentProducts(request, requestData, model, new FetchPlan(categoryVirtualFetchPlans), new FetchPlan(productMarketingFetchPlans), new FetchPlan(productSkuFetchPlans));

        final Cart currentCart = requestData.getCart();
        final CartViewBean cartViewBean = frontofficeViewBeanFactory.buildViewBeanCart(requestUtil.getRequestData(request), currentCart);
        modelAndView.addObject(ModelConstants.CART_VIEW_BEAN, cartViewBean);

        return modelAndView;
    }
   
    /**
 
View Full Code Here

  @RequestMapping(value = BoUrls.FORGOTTEN_PASSWORD_URL, method = RequestMethod.GET)
  public ModelAndView displayForgottenPassword(final HttpServletRequest request, final HttpServletResponse response, ModelMap modelMap) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.FORGOTTEN_PASSWORD.getVelocityPage());
   
    modelAndView.addObject("formForgottenPassword", new ForgottenPasswordForm());
   
        return modelAndView;
  }
 
  @RequestMapping(value = BoUrls.FORGOTTEN_PASSWORD_URL, method = RequestMethod.POST)
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.