|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface ShoppingCart
The ShoppingCart is used to contain a list of ShoppingCartLines
. Each ShoppingCartLine
contains
a unique item. If the customer adds a ProductItem
that is already in the shopping cart, the quantity of the
existing ShoppingCartLine
is increased.
ShoppingCartHome
,
ShoppingCartLine
Method Summary | |
---|---|
void |
addItemsFromShoppingCart(ShoppingCart items)
Deprecated Add the ShoppingCartLines from the specified ShoppingCart to this ShoppingCart. |
ShoppingCartLine |
addProductItem(ProductItem item,
double quantity)
Deprecated Add an Item to the ShoppingCart. |
ShoppingCartLine |
addProductItem(ProductItem item,
double quantity,
Money unitMoney)
Deprecated Add an Item to the ShoppingCart. |
boolean |
addShoppingCartLine(ShoppingCartLine element)
Deprecated Ensures that this collection contains the specified element (optional operation). |
boolean |
addShoppingCartLineCollection(Collection collection)
Deprecated Adds all of the elements in the specified collection to this collection (optional operation). |
void |
clearShoppingCartLineCollection()
Deprecated Removes all of the elements from this collection (optional operation). |
boolean |
containsShoppingCartLine(ShoppingCartLine element)
Deprecated Returns true if this collection contains the specified element. |
boolean |
containsShoppingCartLineCollection(Collection c)
Deprecated Returns true if this collection contains all of the elements in the specified collection. |
ShoppingCartLine |
createShoppingCartLine()
Deprecated Used internally by the ShoppingCart to create ShoppingCartLines. |
boolean |
equalsShoppingCartLineCollection(Object object)
Deprecated Compares the specified object with this collection for equality. |
ShoppingCartLine |
findShoppingCartLine(String productIdentifier)
Deprecated Find the ShoppingCartLine associated with the specified Item. |
double |
getCategoryQuantity(String categoryId)
Deprecated Count the number of products that belong to a category. |
double |
getNumberOfUnits()
Deprecated Count the total quantity of items by summing the quantity on each line. |
ArrayList |
getOrderDiscountPresentations()
Deprecated Gets the order level discount list |
Money |
getShipping()
Deprecated Get the value of shipping |
ArrayList |
getShippingDiscountPresentations()
Deprecated Accessor method for the presentation of the discounts applied to the shipping, used by JSP pages for instance |
Collection |
getShoppingCartLineCollection()
Deprecated Returns the entire collection |
Money |
getSubtotal()
Deprecated Get the value of Subtotal |
Money |
getTotal()
Deprecated Get the value of total |
Money |
getTotal(int totalType)
Deprecated Gets the shopping cart total for the given total type. |
Money |
getTotalPrice()
Deprecated Gets the overal shopping cart total |
boolean |
isEmpty()
Deprecated Returns true if the shopping cart has no items |
boolean |
isShoppingCartLineCollectionEmpty()
Deprecated Returns true if this collection contains no elements. |
void |
removeAllProductItems()
Deprecated Removes all ShoppingCartLines. |
ProductItem |
removeProductItem(String productIdentifier)
Deprecated Remove the ShoppingCartLine associated with the Item specified. |
boolean |
removeShoppingCartLine(ShoppingCartLine element)
Deprecated Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeShoppingCartLineCollection(Collection collection)
Deprecated Removes all this collection's elements that are also contained in the specified collection (optional operation). |
boolean |
retainShoppingCartLineCollection(Collection collection)
Deprecated Retains only the elements in this collection that are contained in the specified collection (optional operation). |
void |
setOrderDiscountPresentations(ArrayList discountPresentations)
Deprecated sets the order level discount list |
void |
setProductItemQuantity(ProductItem item,
double quantity)
Deprecated Sets the Quantity of the ShoppingCartLine associated with this Item. |
void |
setShipping(Money shipping)
Deprecated Set the value of shipping |
void |
setShippingDiscountPresentations(ArrayList discountPresentations)
Deprecated sets Order Discount Description |
void |
setShoppingCartLineCollection(Collection collection)
Deprecated Sets the entire collection |
void |
setSubtotal(Money subtotal)
Deprecated Set the value of subtotal |
void |
setTotal(Money total)
Deprecated Set the value of total |
int |
shoppingCartLineCollectionHashCode()
Deprecated Returns the hash code value for this collection. |
Iterator |
shoppingCartLineCollectionIterator()
Deprecated Returns an iterator over the elements in this collection. |
int |
shoppingCartLineCollectionSize()
Deprecated Returns the number of elements in this collection. |
Methods inherited from interface com.beasys.commerce.foundation.Belonging |
---|
clone, equals, interfaceName, setByValue, value |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
Money getTotal()
void setTotal(Money total)
subtotal
- total to be setMoney getSubtotal()
void setSubtotal(Money subtotal)
subtotal
- subtotal to be setMoney getShipping()
void setShipping(Money shipping)
shipping
- shipping to be setCollection getShoppingCartLineCollection()
void setShoppingCartLineCollection(Collection collection)
boolean addShoppingCartLine(ShoppingCartLine element)
boolean addShoppingCartLineCollection(Collection collection)
void clearShoppingCartLineCollection()
boolean containsShoppingCartLine(ShoppingCartLine element)
boolean containsShoppingCartLineCollection(Collection c)
boolean equalsShoppingCartLineCollection(Object object)
int shoppingCartLineCollectionHashCode()
boolean isShoppingCartLineCollectionEmpty()
Iterator shoppingCartLineCollectionIterator()
boolean removeShoppingCartLine(ShoppingCartLine element)
boolean removeShoppingCartLineCollection(Collection collection)
boolean retainShoppingCartLineCollection(Collection collection)
int shoppingCartLineCollectionSize()
void addItemsFromShoppingCart(ShoppingCart items) throws InvalidArgumentException
InvalidArgumentException
ShoppingCartLine addProductItem(ProductItem item, double quantity) throws InvalidArgumentException
InvalidArgumentException
void setProductItemQuantity(ProductItem item, double quantity) throws InvalidArgumentException
InvalidArgumentException
ProductItem removeProductItem(String productIdentifier) throws InvalidArgumentException
productIdentifier,
- (See productItem.getKey( ).getIdentifier( ) )
InvalidArgumentException
void removeAllProductItems()
ShoppingCartLine findShoppingCartLine(String productIdentifier) throws ItemNotInShoppingCartException, InvalidArgumentException
productIdentifier,
- (See productItem.getKey( ).getIdentifier( ) )
ItemNotInShoppingCartException
InvalidArgumentException
double getNumberOfUnits()
double getCategoryQuantity(String categoryId) throws RemoteException
RemoteException
ShoppingCartLine createShoppingCartLine()
ShoppingCartLine addProductItem(ProductItem item, double quantity, Money unitMoney) throws InvalidArgumentException
InvalidArgumentException
boolean isEmpty()
Money getTotal(int totalType) throws InvalidArgumentException
total
- type
InvalidArgumentException
Money getTotalPrice()
ArrayList getOrderDiscountPresentations()
void setOrderDiscountPresentations(ArrayList discountPresentations)
ArrayList getShippingDiscountPresentations()
void setShippingDiscountPresentations(ArrayList discountPresentations)
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |