Package org.hoteia.qalingo.core.pojo

Examples of org.hoteia.qalingo.core.pojo.UrlPojo


    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.CONTEXT.getVelocityPage());

        final RequestData requestData = requestUtil.getRequestData(request);
        final VelocityPageContextDataPojo context = new VelocityPageContextDataPojo();
       
        UrlPojo url = new UrlPojo();
        url.setCode(BoUrls.GET_CATALOG_AJAX.name());
        url.setUrl(backofficeUrlService.generateUrl(BoUrls.GET_CATALOG_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);

        url = new UrlPojo();
        url.setCode(BoUrls.GET_PRODUCT_LIST_AJAX.name());
        url.setUrl(backofficeUrlService.generateUrl(BoUrls.GET_PRODUCT_LIST_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);

        url = new UrlPojo();
        url.setCode(BoUrls.GET_PRODUCT_LIST_FOR_CATALOG_CATEGORY_AJAX.name());
        url.setUrl(backofficeUrlService.generateUrl(BoUrls.GET_PRODUCT_LIST_FOR_CATALOG_CATEGORY_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        url = new UrlPojo();
        url.setCode(BoUrls.SET_PRODUCT_LIST_FOR_CATALOG_CATEGORY_AJAX.name());
        url.setUrl(backofficeUrlService.generateUrl(BoUrls.SET_PRODUCT_LIST_FOR_CATALOG_CATEGORY_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        ObjectMapper mapper = new ObjectMapper();
        try {
            String contextJson = mapper.writeValueAsString(context);
View Full Code Here


        final VelocityPageContextDataPojo context = new VelocityPageContextDataPojo();
       
        // TODO : move this value in a EngineSetting
        context.setCartMaxItemQuantity(5);
       
        UrlPojo url = new UrlPojo();
       
        url = new UrlPojo();
        url.setCode(FoUrls.ADD_TO_WISHLIST_AJAX.name());
        url.setUrl(urlService.generateUrl(FoUrls.ADD_TO_WISHLIST_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        url = new UrlPojo();
        url.setCode(FoUrls.GET_CART_AJAX.name());
        url.setUrl(urlService.generateUrl(FoUrls.GET_CART_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);

        url = new UrlPojo();
        url.setCode(FoUrls.ADD_TO_CART_AJAX.name());
        url.setUrl(urlService.generateUrl(FoUrls.ADD_TO_CART_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        url = new UrlPojo();
        url.setCode(FoUrls.UPDATE_CART_ITEM_AJAX.name());
        url.setUrl(urlService.generateUrl(FoUrls.UPDATE_CART_ITEM_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        url = new UrlPojo();
        url.setCode(FoUrls.DELETE_CART_ITEM_AJAX.name());
        url.setUrl(urlService.generateUrl(FoUrls.DELETE_CART_ITEM_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        url = new UrlPojo();
        url.setCode(FoUrls.SET_SHIPPING_ADDRESS_AJAX.name());
        url.setUrl(urlService.generateUrl(FoUrls.SET_SHIPPING_ADDRESS_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        url = new UrlPojo();
        url.setCode(FoUrls.SET_BILLING_ADDRESS_AJAX.name());
        url.setUrl(urlService.generateUrl(FoUrls.SET_BILLING_ADDRESS_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        url = new UrlPojo();
        url.setCode(FoUrls.SET_DELIVERY_METHOD_AJAX.name());
        url.setUrl(urlService.generateUrl(FoUrls.SET_DELIVERY_METHOD_AJAX, requestData));
        url.setMethod("GET");
        context.getUrls().add(url);
       
        ObjectMapper mapper = new ObjectMapper();
        try {
            String contextJson = mapper.writeValueAsString(context);
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.pojo.UrlPojo

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.