svn commit: r899854 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r899854 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java

doogie-3
Author: doogie
Date: Sat Jan 16 00:43:34 2010
New Revision: 899854

URL: http://svn.apache.org/viewvc?rev=899854&view=rev
Log:
Allow frontends to store completely arbitrary helper attributes for each
ship group.

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?rev=899854&r1=899853&r2=899854&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Sat Jan 16 00:43:34 2010
@@ -4307,11 +4307,24 @@
         public Timestamp shipAfterDate = null;
         private String shipGroupSeqId = null;
         public String vendorPartyId = null;
+        public Map<String, Object> attributes = FastMap.newInstance();
 
         public CartShipInfo() {
             // Debug.logInfo(new Exception(), "Created a new CartShipInfo", module);
         }
 
+        public void setAttribute(String name, Object value) {
+            this.attributes.put(name, value);
+        }
+
+        public void removeAttribute(String name) {
+            this.attributes.remove(name);
+        }
+
+        public Object getAttribute(String name) {
+            return this.attributes.get(name);
+        }
+
         public String getOrderTypeId() { return orderTypeId; }
 
         public String getContactMechId() { return internalContactMechId; }