From f8bf4ce6871edcf313d3ec80ed4569aa4e9113ec Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Sat, 16 Jan 2010 00:43:34 +0000 Subject: [PATCH] Allow frontends to store completely arbitrary helper attributes for each ship group. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899854 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/ofbiz/order/shoppingcart/ShoppingCart.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java index 37cb1da608..4c13f6aa94 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java @@ -4307,11 +4307,24 @@ public class ShoppingCart implements Serializable { public Timestamp shipAfterDate = null; private String shipGroupSeqId = null; public String vendorPartyId = null; + public Map 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; }