Package com.ateam.webstore.service.impl

Examples of com.ateam.webstore.service.impl.ProductsInWishListService


    WishList wl = getWishList();
   
    if (req.getParameter(Parameters.REMOVE.getId()) != null) {
      String removeId = req.getParameter(Parameters.REMOVE.getId());
      l.info("removing wish list item "+removeId+" for session: "+req.getSession().getId());
      ProductsInWishListService piwls = new ProductsInWishListService();
      ProductsInWishList piwl = piwls.getById(new Long(removeId));
      piwls.remove(piwl);
    }

    wlv.setWishList(wl);
   
    wlv.addContentView(new ContentView(JSP_WISHLIST, wl.getName()));
View Full Code Here


  public FormSubmission moveSelectedToCart() {

    WishList wl = getWishList();
    CartHandler ch = new CartHandler(req);
    ProductsInWishListService pinwl = new ProductsInWishListService();
    FormSubmission fs = new FormSubmission();
   
    int i = 0;
   
    for (ProductsInWishList p : wl.getProducts()) {
      String prodId = p.getProduct().getId()+"";
      if (req.getParameter(prodId) != null) {
        l.fine("moving prodId :"+prodId+" to cart");
        ch.addProduct(prodId);
        pinwl.remove(p);
        i++;
      }
    }
   
    if (i > 0) {
View Full Code Here

TOP

Related Classes of com.ateam.webstore.service.impl.ProductsInWishListService

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.