1
22
23 package com.liferay.portlet.shopping.service;
24
25
26
50 public interface ShoppingCartLocalService {
51 public com.liferay.portlet.shopping.model.ShoppingCart addShoppingCart(
52 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
53 throws com.liferay.portal.SystemException;
54
55 public void deleteShoppingCart(long cartId)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portal.PortalException;
58
59 public void deleteShoppingCart(
60 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.SystemException;
70
71 public com.liferay.portlet.shopping.model.ShoppingCart getShoppingCart(
72 long cartId)
73 throws com.liferay.portal.SystemException,
74 com.liferay.portal.PortalException;
75
76 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> getShoppingCarts(
77 int start, int end) throws com.liferay.portal.SystemException;
78
79 public int getShoppingCartsCount()
80 throws com.liferay.portal.SystemException;
81
82 public com.liferay.portlet.shopping.model.ShoppingCart updateShoppingCart(
83 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
84 throws com.liferay.portal.SystemException;
85
86 public void deleteGroupCarts(long groupId)
87 throws com.liferay.portal.SystemException;
88
89 public void deleteUserCarts(long userId)
90 throws com.liferay.portal.SystemException;
91
92 public com.liferay.portlet.shopping.model.ShoppingCart getCart(
93 long userId, long groupId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException;
96
97 public java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem, Integer> getItems(
98 long groupId, java.lang.String itemIds)
99 throws com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.shopping.model.ShoppingCart updateCart(
102 long userId, long groupId, java.lang.String itemIds,
103 java.lang.String couponCodes, int altShipping, boolean insure)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106 }