Author: lektran
Date: Fri May 14 09:46:31 2010
New Revision: 944176
URL:
http://svn.apache.org/viewvc?rev=944176&view=revLog:
The following deprecated classes, constructors or methods have been removed:
org.ofbiz.order.shoppingcart,ShoppingCartHelper.getProductSupplier(String, BigDecimal, String)
- Use ShoppingCart.getSupplierProduct(String, BigDecimal, LocalDispatcher) instead
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java?rev=944176&r1=944175&r2=944176&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java Fri May 14 09:46:31 2010
@@ -1039,26 +1039,4 @@ public class ShoppingCartHelper {
return result;
}
- /**
- * Get the first SupplierProduct record for productId with matching quantity and currency
- *
- * @deprecated replaced by {@link ShoppingCart#getSupplierProduct(String, java.math.BigDecimal, org.ofbiz.service.LocalDispatcher)}
- *
- * */
- @Deprecated
- public GenericValue getProductSupplier(String productId, BigDecimal quantity, String currencyUomId) {
- GenericValue productSupplier = null;
- Map params = UtilMisc.toMap("productId", productId, "partyId", cart.getPartyId(), "currencyUomId", currencyUomId, "quantity", quantity);
- try {
- Map result = dispatcher.runSync("getSuppliersForProduct", params);
- List productSuppliers = (List)result.get("supplierProducts");
- if ((productSuppliers != null) && (productSuppliers.size() > 0)) {
- productSupplier=(GenericValue) productSuppliers.get(0);
- }
- } catch (GenericServiceException e) {
- Debug.logWarning(UtilProperties.getMessage(resource_error,"OrderRunServiceGetSuppliersForProductError", cart.getLocale()) + e.getMessage(), module);
- }
- return productSupplier;
- }
-
}