1
22
23 package com.liferay.portlet.shopping.service;
24
25
26
47 public class ShoppingItemLocalServiceUtil {
48 public static com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
49 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
50 throws com.liferay.portal.SystemException {
51 return _service.addShoppingItem(shoppingItem);
52 }
53
54 public static void deleteShoppingItem(long itemId)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException {
57 _service.deleteShoppingItem(itemId);
58 }
59
60 public static void deleteShoppingItem(
61 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
62 throws com.liferay.portal.SystemException {
63 _service.deleteShoppingItem(shoppingItem);
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.ShoppingItem getShoppingItem(
79 long itemId)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 return _service.getShoppingItem(itemId);
83 }
84
85 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getShoppingItems(
86 int start, int end) throws com.liferay.portal.SystemException {
87 return _service.getShoppingItems(start, end);
88 }
89
90 public static int getShoppingItemsCount()
91 throws com.liferay.portal.SystemException {
92 return _service.getShoppingItemsCount();
93 }
94
95 public static com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
96 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
97 throws com.liferay.portal.SystemException {
98 return _service.updateShoppingItem(shoppingItem);
99 }
100
101 public static void addBookItems(long userId, long categoryId,
102 java.lang.String[] isbns)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException {
105 _service.addBookItems(userId, categoryId, isbns);
106 }
107
108 public static com.liferay.portlet.shopping.model.ShoppingItem addItem(
109 long userId, long categoryId, java.lang.String sku,
110 java.lang.String name, java.lang.String description,
111 java.lang.String properties, java.lang.String fieldsQuantities,
112 boolean requiresShipping, int stockQuantity, boolean featured,
113 java.lang.Boolean sale, boolean smallImage,
114 java.lang.String smallImageURL, java.io.File smallFile,
115 boolean mediumImage, java.lang.String mediumImageURL,
116 java.io.File mediumFile, boolean largeImage,
117 java.lang.String largeImageURL, java.io.File largeFile,
118 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
119 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
120 boolean addCommunityPermissions, boolean addGuestPermissions)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 return _service.addItem(userId, categoryId, sku, name, description,
124 properties, fieldsQuantities, requiresShipping, stockQuantity,
125 featured, sale, smallImage, smallImageURL, smallFile, mediumImage,
126 mediumImageURL, mediumFile, largeImage, largeImageURL, largeFile,
127 itemFields, itemPrices, addCommunityPermissions, addGuestPermissions);
128 }
129
130 public static com.liferay.portlet.shopping.model.ShoppingItem addItem(
131 long userId, long categoryId, java.lang.String sku,
132 java.lang.String name, java.lang.String description,
133 java.lang.String properties, java.lang.String fieldsQuantities,
134 boolean requiresShipping, int stockQuantity, boolean featured,
135 java.lang.Boolean sale, boolean smallImage,
136 java.lang.String smallImageURL, java.io.File smallFile,
137 boolean mediumImage, java.lang.String mediumImageURL,
138 java.io.File mediumFile, boolean largeImage,
139 java.lang.String largeImageURL, java.io.File largeFile,
140 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
141 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
142 java.lang.String[] communityPermissions,
143 java.lang.String[] guestPermissions)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException {
146 return _service.addItem(userId, categoryId, sku, name, description,
147 properties, fieldsQuantities, requiresShipping, stockQuantity,
148 featured, sale, smallImage, smallImageURL, smallFile, mediumImage,
149 mediumImageURL, mediumFile, largeImage, largeImageURL, largeFile,
150 itemFields, itemPrices, communityPermissions, guestPermissions);
151 }
152
153 public static com.liferay.portlet.shopping.model.ShoppingItem addItem(
154 long userId, long categoryId, java.lang.String sku,
155 java.lang.String name, java.lang.String description,
156 java.lang.String properties, java.lang.String fieldsQuantities,
157 boolean requiresShipping, int stockQuantity, boolean featured,
158 java.lang.Boolean sale, boolean smallImage,
159 java.lang.String smallImageURL, java.io.File smallFile,
160 boolean mediumImage, java.lang.String mediumImageURL,
161 java.io.File mediumFile, boolean largeImage,
162 java.lang.String largeImageURL, java.io.File largeFile,
163 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
164 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
165 java.lang.Boolean addCommunityPermissions,
166 java.lang.Boolean addGuestPermissions,
167 java.lang.String[] communityPermissions,
168 java.lang.String[] guestPermissions)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException {
171 return _service.addItem(userId, categoryId, sku, name, description,
172 properties, fieldsQuantities, requiresShipping, stockQuantity,
173 featured, sale, smallImage, smallImageURL, smallFile, mediumImage,
174 mediumImageURL, mediumFile, largeImage, largeImageURL, largeFile,
175 itemFields, itemPrices, addCommunityPermissions,
176 addGuestPermissions, communityPermissions, guestPermissions);
177 }
178
179 public static void addItemResources(long itemId,
180 boolean addCommunityPermissions, boolean addGuestPermissions)
181 throws com.liferay.portal.PortalException,
182 com.liferay.portal.SystemException {
183 _service.addItemResources(itemId, addCommunityPermissions,
184 addGuestPermissions);
185 }
186
187 public static void addItemResources(
188 com.liferay.portlet.shopping.model.ShoppingCategory category,
189 com.liferay.portlet.shopping.model.ShoppingItem item,
190 boolean addCommunityPermissions, boolean addGuestPermissions)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException {
193 _service.addItemResources(category, item, addCommunityPermissions,
194 addGuestPermissions);
195 }
196
197 public static void addItemResources(long itemId,
198 java.lang.String[] communityPermissions,
199 java.lang.String[] guestPermissions)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 _service.addItemResources(itemId, communityPermissions, guestPermissions);
203 }
204
205 public static void addItemResources(
206 com.liferay.portlet.shopping.model.ShoppingCategory category,
207 com.liferay.portlet.shopping.model.ShoppingItem item,
208 java.lang.String[] communityPermissions,
209 java.lang.String[] guestPermissions)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException {
212 _service.addItemResources(category, item, communityPermissions,
213 guestPermissions);
214 }
215
216 public static void deleteItem(long itemId)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException {
219 _service.deleteItem(itemId);
220 }
221
222 public static void deleteItem(
223 com.liferay.portlet.shopping.model.ShoppingItem item)
224 throws com.liferay.portal.PortalException,
225 com.liferay.portal.SystemException {
226 _service.deleteItem(item);
227 }
228
229 public static void deleteItems(long categoryId)
230 throws com.liferay.portal.PortalException,
231 com.liferay.portal.SystemException {
232 _service.deleteItems(categoryId);
233 }
234
235 public static int getCategoriesItemsCount(java.util.List<Long> categoryIds)
236 throws com.liferay.portal.SystemException {
237 return _service.getCategoriesItemsCount(categoryIds);
238 }
239
240 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(
241 long groupId, long categoryId, int numOfItems)
242 throws com.liferay.portal.SystemException {
243 return _service.getFeaturedItems(groupId, categoryId, numOfItems);
244 }
245
246 public static com.liferay.portlet.shopping.model.ShoppingItem getItem(
247 long itemId)
248 throws com.liferay.portal.PortalException,
249 com.liferay.portal.SystemException {
250 return _service.getItem(itemId);
251 }
252
253 public static com.liferay.portlet.shopping.model.ShoppingItem getItem(
254 long companyId, java.lang.String sku)
255 throws com.liferay.portal.PortalException,
256 com.liferay.portal.SystemException {
257 return _service.getItem(companyId, sku);
258 }
259
260 public static com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
261 long largeImageId)
262 throws com.liferay.portal.PortalException,
263 com.liferay.portal.SystemException {
264 return _service.getItemByLargeImageId(largeImageId);
265 }
266
267 public static com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
268 long mediumImageId)
269 throws com.liferay.portal.PortalException,
270 com.liferay.portal.SystemException {
271 return _service.getItemByMediumImageId(mediumImageId);
272 }
273
274 public static com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
275 long smallImageId)
276 throws com.liferay.portal.PortalException,
277 com.liferay.portal.SystemException {
278 return _service.getItemBySmallImageId(smallImageId);
279 }
280
281 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
282 long categoryId) throws com.liferay.portal.SystemException {
283 return _service.getItems(categoryId);
284 }
285
286 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
287 long categoryId, int start, int end,
288 com.liferay.portal.kernel.util.OrderByComparator obc)
289 throws com.liferay.portal.SystemException {
290 return _service.getItems(categoryId, start, end, obc);
291 }
292
293 public static com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
294 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
295 throws com.liferay.portal.PortalException,
296 com.liferay.portal.SystemException {
297 return _service.getItemsPrevAndNext(itemId, obc);
298 }
299
300 public static int getItemsCount(long categoryId)
301 throws com.liferay.portal.SystemException {
302 return _service.getItemsCount(categoryId);
303 }
304
305 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(
306 long groupId, long categoryId, int numOfItems)
307 throws com.liferay.portal.SystemException {
308 return _service.getSaleItems(groupId, categoryId, numOfItems);
309 }
310
311 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(
312 long groupId, long[] categoryIds, java.lang.String keywords, int start,
313 int end) throws com.liferay.portal.SystemException {
314 return _service.search(groupId, categoryIds, keywords, start, end);
315 }
316
317 public static int searchCount(long groupId, long[] categoryIds,
318 java.lang.String keywords) throws com.liferay.portal.SystemException {
319 return _service.searchCount(groupId, categoryIds, keywords);
320 }
321
322 public static com.liferay.portlet.shopping.model.ShoppingItem updateItem(
323 long userId, long itemId, long categoryId, java.lang.String sku,
324 java.lang.String name, java.lang.String description,
325 java.lang.String properties, java.lang.String fieldsQuantities,
326 boolean requiresShipping, int stockQuantity, boolean featured,
327 java.lang.Boolean sale, boolean smallImage,
328 java.lang.String smallImageURL, java.io.File smallFile,
329 boolean mediumImage, java.lang.String mediumImageURL,
330 java.io.File mediumFile, boolean largeImage,
331 java.lang.String largeImageURL, java.io.File largeFile,
332 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
333 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices)
334 throws com.liferay.portal.PortalException,
335 com.liferay.portal.SystemException {
336 return _service.updateItem(userId, itemId, categoryId, sku, name,
337 description, properties, fieldsQuantities, requiresShipping,
338 stockQuantity, featured, sale, smallImage, smallImageURL,
339 smallFile, mediumImage, mediumImageURL, mediumFile, largeImage,
340 largeImageURL, largeFile, itemFields, itemPrices);
341 }
342
343 public static ShoppingItemLocalService getService() {
344 return _service;
345 }
346
347 public void setService(ShoppingItemLocalService service) {
348 _service = service;
349 }
350
351 private static ShoppingItemLocalService _service;
352 }