Package org.hoteia.qalingo.core.web.mvc.viewbean

Examples of org.hoteia.qalingo.core.web.mvc.viewbean.LinkMenuViewBean


  }
 
  protected void initLinks(final HttpServletRequest request, final ModelAndViewThemeDevice modelAndView, final Locale locale) throws Exception{
    List<LinkMenuViewBean> batchLinks = new ArrayList<LinkMenuViewBean>();

    LinkMenuViewBean linkMenuViewBean = new LinkMenuViewBean();
    linkMenuViewBean.setName(coreMessageSource.getMessage("header.menu.batch.customer.list", locale));
    linkMenuViewBean.setUrl(backofficeUrlService.generateUrl(BoUrls.BATCH_CUSTOMER, requestUtil.getRequestData(request)));
    batchLinks.add(linkMenuViewBean);
   
    linkMenuViewBean = new LinkMenuViewBean();
    linkMenuViewBean.setName(coreMessageSource.getMessage("header.menu.batch.order.list", locale));
    linkMenuViewBean.setUrl(backofficeUrlService.generateUrl(BoUrls.BATCH_ORDER, requestUtil.getRequestData(request)));
    batchLinks.add(linkMenuViewBean);
   
    linkMenuViewBean = new LinkMenuViewBean();
    linkMenuViewBean.setName(coreMessageSource.getMessage("header.menu.batch.email.list", locale));
    linkMenuViewBean.setUrl(backofficeUrlService.generateUrl(BoUrls.BATCH_EMAIL, requestUtil.getRequestData(request)));
    batchLinks.add(linkMenuViewBean);
   
    linkMenuViewBean = new LinkMenuViewBean();
    linkMenuViewBean.setName(coreMessageSource.getMessage("header.menu.batch.cms.list", locale));
    linkMenuViewBean.setUrl(backofficeUrlService.generateUrl(BoUrls.BATCH_CMS, requestUtil.getRequestData(request)));
    batchLinks.add(linkMenuViewBean);
   
    linkMenuViewBean = new LinkMenuViewBean();
    linkMenuViewBean.setName(coreMessageSource.getMessage("header.menu.batch.stock.list", locale));
    linkMenuViewBean.setUrl(backofficeUrlService.generateUrl(BoUrls.BATCH_STOCK, requestUtil.getRequestData(request)));
    batchLinks.add(linkMenuViewBean);
   
    modelAndView.addObject("links", batchLinks);
  }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.web.mvc.viewbean.LinkMenuViewBean

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.