Class ShoppingListEvents


  • public class ShoppingListEvents
    extends java.lang.Object
    Shopping cart events.
    • Field Detail

      • module

        public static final java.lang.String module
      • PERSISTANT_LIST_NAME

        public static final java.lang.String PERSISTANT_LIST_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • ShoppingListEvents

        public ShoppingListEvents()
    • Method Detail

      • addBulkFromCart

        public static java.lang.String addBulkFromCart​(Delegator delegator,
                                                       LocalDispatcher dispatcher,
                                                       ShoppingCart cart,
                                                       GenericValue userLogin,
                                                       java.lang.String shoppingListId,
                                                       java.lang.String shoppingListTypeId,
                                                       java.lang.String[] items,
                                                       boolean allowPromo,
                                                       boolean append)
                                                throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • addListToCart

        public static java.lang.String addListToCart​(Delegator delegator,
                                                     LocalDispatcher dispatcher,
                                                     ShoppingCart cart,
                                                     java.lang.String prodCatalogId,
                                                     java.lang.String shoppingListId,
                                                     boolean includeChild,
                                                     boolean setAsListItem,
                                                     boolean append)
                                              throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • saveCartToAutoSaveList

        public static java.lang.String saveCartToAutoSaveList​(HttpServletRequest request,
                                                              HttpServletResponse response)
        Saves the shopping cart to the specialized (auto-save) shopping list
      • restoreAutoSaveList

        public static java.lang.String restoreAutoSaveList​(HttpServletRequest request,
                                                           HttpServletResponse response)
        Restores the specialized (auto-save) shopping list back into the shopping cart
      • getItemSurveyInfos

        public static java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getItemSurveyInfos​(java.util.List<GenericValue> items)
        Returns Map keyed on item sequence ID containing a list of survey response IDs
      • getItemSurveyInfo

        public static java.util.List<java.lang.String> getItemSurveyInfo​(GenericValue item)
        Returns a list of survey response IDs for a shopping list item
      • createGuestShoppingListCookies

        public static java.lang.String createGuestShoppingListCookies​(HttpServletRequest request,
                                                                      HttpServletResponse response)
        Create the guest cookies for a shopping list
      • clearGuestShoppingListCookies

        public static java.lang.String clearGuestShoppingListCookies​(HttpServletRequest request,
                                                                     HttpServletResponse response)
        Clear the guest cookies for a shopping list