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            /**
033            * Adds the shopping item to the database. Also notifies the appropriate model listeners.
034            *
035            * @param shoppingItem the shopping item to add
036            * @return the shopping item that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
040                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _shoppingItemLocalService.addShoppingItem(shoppingItem);
043            }
044    
045            /**
046            * Creates a new shopping item with the primary key. Does not add the shopping item to the database.
047            *
048            * @param itemId the primary key for the new shopping item
049            * @return the new shopping item
050            */
051            public com.liferay.portlet.shopping.model.ShoppingItem createShoppingItem(
052                    long itemId) {
053                    return _shoppingItemLocalService.createShoppingItem(itemId);
054            }
055    
056            /**
057            * Deletes the shopping item with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param itemId the primary key of the shopping item to delete
060            * @throws PortalException if a shopping item with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteShoppingItem(long itemId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _shoppingItemLocalService.deleteShoppingItem(itemId);
067            }
068    
069            /**
070            * Deletes the shopping item from the database. Also notifies the appropriate model listeners.
071            *
072            * @param shoppingItem the shopping item to delete
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteShoppingItem(
076                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _shoppingItemLocalService.deleteShoppingItem(shoppingItem);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query to search with
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query to search with
103            * @param start the lower bound of the range of model instances to return
104            * @param end the upper bound of the range of model instances to return (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query to search with
123            * @param start the lower bound of the range of model instances to return
124            * @param end the upper bound of the range of model instances to return (not inclusive)
125            * @param orderByComparator the comparator to order the results by
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Counts the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query to search with
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _shoppingItemLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Gets the shopping item with the primary key.
154            *
155            * @param itemId the primary key of the shopping item to get
156            * @return the shopping item
157            * @throws PortalException if a shopping item with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.shopping.model.ShoppingItem getShoppingItem(
161                    long itemId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _shoppingItemLocalService.getShoppingItem(itemId);
165            }
166    
167            /**
168            * Gets a range of all the shopping items.
169            *
170            * <p>
171            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
172            * </p>
173            *
174            * @param start the lower bound of the range of shopping items to return
175            * @param end the upper bound of the range of shopping items to return (not inclusive)
176            * @return the range of shopping items
177            * @throws SystemException if a system exception occurred
178            */
179            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getShoppingItems(
180                    int start, int end)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return _shoppingItemLocalService.getShoppingItems(start, end);
183            }
184    
185            /**
186            * Gets the number of shopping items.
187            *
188            * @return the number of shopping items
189            * @throws SystemException if a system exception occurred
190            */
191            public int getShoppingItemsCount()
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _shoppingItemLocalService.getShoppingItemsCount();
194            }
195    
196            /**
197            * Updates the shopping item in the database. Also notifies the appropriate model listeners.
198            *
199            * @param shoppingItem the shopping item to update
200            * @return the shopping item that was updated
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
204                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _shoppingItemLocalService.updateShoppingItem(shoppingItem);
207            }
208    
209            /**
210            * Updates the shopping item in the database. Also notifies the appropriate model listeners.
211            *
212            * @param shoppingItem the shopping item to update
213            * @param merge whether to merge the shopping item with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
214            * @return the shopping item that was updated
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
218                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
219                    boolean merge)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _shoppingItemLocalService.updateShoppingItem(shoppingItem, merge);
222            }
223    
224            public void addBookItems(long userId, long groupId, long categoryId,
225                    java.lang.String[] isbns)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    _shoppingItemLocalService.addBookItems(userId, groupId, categoryId,
229                            isbns);
230            }
231    
232            public com.liferay.portlet.shopping.model.ShoppingItem addItem(
233                    long userId, long groupId, long categoryId, java.lang.String sku,
234                    java.lang.String name, java.lang.String description,
235                    java.lang.String properties, java.lang.String fieldsQuantities,
236                    boolean requiresShipping, int stockQuantity, boolean featured,
237                    java.lang.Boolean sale, boolean smallImage,
238                    java.lang.String smallImageURL, java.io.File smallFile,
239                    boolean mediumImage, java.lang.String mediumImageURL,
240                    java.io.File mediumFile, boolean largeImage,
241                    java.lang.String largeImageURL, java.io.File largeFile,
242                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
243                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
244                    com.liferay.portal.service.ServiceContext serviceContext)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    return _shoppingItemLocalService.addItem(userId, groupId, categoryId,
248                            sku, name, description, properties, fieldsQuantities,
249                            requiresShipping, stockQuantity, featured, sale, smallImage,
250                            smallImageURL, smallFile, mediumImage, mediumImageURL, mediumFile,
251                            largeImage, largeImageURL, largeFile, itemFields, itemPrices,
252                            serviceContext);
253            }
254    
255            public void addItemResources(long itemId, boolean addCommunityPermissions,
256                    boolean addGuestPermissions)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    _shoppingItemLocalService.addItemResources(itemId,
260                            addCommunityPermissions, addGuestPermissions);
261            }
262    
263            public void addItemResources(long itemId,
264                    java.lang.String[] communityPermissions,
265                    java.lang.String[] guestPermissions)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _shoppingItemLocalService.addItemResources(itemId,
269                            communityPermissions, guestPermissions);
270            }
271    
272            public void addItemResources(
273                    com.liferay.portlet.shopping.model.ShoppingItem item,
274                    boolean addCommunityPermissions, boolean addGuestPermissions)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    _shoppingItemLocalService.addItemResources(item,
278                            addCommunityPermissions, addGuestPermissions);
279            }
280    
281            public void addItemResources(
282                    com.liferay.portlet.shopping.model.ShoppingItem item,
283                    java.lang.String[] communityPermissions,
284                    java.lang.String[] guestPermissions)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _shoppingItemLocalService.addItemResources(item, communityPermissions,
288                            guestPermissions);
289            }
290    
291            public void deleteItem(long itemId)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _shoppingItemLocalService.deleteItem(itemId);
295            }
296    
297            public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    _shoppingItemLocalService.deleteItem(item);
301            }
302    
303            public void deleteItems(long groupId, long categoryId)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _shoppingItemLocalService.deleteItems(groupId, categoryId);
307            }
308    
309            public int getCategoriesItemsCount(long groupId,
310                    java.util.List<java.lang.Long> categoryIds)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _shoppingItemLocalService.getCategoriesItemsCount(groupId,
313                            categoryIds);
314            }
315    
316            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(
317                    long groupId, long categoryId, int numOfItems)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _shoppingItemLocalService.getFeaturedItems(groupId, categoryId,
320                            numOfItems);
321            }
322    
323            public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _shoppingItemLocalService.getItem(itemId);
327            }
328    
329            public com.liferay.portlet.shopping.model.ShoppingItem getItem(
330                    long companyId, java.lang.String sku)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _shoppingItemLocalService.getItem(companyId, sku);
334            }
335    
336            public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
337                    long largeImageId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _shoppingItemLocalService.getItemByLargeImageId(largeImageId);
341            }
342    
343            public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
344                    long mediumImageId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _shoppingItemLocalService.getItemByMediumImageId(mediumImageId);
348            }
349    
350            public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
351                    long smallImageId)
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException {
354                    return _shoppingItemLocalService.getItemBySmallImageId(smallImageId);
355            }
356    
357            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
358                    long groupId, long categoryId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _shoppingItemLocalService.getItems(groupId, categoryId);
361            }
362    
363            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
364                    long groupId, long categoryId, int start, int end,
365                    com.liferay.portal.kernel.util.OrderByComparator obc)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _shoppingItemLocalService.getItems(groupId, categoryId, start,
368                            end, obc);
369            }
370    
371            public int getItemsCount(long groupId, long categoryId)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _shoppingItemLocalService.getItemsCount(groupId, categoryId);
374            }
375    
376            public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
377                    long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException {
380                    return _shoppingItemLocalService.getItemsPrevAndNext(itemId, obc);
381            }
382    
383            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(
384                    long groupId, long categoryId, int numOfItems)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _shoppingItemLocalService.getSaleItems(groupId, categoryId,
387                            numOfItems);
388            }
389    
390            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(
391                    long groupId, long[] categoryIds, java.lang.String keywords, int start,
392                    int end) throws com.liferay.portal.kernel.exception.SystemException {
393                    return _shoppingItemLocalService.search(groupId, categoryIds, keywords,
394                            start, end);
395            }
396    
397            public int searchCount(long groupId, long[] categoryIds,
398                    java.lang.String keywords)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return _shoppingItemLocalService.searchCount(groupId, categoryIds,
401                            keywords);
402            }
403    
404            public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
405                    long userId, long itemId, long groupId, long categoryId,
406                    java.lang.String sku, java.lang.String name,
407                    java.lang.String description, java.lang.String properties,
408                    java.lang.String fieldsQuantities, boolean requiresShipping,
409                    int stockQuantity, boolean featured, java.lang.Boolean sale,
410                    boolean smallImage, java.lang.String smallImageURL,
411                    java.io.File smallFile, boolean mediumImage,
412                    java.lang.String mediumImageURL, java.io.File mediumFile,
413                    boolean largeImage, java.lang.String largeImageURL,
414                    java.io.File largeFile,
415                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
416                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
417                    com.liferay.portal.service.ServiceContext serviceContext)
418                    throws com.liferay.portal.kernel.exception.PortalException,
419                            com.liferay.portal.kernel.exception.SystemException {
420                    return _shoppingItemLocalService.updateItem(userId, itemId, groupId,
421                            categoryId, sku, name, description, properties, fieldsQuantities,
422                            requiresShipping, stockQuantity, featured, sale, smallImage,
423                            smallImageURL, smallFile, mediumImage, mediumImageURL, mediumFile,
424                            largeImage, largeImageURL, largeFile, itemFields, itemPrices,
425                            serviceContext);
426            }
427    
428            public ShoppingItemLocalService getWrappedShoppingItemLocalService() {
429                    return _shoppingItemLocalService;
430            }
431    
432            private ShoppingItemLocalService _shoppingItemLocalService;
433    }