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