Java Doc for ShoppingCart.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » order » shoppingcart » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » SourceTap CRM » org.ofbiz.order.shoppingcart 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.order.shoppingcart.ShoppingCart

All known Subclasses:   org.ofbiz.order.shoppingcart.WebShoppingCart,
ShoppingCart
public class ShoppingCart implements java.io.Serializable(Code)

Title: ShoppingCart.java

Description: Shopping Cart Object.
author:
   Andy Zeneski
author:
   Chris Nelson
author:
   David E. Jones
version:
   $Revision: 1.39 $
since:
   2.0


Inner Class :public static class ProductPromoUseInfo
Inner Class :static class BasePriceOrderComparator implements Comparator

Field Summary
final public static  Stringmodule
    

Constructor Summary
protected  ShoppingCart()
    
public  ShoppingCart(ShoppingCart cart)
     Creates a new cloned ShoppingCart Object.
public  ShoppingCart(GenericDelegator delegator, String productStoreId, String webSiteId, String currencyUom)
     Creates new empty ShoppingCart object.

Method Summary
public  voidaddAdjustment(GenericValue adjustment)
    
public  voidaddContactMech(String contactMechPurposeTypeId, String contactMechId)
    
public  voidaddFreeShippingProductPromoAction(GenericValue productPromoAction)
     Adds a ProductPromoAction to be used for free shipping (must be of type free shipping, or nothing will be done).
public  intaddItem(int index, ShoppingCartItem item)
     Add an item to the shopping cart.
public  intaddItemToEnd(String productId, double amount, double quantity, HashMap features, HashMap attributes, String prodCatalogId, LocalDispatcher dispatcher)
     Add an item to the shopping cart.
public  intaddItemToEnd(ShoppingCartItem item)
     Add an item to the shopping cart.
public  intaddNonProductItem(String itemType, String description, String categoryId, double price, double quantity, Map attributes, String prodCatalogId, LocalDispatcher dispatcher)
     Add a non-product item to the shopping cart.
public  intaddOrIncreaseItem(String productId, double selectedAmount, double quantity, Map features, Map attributes, String prodCatalogId, LocalDispatcher dispatcher)
     Add an item to the shopping cart, or if already there, increase the quantity.
public  intaddOrIncreaseItem(String productId, double quantity, Map features, Map attributes, String prodCatalogId, LocalDispatcher dispatcher)
    
public  voidaddPaymentMethodTypeId(String paymentMethodTypeId)
     Add the Payment Method Type Id to the cart.
public  voidaddPaymentMethodTypeId(String paymentMethodTypeId, Double amount)
     Add the Payment Method Type Id with amount to the cart.
public  StringaddProductPromoCode(String productPromoCodeId, LocalDispatcher dispatcher)
     Adds a promotion code to the cart, checking if it is valid.
public  voidaddProductPromoUse(String productPromoId, String productPromoCodeId, double totalDiscountAmount, double quantityLeftInActions)
    
public  voidclear()
     Clears out the cart.
public  voidclearAllPromotionAdjustments()
    
public  voidclearAllPromotionInformation()
    
public  voidclearCartItemUseInPromoInfo()
    
public  voidclearPaymentMethodId(String paymentMethodId)
     Clears a specific Payment Method Id.
public  voidclearPaymentMethodIds()
     Clears the list of Payment Method Ids.
public  voidclearPaymentMethodTypeIds()
     Clears the list of Payment Method Type Ids.
public  voidclearProductPromoUseInfo()
    
public synchronized  voidconfirmPromoRuleUse(String productPromoId, String productPromoRuleId)
    
protected  voidfinalize()
    
public  ListfindAllCartItems(String productId)
     Get all ShoppingCartItems from the cart object with the given productId.
public  ShoppingCartItemfindCartItem(String productId, Map features, Map attributes, String prodCatalogId, double selectedAmount)
     Get a ShoppingCartItem from the cart object.
public  ShoppingCartItemfindCartItem(int index)
     Get a ShoppingCartItem from the cart object.
public  ListgetAdjustments()
    
public  GenericValuegetAutoUserLogin()
    
public  doublegetBillingAccountAmount()
     Returns the amount to be billed to the billing account.
public  StringgetBillingAccountId()
     Returns the billing message string.
public  StringgetCarrierPartyId()
    
public  StringgetContactMech(String contactMechPurposeTypeId)
    
public  StringgetCurrency()
     Get the current currency setting.
public  GenericDelegatorgetDelegator()
    
public  MapgetFeatureIdQtyMap()
     Returns a Map of all features applied to products in the cart with quantities.
public  StringgetFirstAttemptOrderId()
     Returns the first attempt order ID associated with this cart or null if no order has been created yet.
public  ListgetFreeShippingProductPromoActions()
    
public  ListgetGiftCards()
    
public  StringgetGiftMessage()
    
public  doublegetGrandTotal()
     Returns the total from the cart, including tax/shipping.
public  BooleangetIsGift()
    
public  intgetItemIndex(ShoppingCartItem item)
     Returns this item's index.
public  doublegetItemTotal()
     Returns the item-total in the cart (not including discount/tax/shipping).
public  ListgetLineListOrderedByBasePrice(boolean ascending)
    
public  LocalegetLocale()
    
public  BooleangetMaySplit()
    
public  StringgetOrderAdditionalEmails()
    
public  MapgetOrderContactMechIds()
    
public  StringgetOrderId()
     Returns the order ID associated with this cart or null if no order has been created yet.
public  doublegetOrderOtherAdjustmentTotal()
    
public  GenericValuegetOrderShipmentPreference()
    
public  doublegetOrderShipping()
    
public  StringgetOrderType()
     Returns the order type.
public  DoublegetPartyDaysSinceCreated(Timestamp nowTimestamp)
    
public  StringgetPartyId()
    
public  DoublegetPaymentMethodAmount(String paymentMethodId)
     Returns set amount of the Payment Method.
public  ListgetPaymentMethodIds()
     Returns the Payment Method Ids.
public  ListgetPaymentMethodTypeIds()
     Returns the Payment Method Ids.
public  ListgetPaymentMethods()
    
public  StringgetPoNumber()
     Returns the po number.
public  intgetProductPromoCodeUse(String productPromoCodeId)
    
public  SetgetProductPromoCodesEntered()
    
public  intgetProductPromoUseCount(String productPromoId)
    
public  IteratorgetProductPromoUseInfoIter()
    
public  doublegetProductPromoUseTotalDiscount(String productPromoId)
    
public  StringgetProductStoreId()
    
public  ListgetSelectedPaymentMethods()
     Returns a list of PaymentMethod value objects selected in the cart.
public  doublegetSelectedPaymentMethodsTotal()
     Returns the total amount of the selected Payment Method(s).
public  StringgetShipmentMethodTypeId()
    
public  doublegetShippableQuantity()
     Returns the total SHIPPABLE quantity in the cart.
public  ListgetShippableSizes()
     Returns a List of shippable item's size.
public  doublegetShippableTotal()
     Returns the SHIPPABLE item-total in the cart.
public  doublegetShippableWeight()
     Returns the total SHIPPABLE weight in the cart.
public  GenericValuegetShippingAddress()
    
public  StringgetShippingContactMechId()
     Returns the shipping message string.
public  StringgetShippingInstructions()
     Returns the shipping instructions.
public  doublegetSubTotal()
     Returns the sub-total in the cart (item-total - discount).
public  doublegetSubTotalForPromotions()
     Returns the sub-total in the cart (item-total - discount).
public  doublegetTotalQuantity()
     Returns the total quantity in the cart.
public  doublegetTotalSalesTax()
     Returns the tax amount from the cart object.
public  doublegetTotalShipping()
     Returns the shipping amount from the cart object.
public  doublegetTotalWeight()
     Returns the total weight in the cart.
public  GenericValuegetUserLogin()
    
public  StringgetWebSiteId()
    
public  voidhandleNewUser(LocalDispatcher dispatcher)
    
public  booleanisPaymentMethodSelected(String paymentMethodId)
     Checks to see if a Payment Method is selected.
public  Listitems()
     Returns a Collection of items in the cart object.
public  Iteratoriterator()
     Returns an iterator of cart items.
public  ListmakeAllAdjustments()
    
public  ListmakeAllOrderContactMechs()
    
public  ListmakeAllOrderItemContactMechs()
    
public  ListmakeAllOrderItemPriceInfos()
    
public  ListmakeAllOrderItemSurveyResponses()
    
public  ListmakeAllOrderPaymentPreferences()
    
public  ListmakeAllOrderShipmentPreferences()
    
public  MapmakeCartMap(LocalDispatcher dispatcher, boolean explodeItems)
    
public  ListmakeOrderItems()
    
public  ListmakeOrderItems(boolean explodeItems, LocalDispatcher dispatcher)
    
public  ListmakeProductPromoUses()
    
public  voidmoveCartItem(int fromIndex, int toIndex)
     Moves a line item to a differnt index.
public  voidremoveAdjustment(int index)
    
public  voidremoveAdjustmentByType(String orderAdjustmentTypeId)
    
public  voidremoveAllFreeShippingProductPromoActions()
    
public  voidremoveCartItem(int index, LocalDispatcher dispatcher)
     Remove an item from the cart object.
public  StringremoveContactMech(String contactMechPurposeTypeId)
    
public  voidremoveEmptyCartItems()
     Remove quantity 0 ShoppingCartItems from the cart object.
public  voidremoveFreeShippingProductPromoAction(GenericPK productPromoActionPK)
     Removes a free shipping ProductPromoAction by trying to find one in the list with the same primary key.
public synchronized  voidresetPromoRuleUse(String productPromoId, String productPromoRuleId)
    
public  voidsetAutoUserLogin(GenericValue autoUserLogin, LocalDispatcher dispatcher)
    
public  voidsetBillingAccount(String billingAccountId, double amount)
     Sets the billing account id string.
public  voidsetCarrierPartyId(String carrierPartyId)
    
public  voidsetCurrency(LocalDispatcher dispatcher, String currencyUom)
     Sets the currency for the cart.
public  voidsetFirstAttemptOrderId(String orderId)
     Sets the first attempt orderId for this cart.
public  voidsetGiftMessage(String giftMessage)
    
public  voidsetIsGift(Boolean isGift)
    
public  voidsetLocale(Locale locale)
    
public  voidsetMaySplit(Boolean maySplit)
    
public  voidsetOrderAdditionalEmails(String orderAdditionalEmails)
    
public  voidsetOrderId(String orderId)
     Sets the orderId associated with this cart.
public  voidsetOrderType(String orderType)
     Sets the order type.
public  voidsetPaymentMethodAmount(String paymentMethodId, Double amount, boolean isSingleUse)
     Sets the amount of a Payment Method.
public  voidsetPaymentMethodAmount(String paymentMethodId, Double amount)
    
public  voidsetPoNumber(String poNumber)
     Sets the PO Number in the cart.
public  voidsetProductStoreId(String productStoreId)
    
public  voidsetShipmentMethodTypeId(String shipmentMethodTypeId)
     Sets the shipment method type.
public  voidsetShippingContactMechId(String shippingContactMechId)
     Sets the shipping contact mech id.
public  voidsetShippingInstructions(String shippingInstructions)
     Sets the shipping instructions.
public  voidsetUserLogin(GenericValue userLogin, LocalDispatcher dispatcher)
    
public  voidsetViewCartOnAdd(boolean viewCartOnAdd)
     Returns true if the user wishes to view the cart everytime an item is added.
public  voidsetWebSiteId(String webSiteId)
    
public  intsize()
     Returns the number of items in the cart object.
public  booleanviewCartOnAdd()
     Returns true if the user wishes to view the cart everytime an item is added.

Field Detail
module
final public static String module(Code)




Constructor Detail
ShoppingCart
protected ShoppingCart()(Code)
don't allow empty constructor



ShoppingCart
public ShoppingCart(ShoppingCart cart)(Code)
Creates a new cloned ShoppingCart Object.



ShoppingCart
public ShoppingCart(GenericDelegator delegator, String productStoreId, String webSiteId, String currencyUom)(Code)
Creates new empty ShoppingCart object.




Method Detail
addAdjustment
public void addAdjustment(GenericValue adjustment)(Code)
Add an adjustment to the order; don't worry about setting the orderId, orderItemSeqId or orderAdjustmentId; they will be set when the order is created



addContactMech
public void addContactMech(String contactMechPurposeTypeId, String contactMechId)(Code)
Add a contact mech to this purpose; the contactMechPurposeTypeId is required



addFreeShippingProductPromoAction
public void addFreeShippingProductPromoAction(GenericValue productPromoAction)(Code)
Adds a ProductPromoAction to be used for free shipping (must be of type free shipping, or nothing will be done).



addItem
public int addItem(int index, ShoppingCartItem item)(Code)
Add an item to the shopping cart.



addItemToEnd
public int addItemToEnd(String productId, double amount, double quantity, HashMap features, HashMap attributes, String prodCatalogId, LocalDispatcher dispatcher) throws CartItemModifyException(Code)
Add an item to the shopping cart.



addItemToEnd
public int addItemToEnd(ShoppingCartItem item)(Code)
Add an item to the shopping cart.



addNonProductItem
public int addNonProductItem(String itemType, String description, String categoryId, double price, double quantity, Map attributes, String prodCatalogId, LocalDispatcher dispatcher) throws CartItemModifyException(Code)
Add a non-product item to the shopping cart. the new item index
throws:
  CartItemModifyException -



addOrIncreaseItem
public int addOrIncreaseItem(String productId, double selectedAmount, double quantity, Map features, Map attributes, String prodCatalogId, LocalDispatcher dispatcher) throws CartItemModifyException(Code)
Add an item to the shopping cart, or if already there, increase the quantity. the new/increased item index
throws:
  CartItemModifyException -



addOrIncreaseItem
public int addOrIncreaseItem(String productId, double quantity, Map features, Map attributes, String prodCatalogId, LocalDispatcher dispatcher) throws CartItemModifyException(Code)



addPaymentMethodTypeId
public void addPaymentMethodTypeId(String paymentMethodTypeId)(Code)
Add the Payment Method Type Id to the cart.



addPaymentMethodTypeId
public void addPaymentMethodTypeId(String paymentMethodTypeId, Double amount)(Code)
Add the Payment Method Type Id with amount to the cart.



addProductPromoCode
public String addProductPromoCode(String productPromoCodeId, LocalDispatcher dispatcher)(Code)
Adds a promotion code to the cart, checking if it is valid. If it is valid this will return null, otherwise it will return a message stating why it was not valid
Parameters:
  productPromoCodeId - The promotion code to check and add String that is null if valid, and added to cart, or an error message of the code was not valid and not added to the cart.



addProductPromoUse
public void addProductPromoUse(String productPromoId, String productPromoCodeId, double totalDiscountAmount, double quantityLeftInActions)(Code)



clear
public void clear()(Code)
Clears out the cart.



clearAllPromotionAdjustments
public void clearAllPromotionAdjustments()(Code)



clearAllPromotionInformation
public void clearAllPromotionInformation()(Code)



clearCartItemUseInPromoInfo
public void clearCartItemUseInPromoInfo()(Code)



clearPaymentMethodId
public void clearPaymentMethodId(String paymentMethodId)(Code)
Clears a specific Payment Method Id.



clearPaymentMethodIds
public void clearPaymentMethodIds()(Code)
Clears the list of Payment Method Ids.



clearPaymentMethodTypeIds
public void clearPaymentMethodTypeIds()(Code)
Clears the list of Payment Method Type Ids.



clearProductPromoUseInfo
public void clearProductPromoUseInfo()(Code)



confirmPromoRuleUse
public synchronized void confirmPromoRuleUse(String productPromoId, String productPromoRuleId)(Code)



finalize
protected void finalize() throws Throwable(Code)



findAllCartItems
public List findAllCartItems(String productId)(Code)
Get all ShoppingCartItems from the cart object with the given productId.



findCartItem
public ShoppingCartItem findCartItem(String productId, Map features, Map attributes, String prodCatalogId, double selectedAmount)(Code)
Get a ShoppingCartItem from the cart object.



findCartItem
public ShoppingCartItem findCartItem(int index)(Code)
Get a ShoppingCartItem from the cart object.



getAdjustments
public List getAdjustments()(Code)
Get a List of adjustments on the order (ie cart)



getAutoUserLogin
public GenericValue getAutoUserLogin()(Code)



getBillingAccountAmount
public double getBillingAccountAmount()(Code)
Returns the amount to be billed to the billing account.



getBillingAccountId
public String getBillingAccountId()(Code)
Returns the billing message string.



getCarrierPartyId
public String getCarrierPartyId()(Code)



getContactMech
public String getContactMech(String contactMechPurposeTypeId)(Code)
Get the contactMechId for this cart given the contactMechPurposeTypeId



getCurrency
public String getCurrency()(Code)
Get the current currency setting.



getDelegator
public GenericDelegator getDelegator()(Code)



getFeatureIdQtyMap
public Map getFeatureIdQtyMap()(Code)
Returns a Map of all features applied to products in the cart with quantities.



getFirstAttemptOrderId
public String getFirstAttemptOrderId()(Code)
Returns the first attempt order ID associated with this cart or null if no order has been created yet.



getFreeShippingProductPromoActions
public List getFreeShippingProductPromoActions()(Code)



getGiftCards
public List getGiftCards()(Code)



getGiftMessage
public String getGiftMessage()(Code)



getGrandTotal
public double getGrandTotal()(Code)
Returns the total from the cart, including tax/shipping.



getIsGift
public Boolean getIsGift()(Code)



getItemIndex
public int getItemIndex(ShoppingCartItem item)(Code)
Returns this item's index.



getItemTotal
public double getItemTotal()(Code)
Returns the item-total in the cart (not including discount/tax/shipping).



getLineListOrderedByBasePrice
public List getLineListOrderedByBasePrice(boolean ascending)(Code)



getLocale
public Locale getLocale()(Code)



getMaySplit
public Boolean getMaySplit()(Code)
Returns Boolean.TRUE if the order may be split (null if unspecified)



getOrderAdditionalEmails
public String getOrderAdditionalEmails()(Code)



getOrderContactMechIds
public Map getOrderContactMechIds()(Code)



getOrderId
public String getOrderId()(Code)
Returns the order ID associated with this cart or null if no order has been created yet.



getOrderOtherAdjustmentTotal
public double getOrderOtherAdjustmentTotal()(Code)



getOrderShipmentPreference
public GenericValue getOrderShipmentPreference()(Code)



getOrderShipping
public double getOrderShipping()(Code)
Returns the order level shipping amount



getOrderType
public String getOrderType()(Code)
Returns the order type.



getPartyDaysSinceCreated
public Double getPartyDaysSinceCreated(Timestamp nowTimestamp)(Code)



getPartyId
public String getPartyId()(Code)



getPaymentMethodAmount
public Double getPaymentMethodAmount(String paymentMethodId)(Code)
Returns set amount of the Payment Method.



getPaymentMethodIds
public List getPaymentMethodIds()(Code)
Returns the Payment Method Ids.



getPaymentMethodTypeIds
public List getPaymentMethodTypeIds()(Code)
Returns the Payment Method Ids.



getPaymentMethods
public List getPaymentMethods()(Code)



getPoNumber
public String getPoNumber()(Code)
Returns the po number.



getProductPromoCodeUse
public int getProductPromoCodeUse(String productPromoCodeId)(Code)



getProductPromoCodesEntered
public Set getProductPromoCodesEntered()(Code)



getProductPromoUseCount
public int getProductPromoUseCount(String productPromoId)(Code)



getProductPromoUseInfoIter
public Iterator getProductPromoUseInfoIter()(Code)



getProductPromoUseTotalDiscount
public double getProductPromoUseTotalDiscount(String productPromoId)(Code)



getProductStoreId
public String getProductStoreId()(Code)



getSelectedPaymentMethods
public List getSelectedPaymentMethods()(Code)
Returns a list of PaymentMethod value objects selected in the cart.



getSelectedPaymentMethodsTotal
public double getSelectedPaymentMethodsTotal()(Code)
Returns the total amount of the selected Payment Method(s).



getShipmentMethodTypeId
public String getShipmentMethodTypeId()(Code)
Returns the shipment method type



getShippableQuantity
public double getShippableQuantity()(Code)
Returns the total SHIPPABLE quantity in the cart.



getShippableSizes
public List getShippableSizes()(Code)
Returns a List of shippable item's size.



getShippableTotal
public double getShippableTotal()(Code)
Returns the SHIPPABLE item-total in the cart.



getShippableWeight
public double getShippableWeight()(Code)
Returns the total SHIPPABLE weight in the cart.



getShippingAddress
public GenericValue getShippingAddress()(Code)



getShippingContactMechId
public String getShippingContactMechId()(Code)
Returns the shipping message string.



getShippingInstructions
public String getShippingInstructions()(Code)
Returns the shipping instructions.



getSubTotal
public double getSubTotal()(Code)
Returns the sub-total in the cart (item-total - discount).



getSubTotalForPromotions
public double getSubTotalForPromotions()(Code)
Returns the sub-total in the cart (item-total - discount).



getTotalQuantity
public double getTotalQuantity()(Code)
Returns the total quantity in the cart.



getTotalSalesTax
public double getTotalSalesTax()(Code)
Returns the tax amount from the cart object.



getTotalShipping
public double getTotalShipping()(Code)
Returns the shipping amount from the cart object.



getTotalWeight
public double getTotalWeight()(Code)
Returns the total weight in the cart.



getUserLogin
public GenericValue getUserLogin()(Code)
Gets the userLogin associated with the cart; may be null



getWebSiteId
public String getWebSiteId()(Code)



handleNewUser
public void handleNewUser(LocalDispatcher dispatcher) throws CartItemModifyException(Code)



isPaymentMethodSelected
public boolean isPaymentMethodSelected(String paymentMethodId)(Code)
Checks to see if a Payment Method is selected.



items
public List items()(Code)
Returns a Collection of items in the cart object.



iterator
public Iterator iterator()(Code)
Returns an iterator of cart items.



makeAllAdjustments
public List makeAllAdjustments()(Code)
make a list of all adjustments including order adjustments, order line adjustments, and special adjustments (shipping and tax if applicable)



makeAllOrderContactMechs
public List makeAllOrderContactMechs()(Code)
make a list of OrderContactMechs from the ShoppingCart and the ShoppingCartItems



makeAllOrderItemContactMechs
public List makeAllOrderItemContactMechs()(Code)
make a list of OrderContactMechs from the ShoppingCart and the ShoppingCartItems



makeAllOrderItemPriceInfos
public List makeAllOrderItemPriceInfos()(Code)
make a list of OrderItemPriceInfos from the ShoppingCartItems



makeAllOrderItemSurveyResponses
public List makeAllOrderItemSurveyResponses()(Code)
make a list of SurveyResponse object to update with order information set



makeAllOrderPaymentPreferences
public List makeAllOrderPaymentPreferences()(Code)
make a list of all OrderPaymentPreferences including all payment methods and types



makeAllOrderShipmentPreferences
public List makeAllOrderShipmentPreferences()(Code)
make a list of all OrderShipmentPreferences including ones for the order and order lines



makeCartMap
public Map makeCartMap(LocalDispatcher dispatcher, boolean explodeItems)(Code)
Returns a Map of cart values to pass to the storeOrder service



makeOrderItems
public List makeOrderItems()(Code)



makeOrderItems
public List makeOrderItems(boolean explodeItems, LocalDispatcher dispatcher)(Code)



makeProductPromoUses
public List makeProductPromoUses()(Code)



moveCartItem
public void moveCartItem(int fromIndex, int toIndex)(Code)
Moves a line item to a differnt index.



removeAdjustment
public void removeAdjustment(int index)(Code)



removeAdjustmentByType
public void removeAdjustmentByType(String orderAdjustmentTypeId)(Code)
go through the order adjustments and remove all adjustments with the given type



removeAllFreeShippingProductPromoActions
public void removeAllFreeShippingProductPromoActions()(Code)



removeCartItem
public void removeCartItem(int index, LocalDispatcher dispatcher) throws CartItemModifyException(Code)
Remove an item from the cart object.



removeContactMech
public String removeContactMech(String contactMechPurposeTypeId)(Code)
Remove the contactMechId from this cart given the contactMechPurposeTypeId



removeEmptyCartItems
public void removeEmptyCartItems()(Code)
Remove quantity 0 ShoppingCartItems from the cart object.



removeFreeShippingProductPromoAction
public void removeFreeShippingProductPromoAction(GenericPK productPromoActionPK)(Code)
Removes a free shipping ProductPromoAction by trying to find one in the list with the same primary key.



resetPromoRuleUse
public synchronized void resetPromoRuleUse(String productPromoId, String productPromoRuleId)(Code)



setAutoUserLogin
public void setAutoUserLogin(GenericValue autoUserLogin, LocalDispatcher dispatcher) throws CartItemModifyException(Code)



setBillingAccount
public void setBillingAccount(String billingAccountId, double amount)(Code)
Sets the billing account id string.



setCarrierPartyId
public void setCarrierPartyId(String carrierPartyId)(Code)



setCurrency
public void setCurrency(LocalDispatcher dispatcher, String currencyUom) throws CartItemModifyException(Code)
Sets the currency for the cart.



setFirstAttemptOrderId
public void setFirstAttemptOrderId(String orderId)(Code)
Sets the first attempt orderId for this cart.



setGiftMessage
public void setGiftMessage(String giftMessage)(Code)



setIsGift
public void setIsGift(Boolean isGift)(Code)



setLocale
public void setLocale(Locale locale)(Code)



setMaySplit
public void setMaySplit(Boolean maySplit)(Code)



setOrderAdditionalEmails
public void setOrderAdditionalEmails(String orderAdditionalEmails)(Code)



setOrderId
public void setOrderId(String orderId)(Code)
Sets the orderId associated with this cart.



setOrderType
public void setOrderType(String orderType)(Code)
Sets the order type.



setPaymentMethodAmount
public void setPaymentMethodAmount(String paymentMethodId, Double amount, boolean isSingleUse)(Code)
Sets the amount of a Payment Method.



setPaymentMethodAmount
public void setPaymentMethodAmount(String paymentMethodId, Double amount)(Code)



setPoNumber
public void setPoNumber(String poNumber)(Code)
Sets the PO Number in the cart.



setProductStoreId
public void setProductStoreId(String productStoreId)(Code)



setShipmentMethodTypeId
public void setShipmentMethodTypeId(String shipmentMethodTypeId)(Code)
Sets the shipment method type.



setShippingContactMechId
public void setShippingContactMechId(String shippingContactMechId)(Code)
Sets the shipping contact mech id.



setShippingInstructions
public void setShippingInstructions(String shippingInstructions)(Code)
Sets the shipping instructions.



setUserLogin
public void setUserLogin(GenericValue userLogin, LocalDispatcher dispatcher) throws CartItemModifyException(Code)



setViewCartOnAdd
public void setViewCartOnAdd(boolean viewCartOnAdd)(Code)
Returns true if the user wishes to view the cart everytime an item is added.



setWebSiteId
public void setWebSiteId(String webSiteId)(Code)



size
public int size()(Code)
Returns the number of items in the cart object.



viewCartOnAdd
public boolean viewCartOnAdd()(Code)
Returns true if the user wishes to view the cart everytime an item is added.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.