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 com.liferay.portlet.shopping.model.ShoppingCart createShoppingCart(
56 long cartId);
57
58 public void deleteShoppingCart(long cartId)
59 throws com.liferay.portal.SystemException,
60 com.liferay.portal.PortalException;
61
62 public void deleteShoppingCart(
63 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
64 throws com.liferay.portal.SystemException;
65
66 public java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72 int end) throws com.liferay.portal.SystemException;
73
74 public com.liferay.portlet.shopping.model.ShoppingCart getShoppingCart(
75 long cartId)
76 throws com.liferay.portal.SystemException,
77 com.liferay.portal.PortalException;
78
79 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> getShoppingCarts(
80 int start, int end) throws com.liferay.portal.SystemException;
81
82 public int getShoppingCartsCount()
83 throws com.liferay.portal.SystemException;
84
85 public com.liferay.portlet.shopping.model.ShoppingCart updateShoppingCart(
86 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
87 throws com.liferay.portal.SystemException;
88
89 public void deleteGroupCarts(long groupId)
90 throws com.liferay.portal.SystemException;
91
92 public void deleteUserCarts(long userId)
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.shopping.model.ShoppingCart getCart(
96 long userId, long groupId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException;
99
100 public java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem, Integer> getItems(
101 long groupId, java.lang.String itemIds)
102 throws com.liferay.portal.SystemException;
103
104 public com.liferay.portlet.shopping.model.ShoppingCart updateCart(
105 long userId, long groupId, java.lang.String itemIds,
106 java.lang.String couponCodes, int altShipping, boolean insure)
107 throws com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException;
109 }