Class ShoppingListServices

java.lang.Object
org.apache.ofbiz.order.shoppinglist.ShoppingListServices

public class ShoppingListServices extends Object
Shopping List Services
  • Constructor Details

    • ShoppingListServices

      public ShoppingListServices()
  • Method Details

    • setShoppingListRecurrence

      public static Map<String,Object> setShoppingListRecurrence(DispatchContext dctx, Map<String,? extends Object> context)
    • createListReorders

      public static Map<String,Object> createListReorders(DispatchContext dctx, Map<String,? extends Object> context)
    • splitShipmentMethodString

      public static Map<String,Object> splitShipmentMethodString(DispatchContext dctx, Map<String,? extends Object> context)
    • makeListFromOrder

      public static Map<String,Object> makeListFromOrder(DispatchContext dctx, Map<String,? extends Object> context)
    • makeShoppingListCart

      public static ShoppingCart makeShoppingListCart(LocalDispatcher dispatcher, GenericValue shoppingList, Locale locale)
      Create a new shoppingCart form a shoppingList
      Parameters:
      dispatcher - the local dispatcher
      shoppingList - a GenericValue object of the shopping list
      locale - the locale in use
      Returns:
      returns a new shopping cart form a shopping list
    • makeShoppingListCart

      public static ShoppingCart makeShoppingListCart(ShoppingCart listCart, LocalDispatcher dispatcher, GenericValue shoppingList, Locale locale)
      Add a shoppinglist to an existing shoppingcart
      Parameters:
      listCart - the shopping cart list
      dispatcher - the local dispatcher
      shoppingList - a GenericValue object of the shopping list
      locale - the locale in use
      Returns:
      the modified shopping cart adding the shopping list elements
    • makeShoppingListCart

      public static ShoppingCart makeShoppingListCart(LocalDispatcher dispatcher, String shoppingListId, Locale locale)
    • updateShoppingListQuantitiesFromOrder

      public static Map<String,Object> updateShoppingListQuantitiesFromOrder(DispatchContext ctx, Map<String,? extends Object> context)
      Given an orderId, this service will look through all its OrderItems and for each shoppingListItemId and shoppingListItemSeqId, update the quantity purchased in the ShoppingListItem entity. Used for tracking how many of shopping list items are purchased. This service is mounted as a seca on storeOrder.
      Parameters:
      ctx - - The DispatchContext that this service is operating in
      context - - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • autoDeleteAutoSaveShoppingList

      public static Map<String,Object> autoDeleteAutoSaveShoppingList(DispatchContext dctx, Map<String,? extends Object> context)