Package com.jada.content.data

Examples of com.jada.content.data.ItemInfo


      ContentApi api = new ContentApi(request);
      Vector<ItemInfo> dataList = new Vector<ItemInfo>();
      Iterator<?> iterator = ContentLookupDispatchAction.getItemCompareList(request).iterator();
      while (iterator.hasNext()) {
        String itemId = (String) iterator.next();
        ItemInfo itemInfo = api.getItem(Format.getLong(itemId), false);
        dataList.add(itemInfo);
      }
     
      // merge with template and stream.
    TemplateEngine engine = TemplateEngine.getInstance();
View Full Code Here


  public PageHeaderInfo getPageItemInfo() throws Exception {
    PageHeaderInfo pageHeaderInfo = new PageHeaderInfo();
   
    String itemNaturalKey = getItemKey();
    boolean updateStatistics = false;
    ItemInfo itemInfo = api.getItem(itemNaturalKey, updateStatistics);
    if (itemInfo == null) {
      pageHeaderInfo.setPageTitle(siteName + " - " + getLanguageByValue("Page not found"));
          pageHeaderInfo.setMetaKeywords("");
          pageHeaderInfo.setMetaDescription("");
          return pageHeaderInfo;
    }
    pageHeaderInfo.setPageTitle(itemInfo.getPageTitle());
    pageHeaderInfo.setMetaKeywords(itemInfo.getMetaKeywords());
    pageHeaderInfo.setMetaDescription(itemInfo.getMetaDescription());

    return pageHeaderInfo;
  }
View Full Code Here

     */
    @Deprecated
  public String getPageItemTitle() throws Exception {
    String itemNaturalKey = getItemKey();
    boolean updateStatistics = false;
    ItemInfo itemInfo = api.getItem(itemNaturalKey, updateStatistics);
    if (itemInfo == null) {
      return siteName + " - " + getLanguageByValue("Page not found");
    }
    return siteName + " - " + itemInfo.getPageTitle();
  }
View Full Code Here

     */
    @Deprecated
  public String getPageItemCommentTitle() throws Exception {
    String itemNaturalKey = getItemKey();
    boolean updateStatistics = false;
    ItemInfo itemInfo = api.getItem(itemNaturalKey, updateStatistics);
    return siteName + " - " + itemInfo.getPageTitle();
  }
View Full Code Here

  }
 
  public ItemInfo getItem() throws Exception {
    String itemNaturalKey = getItemKey();
    boolean updateStatistics = true;
    ItemInfo itemInfo = api.getItem(itemNaturalKey, updateStatistics);
    return itemInfo;
  }
View Full Code Here

        while (itemsCrossSell.hasNext()) {
          Item upSellItem = (Item) itemsCrossSell.next();
          if (isExist(crossSellItems, upSellItem)) {
            continue;
          }
          ItemInfo itemInfo = contentApi.formatItem(upSellItem);
            crossSellItems.add(itemInfo);
        }
      }
      form.setCrossSellItems(crossSellItems);
    }
View Full Code Here

    }
   
    private boolean isExist(Vector<?> crossSellItems, Item item) {
      Iterator<?> iterator = crossSellItems.iterator();
      while (iterator.hasNext()) {
        ItemInfo shoppingCartItemBean = (ItemInfo) iterator.next();
        if (shoppingCartItemBean.getItemId().equals(item.getItemId().toString())) {
          return true;
        }
      }
      return false;
    }
View Full Code Here

TOP

Related Classes of com.jada.content.data.ItemInfo

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.