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