Author: doogie
Date: Sat Jan 16 00:43:34 2010
New Revision: 899854
URL:
http://svn.apache.org/viewvc?rev=899854&view=revLog:
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; }