1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.shopping.service;
16  
17  
18  /**
19   * <a href="ShoppingItemLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link ShoppingItemLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       ShoppingItemLocalService
32   * @generated
33   */
34  public class ShoppingItemLocalServiceWrapper implements ShoppingItemLocalService {
35      public ShoppingItemLocalServiceWrapper(
36          ShoppingItemLocalService shoppingItemLocalService) {
37          _shoppingItemLocalService = shoppingItemLocalService;
38      }
39  
40      public com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
41          com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
42          throws com.liferay.portal.SystemException {
43          return _shoppingItemLocalService.addShoppingItem(shoppingItem);
44      }
45  
46      public com.liferay.portlet.shopping.model.ShoppingItem createShoppingItem(
47          long itemId) {
48          return _shoppingItemLocalService.createShoppingItem(itemId);
49      }
50  
51      public void deleteShoppingItem(long itemId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _shoppingItemLocalService.deleteShoppingItem(itemId);
55      }
56  
57      public void deleteShoppingItem(
58          com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
59          throws com.liferay.portal.SystemException {
60          _shoppingItemLocalService.deleteShoppingItem(shoppingItem);
61      }
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return _shoppingItemLocalService.dynamicQuery(dynamicQuery);
67      }
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return _shoppingItemLocalService.dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public com.liferay.portlet.shopping.model.ShoppingItem getShoppingItem(
76          long itemId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return _shoppingItemLocalService.getShoppingItem(itemId);
80      }
81  
82      public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getShoppingItems(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return _shoppingItemLocalService.getShoppingItems(start, end);
85      }
86  
87      public int getShoppingItemsCount()
88          throws com.liferay.portal.SystemException {
89          return _shoppingItemLocalService.getShoppingItemsCount();
90      }
91  
92      public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
93          com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
94          throws com.liferay.portal.SystemException {
95          return _shoppingItemLocalService.updateShoppingItem(shoppingItem);
96      }
97  
98      public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
99          com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
100         boolean merge) throws com.liferay.portal.SystemException {
101         return _shoppingItemLocalService.updateShoppingItem(shoppingItem, merge);
102     }
103 
104     public void addBookItems(long userId, long categoryId,
105         java.lang.String[] isbns)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         _shoppingItemLocalService.addBookItems(userId, categoryId, isbns);
109     }
110 
111     public com.liferay.portlet.shopping.model.ShoppingItem addItem(
112         long userId, long categoryId, java.lang.String sku,
113         java.lang.String name, java.lang.String description,
114         java.lang.String properties, java.lang.String fieldsQuantities,
115         boolean requiresShipping, int stockQuantity, boolean featured,
116         java.lang.Boolean sale, boolean smallImage,
117         java.lang.String smallImageURL, java.io.File smallFile,
118         boolean mediumImage, java.lang.String mediumImageURL,
119         java.io.File mediumFile, boolean largeImage,
120         java.lang.String largeImageURL, java.io.File largeFile,
121         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
122         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
123         boolean addCommunityPermissions, boolean addGuestPermissions)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         return _shoppingItemLocalService.addItem(userId, categoryId, sku, name,
127             description, properties, fieldsQuantities, requiresShipping,
128             stockQuantity, featured, sale, smallImage, smallImageURL,
129             smallFile, mediumImage, mediumImageURL, mediumFile, largeImage,
130             largeImageURL, largeFile, itemFields, itemPrices,
131             addCommunityPermissions, addGuestPermissions);
132     }
133 
134     public com.liferay.portlet.shopping.model.ShoppingItem addItem(
135         long userId, long categoryId, java.lang.String sku,
136         java.lang.String name, java.lang.String description,
137         java.lang.String properties, java.lang.String fieldsQuantities,
138         boolean requiresShipping, int stockQuantity, boolean featured,
139         java.lang.Boolean sale, boolean smallImage,
140         java.lang.String smallImageURL, java.io.File smallFile,
141         boolean mediumImage, java.lang.String mediumImageURL,
142         java.io.File mediumFile, boolean largeImage,
143         java.lang.String largeImageURL, java.io.File largeFile,
144         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
145         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
146         java.lang.Boolean addCommunityPermissions,
147         java.lang.Boolean addGuestPermissions,
148         java.lang.String[] communityPermissions,
149         java.lang.String[] guestPermissions)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException {
152         return _shoppingItemLocalService.addItem(userId, categoryId, sku, name,
153             description, properties, fieldsQuantities, requiresShipping,
154             stockQuantity, featured, sale, smallImage, smallImageURL,
155             smallFile, mediumImage, mediumImageURL, mediumFile, largeImage,
156             largeImageURL, largeFile, itemFields, itemPrices,
157             addCommunityPermissions, addGuestPermissions, communityPermissions,
158             guestPermissions);
159     }
160 
161     public com.liferay.portlet.shopping.model.ShoppingItem addItem(
162         long userId, long categoryId, java.lang.String sku,
163         java.lang.String name, java.lang.String description,
164         java.lang.String properties, java.lang.String fieldsQuantities,
165         boolean requiresShipping, int stockQuantity, boolean featured,
166         java.lang.Boolean sale, boolean smallImage,
167         java.lang.String smallImageURL, java.io.File smallFile,
168         boolean mediumImage, java.lang.String mediumImageURL,
169         java.io.File mediumFile, boolean largeImage,
170         java.lang.String largeImageURL, java.io.File largeFile,
171         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
172         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
173         java.lang.String[] communityPermissions,
174         java.lang.String[] guestPermissions)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException {
177         return _shoppingItemLocalService.addItem(userId, categoryId, sku, name,
178             description, properties, fieldsQuantities, requiresShipping,
179             stockQuantity, featured, sale, smallImage, smallImageURL,
180             smallFile, mediumImage, mediumImageURL, mediumFile, largeImage,
181             largeImageURL, largeFile, itemFields, itemPrices,
182             communityPermissions, guestPermissions);
183     }
184 
185     public void addItemResources(long itemId, boolean addCommunityPermissions,
186         boolean addGuestPermissions)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException {
189         _shoppingItemLocalService.addItemResources(itemId,
190             addCommunityPermissions, addGuestPermissions);
191     }
192 
193     public void addItemResources(long itemId,
194         java.lang.String[] communityPermissions,
195         java.lang.String[] guestPermissions)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException {
198         _shoppingItemLocalService.addItemResources(itemId,
199             communityPermissions, guestPermissions);
200     }
201 
202     public void addItemResources(
203         com.liferay.portlet.shopping.model.ShoppingCategory category,
204         com.liferay.portlet.shopping.model.ShoppingItem item,
205         boolean addCommunityPermissions, boolean addGuestPermissions)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException {
208         _shoppingItemLocalService.addItemResources(category, item,
209             addCommunityPermissions, addGuestPermissions);
210     }
211 
212     public void addItemResources(
213         com.liferay.portlet.shopping.model.ShoppingCategory category,
214         com.liferay.portlet.shopping.model.ShoppingItem item,
215         java.lang.String[] communityPermissions,
216         java.lang.String[] guestPermissions)
217         throws com.liferay.portal.PortalException,
218             com.liferay.portal.SystemException {
219         _shoppingItemLocalService.addItemResources(category, item,
220             communityPermissions, guestPermissions);
221     }
222 
223     public void deleteItem(long itemId)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException {
226         _shoppingItemLocalService.deleteItem(itemId);
227     }
228 
229     public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException {
232         _shoppingItemLocalService.deleteItem(item);
233     }
234 
235     public void deleteItems(long categoryId)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException {
238         _shoppingItemLocalService.deleteItems(categoryId);
239     }
240 
241     public int getCategoriesItemsCount(java.util.List<Long> categoryIds)
242         throws com.liferay.portal.SystemException {
243         return _shoppingItemLocalService.getCategoriesItemsCount(categoryIds);
244     }
245 
246     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(
247         long groupId, long categoryId, int numOfItems)
248         throws com.liferay.portal.SystemException {
249         return _shoppingItemLocalService.getFeaturedItems(groupId, categoryId,
250             numOfItems);
251     }
252 
253     public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
254         throws com.liferay.portal.PortalException,
255             com.liferay.portal.SystemException {
256         return _shoppingItemLocalService.getItem(itemId);
257     }
258 
259     public com.liferay.portlet.shopping.model.ShoppingItem getItem(
260         long companyId, java.lang.String sku)
261         throws com.liferay.portal.PortalException,
262             com.liferay.portal.SystemException {
263         return _shoppingItemLocalService.getItem(companyId, sku);
264     }
265 
266     public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
267         long largeImageId)
268         throws com.liferay.portal.PortalException,
269             com.liferay.portal.SystemException {
270         return _shoppingItemLocalService.getItemByLargeImageId(largeImageId);
271     }
272 
273     public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
274         long mediumImageId)
275         throws com.liferay.portal.PortalException,
276             com.liferay.portal.SystemException {
277         return _shoppingItemLocalService.getItemByMediumImageId(mediumImageId);
278     }
279 
280     public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
281         long smallImageId)
282         throws com.liferay.portal.PortalException,
283             com.liferay.portal.SystemException {
284         return _shoppingItemLocalService.getItemBySmallImageId(smallImageId);
285     }
286 
287     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
288         long categoryId) throws com.liferay.portal.SystemException {
289         return _shoppingItemLocalService.getItems(categoryId);
290     }
291 
292     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
293         long categoryId, int start, int end,
294         com.liferay.portal.kernel.util.OrderByComparator obc)
295         throws com.liferay.portal.SystemException {
296         return _shoppingItemLocalService.getItems(categoryId, start, end, obc);
297     }
298 
299     public int getItemsCount(long categoryId)
300         throws com.liferay.portal.SystemException {
301         return _shoppingItemLocalService.getItemsCount(categoryId);
302     }
303 
304     public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
305         long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
306         throws com.liferay.portal.PortalException,
307             com.liferay.portal.SystemException {
308         return _shoppingItemLocalService.getItemsPrevAndNext(itemId, obc);
309     }
310 
311     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(
312         long groupId, long categoryId, int numOfItems)
313         throws com.liferay.portal.SystemException {
314         return _shoppingItemLocalService.getSaleItems(groupId, categoryId,
315             numOfItems);
316     }
317 
318     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(
319         long groupId, long[] categoryIds, java.lang.String keywords, int start,
320         int end) throws com.liferay.portal.SystemException {
321         return _shoppingItemLocalService.search(groupId, categoryIds, keywords,
322             start, end);
323     }
324 
325     public int searchCount(long groupId, long[] categoryIds,
326         java.lang.String keywords) throws com.liferay.portal.SystemException {
327         return _shoppingItemLocalService.searchCount(groupId, categoryIds,
328             keywords);
329     }
330 
331     public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
332         long userId, long itemId, long categoryId, java.lang.String sku,
333         java.lang.String name, java.lang.String description,
334         java.lang.String properties, java.lang.String fieldsQuantities,
335         boolean requiresShipping, int stockQuantity, boolean featured,
336         java.lang.Boolean sale, boolean smallImage,
337         java.lang.String smallImageURL, java.io.File smallFile,
338         boolean mediumImage, java.lang.String mediumImageURL,
339         java.io.File mediumFile, boolean largeImage,
340         java.lang.String largeImageURL, java.io.File largeFile,
341         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
342         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices)
343         throws com.liferay.portal.PortalException,
344             com.liferay.portal.SystemException {
345         return _shoppingItemLocalService.updateItem(userId, itemId, categoryId,
346             sku, name, description, properties, fieldsQuantities,
347             requiresShipping, stockQuantity, featured, sale, smallImage,
348             smallImageURL, smallFile, mediumImage, mediumImageURL, mediumFile,
349             largeImage, largeImageURL, largeFile, itemFields, itemPrices);
350     }
351 
352     public ShoppingItemLocalService getWrappedShoppingItemLocalService() {
353         return _shoppingItemLocalService;
354     }
355 
356     private ShoppingItemLocalService _shoppingItemLocalService;
357 }