Examples of ProductLink


Examples of com.google.code.magja.model.product.ProductLink

    // associate the products

    Product prd_master = products.get(0);

    ProductLink link_1 = new ProductLink();
    link_1.setId(products.get(1).getId());
    link_1.setPosition(1);
    link_1.setQty(new Double(10));
    link_1.setLinkType(LinkType.RELATED);

    try {
      service.assign(prd_master, link_1);
    } catch (ServiceException e) {
      e.printStackTrace();
View Full Code Here

Examples of com.google.code.magja.model.product.ProductLink

    GeneralServiceImpl<ProductLink> implements ProductLinkRemoteService {

  private static final long serialVersionUID=28223743577747311L;

  private ProductLink buildProductLink(Map<String, Object> map, LinkType linkType) {
    ProductLink link = new ProductLink();

    link.setLinkType(linkType);

    for (Map.Entry<String, Object> att : map.entrySet())
      link.set(att.getKey(), att.getValue());

    if (map.get("type") != null)
      link.setProductType(ProductTypeEnum.getTypeOf((String) map.get("type")));

    return link;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.