1
22
23 package com.liferay.portlet.shopping.service;
24
25
26
47 public class ShoppingCartLocalServiceUtil {
48 public static com.liferay.portlet.shopping.model.ShoppingCart addShoppingCart(
49 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
50 throws com.liferay.portal.SystemException {
51 return _service.addShoppingCart(shoppingCart);
52 }
53
54 public static void deleteShoppingCart(long cartId)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException {
57 _service.deleteShoppingCart(cartId);
58 }
59
60 public static void deleteShoppingCart(
61 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
62 throws com.liferay.portal.SystemException {
63 _service.deleteShoppingCart(shoppingCart);
64 }
65
66 public static java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return _service.dynamicQuery(dynamicQuery);
70 }
71
72 public static java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74 int end) throws com.liferay.portal.SystemException {
75 return _service.dynamicQuery(dynamicQuery, start, end);
76 }
77
78 public static com.liferay.portlet.shopping.model.ShoppingCart getShoppingCart(
79 long cartId)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 return _service.getShoppingCart(cartId);
83 }
84
85 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> getShoppingCarts(
86 int start, int end) throws com.liferay.portal.SystemException {
87 return _service.getShoppingCarts(start, end);
88 }
89
90 public static int getShoppingCartsCount()
91 throws com.liferay.portal.SystemException {
92 return _service.getShoppingCartsCount();
93 }
94
95 public static com.liferay.portlet.shopping.model.ShoppingCart updateShoppingCart(
96 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
97 throws com.liferay.portal.SystemException {
98 return _service.updateShoppingCart(shoppingCart);
99 }
100
101 public static void deleteGroupCarts(long groupId)
102 throws com.liferay.portal.SystemException {
103 _service.deleteGroupCarts(groupId);
104 }
105
106 public static void deleteUserCarts(long userId)
107 throws com.liferay.portal.SystemException {
108 _service.deleteUserCarts(userId);
109 }
110
111 public static com.liferay.portlet.shopping.model.ShoppingCart getCart(
112 long userId, long groupId)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException {
115 return _service.getCart(userId, groupId);
116 }
117
118 public static java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem, Integer> getItems(
119 long groupId, java.lang.String itemIds)
120 throws com.liferay.portal.SystemException {
121 return _service.getItems(groupId, itemIds);
122 }
123
124 public static com.liferay.portlet.shopping.model.ShoppingCart updateCart(
125 long userId, long groupId, java.lang.String itemIds,
126 java.lang.String couponCodes, int altShipping, boolean insure)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException {
129 return _service.updateCart(userId, groupId, itemIds, couponCodes,
130 altShipping, insure);
131 }
132
133 public static ShoppingCartLocalService getService() {
134 return _service;
135 }
136
137 public void setService(ShoppingCartLocalService service) {
138 _service = service;
139 }
140
141 private static ShoppingCartLocalService _service;
142 }