001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link ShoppingItemLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       ShoppingItemLocalService
025     * @generated
026     */
027    public class ShoppingItemLocalServiceWrapper implements ShoppingItemLocalService {
028            public ShoppingItemLocalServiceWrapper(
029                    ShoppingItemLocalService shoppingItemLocalService) {
030                    _shoppingItemLocalService = shoppingItemLocalService;
031            }
032    
033            public com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
034                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return _shoppingItemLocalService.addShoppingItem(shoppingItem);
037            }
038    
039            public com.liferay.portlet.shopping.model.ShoppingItem createShoppingItem(
040                    long itemId) {
041                    return _shoppingItemLocalService.createShoppingItem(itemId);
042            }
043    
044            public void deleteShoppingItem(long itemId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _shoppingItemLocalService.deleteShoppingItem(itemId);
048            }
049    
050            public void deleteShoppingItem(
051                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    _shoppingItemLocalService.deleteShoppingItem(shoppingItem);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery, start, end,
077                            orderByComparator);
078            }
079    
080            public long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _shoppingItemLocalService.dynamicQueryCount(dynamicQuery);
084            }
085    
086            public com.liferay.portlet.shopping.model.ShoppingItem getShoppingItem(
087                    long itemId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _shoppingItemLocalService.getShoppingItem(itemId);
091            }
092    
093            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getShoppingItems(
094                    int start, int end)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _shoppingItemLocalService.getShoppingItems(start, end);
097            }
098    
099            public int getShoppingItemsCount()
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _shoppingItemLocalService.getShoppingItemsCount();
102            }
103    
104            public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
105                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _shoppingItemLocalService.updateShoppingItem(shoppingItem);
108            }
109    
110            public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
111                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
112                    boolean merge)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return _shoppingItemLocalService.updateShoppingItem(shoppingItem, merge);
115            }
116    
117            public void addBookItems(long userId, long groupId, long categoryId,
118                    java.lang.String[] isbns)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    _shoppingItemLocalService.addBookItems(userId, groupId, categoryId,
122                            isbns);
123            }
124    
125            public com.liferay.portlet.shopping.model.ShoppingItem addItem(
126                    long userId, long groupId, long categoryId, java.lang.String sku,
127                    java.lang.String name, java.lang.String description,
128                    java.lang.String properties, java.lang.String fieldsQuantities,
129                    boolean requiresShipping, int stockQuantity, boolean featured,
130                    java.lang.Boolean sale, boolean smallImage,
131                    java.lang.String smallImageURL, java.io.File smallFile,
132                    boolean mediumImage, java.lang.String mediumImageURL,
133                    java.io.File mediumFile, boolean largeImage,
134                    java.lang.String largeImageURL, java.io.File largeFile,
135                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
136                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
137                    com.liferay.portal.service.ServiceContext serviceContext)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    return _shoppingItemLocalService.addItem(userId, groupId, categoryId,
141                            sku, name, description, properties, fieldsQuantities,
142                            requiresShipping, stockQuantity, featured, sale, smallImage,
143                            smallImageURL, smallFile, mediumImage, mediumImageURL, mediumFile,
144                            largeImage, largeImageURL, largeFile, itemFields, itemPrices,
145                            serviceContext);
146            }
147    
148            public void addItemResources(long itemId, boolean addCommunityPermissions,
149                    boolean addGuestPermissions)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    _shoppingItemLocalService.addItemResources(itemId,
153                            addCommunityPermissions, addGuestPermissions);
154            }
155    
156            public void addItemResources(long itemId,
157                    java.lang.String[] communityPermissions,
158                    java.lang.String[] guestPermissions)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    _shoppingItemLocalService.addItemResources(itemId,
162                            communityPermissions, guestPermissions);
163            }
164    
165            public void addItemResources(
166                    com.liferay.portlet.shopping.model.ShoppingItem item,
167                    boolean addCommunityPermissions, boolean addGuestPermissions)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException {
170                    _shoppingItemLocalService.addItemResources(item,
171                            addCommunityPermissions, addGuestPermissions);
172            }
173    
174            public void addItemResources(
175                    com.liferay.portlet.shopping.model.ShoppingItem item,
176                    java.lang.String[] communityPermissions,
177                    java.lang.String[] guestPermissions)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    _shoppingItemLocalService.addItemResources(item, communityPermissions,
181                            guestPermissions);
182            }
183    
184            public void deleteItem(long itemId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    _shoppingItemLocalService.deleteItem(itemId);
188            }
189    
190            public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException {
193                    _shoppingItemLocalService.deleteItem(item);
194            }
195    
196            public void deleteItems(long groupId, long categoryId)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException {
199                    _shoppingItemLocalService.deleteItems(groupId, categoryId);
200            }
201    
202            public int getCategoriesItemsCount(long groupId,
203                    java.util.List<java.lang.Long> categoryIds)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _shoppingItemLocalService.getCategoriesItemsCount(groupId,
206                            categoryIds);
207            }
208    
209            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(
210                    long groupId, long categoryId, int numOfItems)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return _shoppingItemLocalService.getFeaturedItems(groupId, categoryId,
213                            numOfItems);
214            }
215    
216            public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    return _shoppingItemLocalService.getItem(itemId);
220            }
221    
222            public com.liferay.portlet.shopping.model.ShoppingItem getItem(
223                    long companyId, java.lang.String sku)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException {
226                    return _shoppingItemLocalService.getItem(companyId, sku);
227            }
228    
229            public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
230                    long largeImageId)
231                    throws com.liferay.portal.kernel.exception.PortalException,
232                            com.liferay.portal.kernel.exception.SystemException {
233                    return _shoppingItemLocalService.getItemByLargeImageId(largeImageId);
234            }
235    
236            public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
237                    long mediumImageId)
238                    throws com.liferay.portal.kernel.exception.PortalException,
239                            com.liferay.portal.kernel.exception.SystemException {
240                    return _shoppingItemLocalService.getItemByMediumImageId(mediumImageId);
241            }
242    
243            public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
244                    long smallImageId)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    return _shoppingItemLocalService.getItemBySmallImageId(smallImageId);
248            }
249    
250            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
251                    long groupId, long categoryId)
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    return _shoppingItemLocalService.getItems(groupId, categoryId);
254            }
255    
256            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
257                    long groupId, long categoryId, int start, int end,
258                    com.liferay.portal.kernel.util.OrderByComparator obc)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return _shoppingItemLocalService.getItems(groupId, categoryId, start,
261                            end, obc);
262            }
263    
264            public int getItemsCount(long groupId, long categoryId)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return _shoppingItemLocalService.getItemsCount(groupId, categoryId);
267            }
268    
269            public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
270                    long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _shoppingItemLocalService.getItemsPrevAndNext(itemId, obc);
274            }
275    
276            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(
277                    long groupId, long categoryId, int numOfItems)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return _shoppingItemLocalService.getSaleItems(groupId, categoryId,
280                            numOfItems);
281            }
282    
283            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(
284                    long groupId, long[] categoryIds, java.lang.String keywords, int start,
285                    int end) throws com.liferay.portal.kernel.exception.SystemException {
286                    return _shoppingItemLocalService.search(groupId, categoryIds, keywords,
287                            start, end);
288            }
289    
290            public int searchCount(long groupId, long[] categoryIds,
291                    java.lang.String keywords)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    return _shoppingItemLocalService.searchCount(groupId, categoryIds,
294                            keywords);
295            }
296    
297            public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
298                    long userId, long itemId, long groupId, long categoryId,
299                    java.lang.String sku, java.lang.String name,
300                    java.lang.String description, java.lang.String properties,
301                    java.lang.String fieldsQuantities, boolean requiresShipping,
302                    int stockQuantity, boolean featured, java.lang.Boolean sale,
303                    boolean smallImage, java.lang.String smallImageURL,
304                    java.io.File smallFile, boolean mediumImage,
305                    java.lang.String mediumImageURL, java.io.File mediumFile,
306                    boolean largeImage, java.lang.String largeImageURL,
307                    java.io.File largeFile,
308                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
309                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
310                    com.liferay.portal.service.ServiceContext serviceContext)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    return _shoppingItemLocalService.updateItem(userId, itemId, groupId,
314                            categoryId, sku, name, description, properties, fieldsQuantities,
315                            requiresShipping, stockQuantity, featured, sale, smallImage,
316                            smallImageURL, smallFile, mediumImage, mediumImageURL, mediumFile,
317                            largeImage, largeImageURL, largeFile, itemFields, itemPrices,
318                            serviceContext);
319            }
320    
321            public ShoppingItemLocalService getWrappedShoppingItemLocalService() {
322                    return _shoppingItemLocalService;
323            }
324    
325            private ShoppingItemLocalService _shoppingItemLocalService;
326    }