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

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


     */
    public List<FooterMenuViewBean> buildViewBeanFooterMenu(final RequestData requestData) throws Exception {
        final Locale locale = requestData.getLocale();
        List<FooterMenuViewBean> footerMenuViewBeans = new ArrayList<FooterMenuViewBean>();

        FooterMenuViewBean footerMenuList = new FooterMenuViewBean();
        footerMenuList.setName(getSpecificMessage(ScopeWebMessage.HEADER_MENU, "conditionsofuse", locale));
        footerMenuList.setUrl(urlService.generateUrl(FoUrls.CONDITIONS_OF_USE, requestData));
        footerMenuList.setType(FooterMenuViewBean.MENU_TYPE_CUSTOMER_CARE);
        footerMenuViewBeans.add(footerMenuList);

        footerMenuList = new FooterMenuViewBean();
        footerMenuList.setName(getSpecificMessage(ScopeWebMessage.HEADER_MENU, "faq", locale));
        footerMenuList.setUrl(urlService.generateUrl(FoUrls.FAQ, requestData));
        footerMenuList.setType(FooterMenuViewBean.MENU_TYPE_CUSTOMER_CARE);
        footerMenuViewBeans.add(footerMenuList);

        footerMenuList = new FooterMenuViewBean();
        footerMenuList.setName(getSpecificMessage(ScopeWebMessage.HEADER_MENU, "store_location", locale));
        footerMenuList.setUrl(urlService.generateUrl(FoUrls.STORE_LOCATION, requestData));
        footerMenuList.setType(FooterMenuViewBean.MENU_TYPE_CUSTOMER_CARE);
        footerMenuViewBeans.add(footerMenuList);

        footerMenuList = new FooterMenuViewBean();
        footerMenuList.setName(getSpecificMessage(ScopeWebMessage.HEADER_MENU, "legal_terms", locale));
        footerMenuList.setUrl(urlService.generateUrl(FoUrls.LEGAL_TERMS, requestData));
        footerMenuList.setType(FooterMenuViewBean.MENU_TYPE_OUR_COMPANY);
        footerMenuViewBeans.add(footerMenuList);
       
        footerMenuList = new FooterMenuViewBean();
        footerMenuList.setName(getSpecificMessage(ScopeWebMessage.HEADER_MENU, "contactus", locale));
        footerMenuList.setUrl(urlService.generateUrl(FoUrls.CONTACT, requestData));
        footerMenuList.setType(FooterMenuViewBean.MENU_TYPE_OUR_COMPANY);
        footerMenuViewBeans.add(footerMenuList);

        footerMenuList = new FooterMenuViewBean();
        footerMenuList.setName(getSpecificMessage(ScopeWebMessage.HEADER_MENU, "followus", locale));
        footerMenuList.setUrl(urlService.generateUrl(FoUrls.FOLLOW_US, requestData));
        footerMenuList.setType(FooterMenuViewBean.MENU_TYPE_OUR_COMPANY);
        footerMenuViewBeans.add(footerMenuList);

        return footerMenuViewBeans;
    }
View Full Code Here

TOP

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

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.