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