com.dotmarketing.cms.product.model
Class ShoppingCart

java.lang.Object
  extended by com.dotmarketing.cms.product.model.ShoppingCart

public class ShoppingCart
extends java.lang.Object


Constructor Summary
ShoppingCart()
           
 
Method Summary
 void addDiscount(DiscountCode discountCode)
           
 void addItem(int quantity, long formatInode)
          Add an item to the shoppingCart
 void clear()
          Clear the shoppingCart
 void deleteDiscountCode(java.lang.String discountId)
           
 void deleteItem(int quantity, long formatInode)
          Delete an item to the shoppingCart
 DiscountCode findDiscountCode(java.lang.String discountId)
           
 Holder findHolder(long formatInode)
          Find an entry in the shopping cart
 java.util.List<DiscountCode> getDiscountCodes()
           
 java.util.List<Holder> getHolders()
           
 long getInode()
           
 User getUser()
           
 int numberItems()
          return how many items do you have in the shopping cart
 void removeItem(long formatInode)
           
 void setDiscountCodes(java.util.List<DiscountCode> discountCodes)
           
 void setHolders(java.util.List<Holder> holders)
           
 void setInode(long inode)
           
 void setQuantityItem(int quantity, long formatInode)
          Set the quantity of an entry in the shoppingCart
 void setQuantityItemByHolderInode(int quantity, long HolderInode)
           
 void setUser(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCart

public ShoppingCart()
Method Detail

getHolders

public java.util.List<Holder> getHolders()

setHolders

public void setHolders(java.util.List<Holder> holders)

getDiscountCodes

public java.util.List<DiscountCode> getDiscountCodes()

setDiscountCodes

public void setDiscountCodes(java.util.List<DiscountCode> discountCodes)

findHolder

public Holder findHolder(long formatInode)
Find an entry in the shopping cart

Parameters:
formatInode -
Returns:

addItem

public void addItem(int quantity,
                    long formatInode)
Add an item to the shoppingCart

Parameters:
quantity -
formatInode -

setQuantityItem

public void setQuantityItem(int quantity,
                            long formatInode)
Set the quantity of an entry in the shoppingCart

Parameters:
quantity -
formatInode -

setQuantityItemByHolderInode

public void setQuantityItemByHolderInode(int quantity,
                                         long HolderInode)

deleteItem

public void deleteItem(int quantity,
                       long formatInode)
Delete an item to the shoppingCart

Parameters:
quantity -
formatInode -

removeItem

public void removeItem(long formatInode)

clear

public void clear()
Clear the shoppingCart


numberItems

public int numberItems()
return how many items do you have in the shopping cart


addDiscount

public void addDiscount(DiscountCode discountCode)

findDiscountCode

public DiscountCode findDiscountCode(java.lang.String discountId)

deleteDiscountCode

public void deleteDiscountCode(java.lang.String discountId)

getUser

public User getUser()

setUser

public void setUser(User user)

getInode

public long getInode()

setInode

public void setInode(long inode)


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.