Package org.hoteia.qalingo.core.fetchplan

Examples of org.hoteia.qalingo.core.fetchplan.FetchPlan


                      @ModelAttribute(ModelConstants.PRODUCT_COMMENT_FORM) ProductCommentForm productCommentForm) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), FoUrls.PRODUCT_DETAILS.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);

    CatalogCategoryVirtual catalogCategory = catalogCategoryService.getVirtualCatalogCategoryByCode(categoryCode, requestData.getVirtualCatalogCode(), requestData.getMasterCatalogCode());
    ProductMarketing productMarketing = productService.getProductMarketingByCode(productMarketingCode, new FetchPlan(productMarketingFetchPlans));
        ProductSku productSku = productService.getProductSkuByCode(productSkuCode, new FetchPlan(productSkuFetchPlans));
   
    final CatalogCategoryViewBean catalogCategoryViewBean = frontofficeViewBeanFactory.buildViewBeanVirtualCatalogCategory(requestUtil.getRequestData(request), catalogCategory,
                                                                                       new FetchPlan(categoryVirtualFetchPlans), new FetchPlan(productMarketingFetchPlans), new FetchPlan(productSkuFetchPlans));
    model.addAttribute(ModelConstants.CATALOG_CATEGORY_VIEW_BEAN, catalogCategoryViewBean);

        final ProductMarketingViewBean productMarketingViewBean = frontofficeViewBeanFactory.buildViewBeanProductMarketing(requestUtil.getRequestData(request), catalogCategory, productMarketing, productSku);
        model.addAttribute(ModelConstants.PRODUCT_MARKETING_VIEW_BEAN, productMarketingViewBean);
       
View Full Code Here


  private final Logger logger = LoggerFactory.getLogger(getClass());

  public AbstractPaymentGateway getPaymentGatewayById(final Long paymentGatewayId, Object... params) {
        Criteria criteria = createDefaultCriteria(AbstractPaymentGateway.class);
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("id", paymentGatewayId));
        AbstractPaymentGateway paymentGateway = (AbstractPaymentGateway) criteria.uniqueResult();
        if(paymentGateway != null){
            paymentGateway.setFetchPlan(fetchPlan);
View Full Code Here

  }

    public AbstractPaymentGateway getPaymentGatewayByCode(final String paymentGatewayCode, Object... params) {
        Criteria criteria = createDefaultCriteria(AbstractPaymentGateway.class);

        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("code", handleCodeValue(paymentGatewayCode)));
        AbstractPaymentGateway paymentGateway = (AbstractPaymentGateway) criteria.uniqueResult();
        if(paymentGateway != null){
            paymentGateway.setFetchPlan(fetchPlan);
View Full Code Here

  // MARKET PLACE
 
    public MarketPlace getDefaultMarketPlace(Object... params) {
        Criteria criteria = createDefaultCriteria(MarketPlace.class);
       
        FetchPlan fetchPlan = handleSpecificFetchModeMarketPlace(criteria, params);
       
        criteria.add(Restrictions.eq("isDefault", true));
       
        MarketPlace marketPlace = (MarketPlace) criteria.uniqueResult();
        if(marketPlace != null){
View Full Code Here

    }
   
    public MarketPlace getMarketPlaceById(final Long marketPlaceId, Object... params) {
        Criteria criteria = createDefaultCriteria(MarketPlace.class);
       
        FetchPlan fetchPlan = handleSpecificFetchModeMarketPlace(criteria, params);

        criteria.add(Restrictions.eq("id", marketPlaceId));
       
        MarketPlace marketPlace = (MarketPlace) criteria.uniqueResult();
        if(marketPlace != null){
View Full Code Here

    }
   
    public MarketPlace getMarketPlaceByCode(final String code, Object... params) {
        Criteria criteria = createDefaultCriteria(MarketPlace.class);
       
        FetchPlan fetchPlan = handleSpecificFetchModeMarketPlace(criteria, params);

        criteria.add(Restrictions.eq("code", handleCodeValue(code)));
       
        MarketPlace marketPlace = (MarketPlace) criteria.uniqueResult();
        if(marketPlace != null){
View Full Code Here

  // MARKET
 
  public Market getDefaultMarket(Object... params) {
        Criteria criteria = createDefaultCriteria(Market.class);
       
        FetchPlan fetchPlan = handleSpecificFetchModeMarket(criteria, params);
       
        criteria.add(Restrictions.eq("isDefault", true));
       
        Market market = (Market) criteria.uniqueResult();
        if(market != null){
View Full Code Here

  }
 
  public Market getMarketById(final Long marketId, Object... params) {
        Criteria criteria = createDefaultCriteria(Market.class);

        FetchPlan fetchPlan = handleSpecificFetchModeMarket(criteria, params);

        criteria.add(Restrictions.eq("id", marketId));
       
        Market market = (Market) criteria.uniqueResult();
        if(market != null){
View Full Code Here

  }

  public Market getMarketByCode(final String code, Object... params) {
        Criteria criteria = createDefaultCriteria(Market.class);

        FetchPlan fetchPlan = handleSpecificFetchModeMarket(criteria, params);

        criteria.add(Restrictions.eq("code", handleCodeValue(code)));
       
        Market market = (Market) criteria.uniqueResult();
        if(market != null){
View Full Code Here

  // MARKET AREA

  public MarketArea getMarketAreaById(final Long marketAreaId, Object... params) {
        Criteria criteria = createDefaultCriteria(MarketArea.class);
       
        FetchPlan fetchPlan = handleSpecificFetchModeMarketArea(criteria, params);

        criteria.add(Restrictions.eq("id", marketAreaId));
       
        MarketArea marketArea = (MarketArea) criteria.uniqueResult();
        if(marketArea != null){
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.fetchplan.FetchPlan

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.