001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link ShoppingItemLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ShoppingItemLocalService
026     * @generated
027     */
028    public class ShoppingItemLocalServiceWrapper implements ShoppingItemLocalService,
029            ServiceWrapper<ShoppingItemLocalService> {
030            public ShoppingItemLocalServiceWrapper(
031                    ShoppingItemLocalService shoppingItemLocalService) {
032                    _shoppingItemLocalService = shoppingItemLocalService;
033            }
034    
035            /**
036            * Adds the shopping item to the database. Also notifies the appropriate model listeners.
037            *
038            * @param shoppingItem the shopping item
039            * @return the shopping item that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
043                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _shoppingItemLocalService.addShoppingItem(shoppingItem);
046            }
047    
048            /**
049            * Creates a new shopping item with the primary key. Does not add the shopping item to the database.
050            *
051            * @param itemId the primary key for the new shopping item
052            * @return the new shopping item
053            */
054            public com.liferay.portlet.shopping.model.ShoppingItem createShoppingItem(
055                    long itemId) {
056                    return _shoppingItemLocalService.createShoppingItem(itemId);
057            }
058    
059            /**
060            * Deletes the shopping item with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param itemId the primary key of the shopping item
063            * @return the shopping item that was removed
064            * @throws PortalException if a shopping item with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.shopping.model.ShoppingItem deleteShoppingItem(
068                    long itemId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _shoppingItemLocalService.deleteShoppingItem(itemId);
072            }
073    
074            /**
075            * Deletes the shopping item from the database. Also notifies the appropriate model listeners.
076            *
077            * @param shoppingItem the shopping item
078            * @return the shopping item that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.shopping.model.ShoppingItem deleteShoppingItem(
082                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _shoppingItemLocalService.deleteShoppingItem(shoppingItem);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _shoppingItemLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _shoppingItemLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _shoppingItemLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.shopping.model.ShoppingItem fetchShoppingItem(
163                    long itemId) throws com.liferay.portal.kernel.exception.SystemException {
164                    return _shoppingItemLocalService.fetchShoppingItem(itemId);
165            }
166    
167            /**
168            * Returns the shopping item with the primary key.
169            *
170            * @param itemId the primary key of the shopping item
171            * @return the shopping item
172            * @throws PortalException if a shopping item with the primary key could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portlet.shopping.model.ShoppingItem getShoppingItem(
176                    long itemId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _shoppingItemLocalService.getShoppingItem(itemId);
180            }
181    
182            public com.liferay.portal.model.PersistedModel getPersistedModel(
183                    java.io.Serializable primaryKeyObj)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return _shoppingItemLocalService.getPersistedModel(primaryKeyObj);
187            }
188    
189            /**
190            * Returns a range of all the shopping items.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param start the lower bound of the range of shopping items
197            * @param end the upper bound of the range of shopping items (not inclusive)
198            * @return the range of shopping items
199            * @throws SystemException if a system exception occurred
200            */
201            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getShoppingItems(
202                    int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _shoppingItemLocalService.getShoppingItems(start, end);
205            }
206    
207            /**
208            * Returns the number of shopping items.
209            *
210            * @return the number of shopping items
211            * @throws SystemException if a system exception occurred
212            */
213            public int getShoppingItemsCount()
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _shoppingItemLocalService.getShoppingItemsCount();
216            }
217    
218            /**
219            * Updates the shopping item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
220            *
221            * @param shoppingItem the shopping item
222            * @return the shopping item that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
226                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _shoppingItemLocalService.updateShoppingItem(shoppingItem);
229            }
230    
231            /**
232            * Returns the Spring bean ID for this bean.
233            *
234            * @return the Spring bean ID for this bean
235            */
236            public java.lang.String getBeanIdentifier() {
237                    return _shoppingItemLocalService.getBeanIdentifier();
238            }
239    
240            /**
241            * Sets the Spring bean ID for this bean.
242            *
243            * @param beanIdentifier the Spring bean ID for this bean
244            */
245            public void setBeanIdentifier(java.lang.String beanIdentifier) {
246                    _shoppingItemLocalService.setBeanIdentifier(beanIdentifier);
247            }
248    
249            public void addBookItems(long userId, long groupId, long categoryId,
250                    java.lang.String[] isbns)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    _shoppingItemLocalService.addBookItems(userId, groupId, categoryId,
254                            isbns);
255            }
256    
257            public com.liferay.portlet.shopping.model.ShoppingItem addItem(
258                    long userId, long groupId, long categoryId, java.lang.String sku,
259                    java.lang.String name, java.lang.String description,
260                    java.lang.String properties, java.lang.String fieldsQuantities,
261                    boolean requiresShipping, int stockQuantity, boolean featured,
262                    java.lang.Boolean sale, boolean smallImage,
263                    java.lang.String smallImageURL, java.io.File smallImageFile,
264                    boolean mediumImage, java.lang.String mediumImageURL,
265                    java.io.File mediumImageFile, boolean largeImage,
266                    java.lang.String largeImageURL, java.io.File largeImageFile,
267                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
268                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
269                    com.liferay.portal.service.ServiceContext serviceContext)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _shoppingItemLocalService.addItem(userId, groupId, categoryId,
273                            sku, name, description, properties, fieldsQuantities,
274                            requiresShipping, stockQuantity, featured, sale, smallImage,
275                            smallImageURL, smallImageFile, mediumImage, mediumImageURL,
276                            mediumImageFile, largeImage, largeImageURL, largeImageFile,
277                            itemFields, itemPrices, serviceContext);
278            }
279    
280            public void addItemResources(long itemId, boolean addGroupPermissions,
281                    boolean addGuestPermissions)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _shoppingItemLocalService.addItemResources(itemId, addGroupPermissions,
285                            addGuestPermissions);
286            }
287    
288            public void addItemResources(long itemId,
289                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _shoppingItemLocalService.addItemResources(itemId, groupPermissions,
293                            guestPermissions);
294            }
295    
296            public void addItemResources(
297                    com.liferay.portlet.shopping.model.ShoppingItem item,
298                    boolean addGroupPermissions, boolean addGuestPermissions)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _shoppingItemLocalService.addItemResources(item, addGroupPermissions,
302                            addGuestPermissions);
303            }
304    
305            public void addItemResources(
306                    com.liferay.portlet.shopping.model.ShoppingItem item,
307                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException {
310                    _shoppingItemLocalService.addItemResources(item, groupPermissions,
311                            guestPermissions);
312            }
313    
314            public void deleteItem(long itemId)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    _shoppingItemLocalService.deleteItem(itemId);
318            }
319    
320            public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    _shoppingItemLocalService.deleteItem(item);
324            }
325    
326            public void deleteItems(long groupId, long categoryId)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    _shoppingItemLocalService.deleteItems(groupId, categoryId);
330            }
331    
332            public int getCategoriesItemsCount(long groupId,
333                    java.util.List<java.lang.Long> categoryIds)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    return _shoppingItemLocalService.getCategoriesItemsCount(groupId,
336                            categoryIds);
337            }
338    
339            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(
340                    long groupId, long categoryId, int numOfItems)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return _shoppingItemLocalService.getFeaturedItems(groupId, categoryId,
343                            numOfItems);
344            }
345    
346            public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return _shoppingItemLocalService.getItem(itemId);
350            }
351    
352            public com.liferay.portlet.shopping.model.ShoppingItem getItem(
353                    long companyId, java.lang.String sku)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _shoppingItemLocalService.getItem(companyId, sku);
357            }
358    
359            public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
360                    long largeImageId)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _shoppingItemLocalService.getItemByLargeImageId(largeImageId);
364            }
365    
366            public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
367                    long mediumImageId)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    return _shoppingItemLocalService.getItemByMediumImageId(mediumImageId);
371            }
372    
373            public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
374                    long smallImageId)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return _shoppingItemLocalService.getItemBySmallImageId(smallImageId);
378            }
379    
380            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
381                    long groupId, long categoryId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _shoppingItemLocalService.getItems(groupId, categoryId);
384            }
385    
386            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
387                    long groupId, long categoryId, int start, int end,
388                    com.liferay.portal.kernel.util.OrderByComparator obc)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    return _shoppingItemLocalService.getItems(groupId, categoryId, start,
391                            end, obc);
392            }
393    
394            public int getItemsCount(long groupId, long categoryId)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _shoppingItemLocalService.getItemsCount(groupId, categoryId);
397            }
398    
399            public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
400                    long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException {
403                    return _shoppingItemLocalService.getItemsPrevAndNext(itemId, obc);
404            }
405    
406            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(
407                    long groupId, long categoryId, int numOfItems)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return _shoppingItemLocalService.getSaleItems(groupId, categoryId,
410                            numOfItems);
411            }
412    
413            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(
414                    long groupId, long[] categoryIds, java.lang.String keywords, int start,
415                    int end) throws com.liferay.portal.kernel.exception.SystemException {
416                    return _shoppingItemLocalService.search(groupId, categoryIds, keywords,
417                            start, end);
418            }
419    
420            public int searchCount(long groupId, long[] categoryIds,
421                    java.lang.String keywords)
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    return _shoppingItemLocalService.searchCount(groupId, categoryIds,
424                            keywords);
425            }
426    
427            public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
428                    long userId, long itemId, long groupId, long categoryId,
429                    java.lang.String sku, java.lang.String name,
430                    java.lang.String description, java.lang.String properties,
431                    java.lang.String fieldsQuantities, boolean requiresShipping,
432                    int stockQuantity, boolean featured, java.lang.Boolean sale,
433                    boolean smallImage, java.lang.String smallImageURL,
434                    java.io.File smallImageFile, boolean mediumImage,
435                    java.lang.String mediumImageURL, java.io.File mediumImageFile,
436                    boolean largeImage, java.lang.String largeImageURL,
437                    java.io.File largeImageFile,
438                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
439                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
440                    com.liferay.portal.service.ServiceContext serviceContext)
441                    throws com.liferay.portal.kernel.exception.PortalException,
442                            com.liferay.portal.kernel.exception.SystemException {
443                    return _shoppingItemLocalService.updateItem(userId, itemId, groupId,
444                            categoryId, sku, name, description, properties, fieldsQuantities,
445                            requiresShipping, stockQuantity, featured, sale, smallImage,
446                            smallImageURL, smallImageFile, mediumImage, mediumImageURL,
447                            mediumImageFile, largeImage, largeImageURL, largeImageFile,
448                            itemFields, itemPrices, serviceContext);
449            }
450    
451            /**
452             * @deprecated Renamed to {@link #getWrappedService}
453             */
454            public ShoppingItemLocalService getWrappedShoppingItemLocalService() {
455                    return _shoppingItemLocalService;
456            }
457    
458            /**
459             * @deprecated Renamed to {@link #setWrappedService}
460             */
461            public void setWrappedShoppingItemLocalService(
462                    ShoppingItemLocalService shoppingItemLocalService) {
463                    _shoppingItemLocalService = shoppingItemLocalService;
464            }
465    
466            public ShoppingItemLocalService getWrappedService() {
467                    return _shoppingItemLocalService;
468            }
469    
470            public void setWrappedService(
471                    ShoppingItemLocalService shoppingItemLocalService) {
472                    _shoppingItemLocalService = shoppingItemLocalService;
473            }
474    
475            private ShoppingItemLocalService _shoppingItemLocalService;
476    }