001    /**
002     * Copyright (c) 2000-2013 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            * Updates the shopping item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
233            *
234            * @param shoppingItem the shopping item
235            * @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.
236            * @return the shopping item that was updated
237            * @throws SystemException if a system exception occurred
238            */
239            public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
240                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
241                    boolean merge)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return _shoppingItemLocalService.updateShoppingItem(shoppingItem, merge);
244            }
245    
246            /**
247            * Returns the Spring bean ID for this bean.
248            *
249            * @return the Spring bean ID for this bean
250            */
251            public java.lang.String getBeanIdentifier() {
252                    return _shoppingItemLocalService.getBeanIdentifier();
253            }
254    
255            /**
256            * Sets the Spring bean ID for this bean.
257            *
258            * @param beanIdentifier the Spring bean ID for this bean
259            */
260            public void setBeanIdentifier(java.lang.String beanIdentifier) {
261                    _shoppingItemLocalService.setBeanIdentifier(beanIdentifier);
262            }
263    
264            public void addBookItems(long userId, long groupId, long categoryId,
265                    java.lang.String[] isbns)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _shoppingItemLocalService.addBookItems(userId, groupId, categoryId,
269                            isbns);
270            }
271    
272            public com.liferay.portlet.shopping.model.ShoppingItem addItem(
273                    long userId, long groupId, long categoryId, java.lang.String sku,
274                    java.lang.String name, java.lang.String description,
275                    java.lang.String properties, java.lang.String fieldsQuantities,
276                    boolean requiresShipping, int stockQuantity, boolean featured,
277                    java.lang.Boolean sale, boolean smallImage,
278                    java.lang.String smallImageURL, java.io.File smallImageFile,
279                    boolean mediumImage, java.lang.String mediumImageURL,
280                    java.io.File mediumImageFile, boolean largeImage,
281                    java.lang.String largeImageURL, java.io.File largeImageFile,
282                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
283                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
284                    com.liferay.portal.service.ServiceContext serviceContext)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    return _shoppingItemLocalService.addItem(userId, groupId, categoryId,
288                            sku, name, description, properties, fieldsQuantities,
289                            requiresShipping, stockQuantity, featured, sale, smallImage,
290                            smallImageURL, smallImageFile, mediumImage, mediumImageURL,
291                            mediumImageFile, largeImage, largeImageURL, largeImageFile,
292                            itemFields, itemPrices, serviceContext);
293            }
294    
295            public void addItemResources(long itemId, boolean addGroupPermissions,
296                    boolean addGuestPermissions)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _shoppingItemLocalService.addItemResources(itemId, addGroupPermissions,
300                            addGuestPermissions);
301            }
302    
303            public void addItemResources(long itemId,
304                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    _shoppingItemLocalService.addItemResources(itemId, groupPermissions,
308                            guestPermissions);
309            }
310    
311            public void addItemResources(
312                    com.liferay.portlet.shopping.model.ShoppingItem item,
313                    boolean addGroupPermissions, boolean addGuestPermissions)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    _shoppingItemLocalService.addItemResources(item, addGroupPermissions,
317                            addGuestPermissions);
318            }
319    
320            public void addItemResources(
321                    com.liferay.portlet.shopping.model.ShoppingItem item,
322                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    _shoppingItemLocalService.addItemResources(item, groupPermissions,
326                            guestPermissions);
327            }
328    
329            public void deleteItem(long itemId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    _shoppingItemLocalService.deleteItem(itemId);
333            }
334    
335            public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    _shoppingItemLocalService.deleteItem(item);
339            }
340    
341            public void deleteItems(long groupId, long categoryId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    _shoppingItemLocalService.deleteItems(groupId, categoryId);
345            }
346    
347            public int getCategoriesItemsCount(long groupId,
348                    java.util.List<java.lang.Long> categoryIds)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _shoppingItemLocalService.getCategoriesItemsCount(groupId,
351                            categoryIds);
352            }
353    
354            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(
355                    long groupId, long categoryId, int numOfItems)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _shoppingItemLocalService.getFeaturedItems(groupId, categoryId,
358                            numOfItems);
359            }
360    
361            public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    return _shoppingItemLocalService.getItem(itemId);
365            }
366    
367            public com.liferay.portlet.shopping.model.ShoppingItem getItem(
368                    long companyId, java.lang.String sku)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _shoppingItemLocalService.getItem(companyId, sku);
372            }
373    
374            public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
375                    long largeImageId)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    return _shoppingItemLocalService.getItemByLargeImageId(largeImageId);
379            }
380    
381            public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
382                    long mediumImageId)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException {
385                    return _shoppingItemLocalService.getItemByMediumImageId(mediumImageId);
386            }
387    
388            public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
389                    long smallImageId)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    return _shoppingItemLocalService.getItemBySmallImageId(smallImageId);
393            }
394    
395            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
396                    long groupId, long categoryId)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _shoppingItemLocalService.getItems(groupId, categoryId);
399            }
400    
401            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
402                    long groupId, long categoryId, int start, int end,
403                    com.liferay.portal.kernel.util.OrderByComparator obc)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _shoppingItemLocalService.getItems(groupId, categoryId, start,
406                            end, obc);
407            }
408    
409            public int getItemsCount(long groupId, long categoryId)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _shoppingItemLocalService.getItemsCount(groupId, categoryId);
412            }
413    
414            public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
415                    long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    return _shoppingItemLocalService.getItemsPrevAndNext(itemId, obc);
419            }
420    
421            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(
422                    long groupId, long categoryId, int numOfItems)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return _shoppingItemLocalService.getSaleItems(groupId, categoryId,
425                            numOfItems);
426            }
427    
428            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(
429                    long groupId, long[] categoryIds, java.lang.String keywords, int start,
430                    int end) throws com.liferay.portal.kernel.exception.SystemException {
431                    return _shoppingItemLocalService.search(groupId, categoryIds, keywords,
432                            start, end);
433            }
434    
435            public int searchCount(long groupId, long[] categoryIds,
436                    java.lang.String keywords)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return _shoppingItemLocalService.searchCount(groupId, categoryIds,
439                            keywords);
440            }
441    
442            public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
443                    long userId, long itemId, long groupId, long categoryId,
444                    java.lang.String sku, java.lang.String name,
445                    java.lang.String description, java.lang.String properties,
446                    java.lang.String fieldsQuantities, boolean requiresShipping,
447                    int stockQuantity, boolean featured, java.lang.Boolean sale,
448                    boolean smallImage, java.lang.String smallImageURL,
449                    java.io.File smallImageFile, boolean mediumImage,
450                    java.lang.String mediumImageURL, java.io.File mediumImageFile,
451                    boolean largeImage, java.lang.String largeImageURL,
452                    java.io.File largeImageFile,
453                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
454                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
455                    com.liferay.portal.service.ServiceContext serviceContext)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException {
458                    return _shoppingItemLocalService.updateItem(userId, itemId, groupId,
459                            categoryId, sku, name, description, properties, fieldsQuantities,
460                            requiresShipping, stockQuantity, featured, sale, smallImage,
461                            smallImageURL, smallImageFile, mediumImage, mediumImageURL,
462                            mediumImageFile, largeImage, largeImageURL, largeImageFile,
463                            itemFields, itemPrices, serviceContext);
464            }
465    
466            /**
467             * @deprecated Renamed to {@link #getWrappedService}
468             */
469            public ShoppingItemLocalService getWrappedShoppingItemLocalService() {
470                    return _shoppingItemLocalService;
471            }
472    
473            /**
474             * @deprecated Renamed to {@link #setWrappedService}
475             */
476            public void setWrappedShoppingItemLocalService(
477                    ShoppingItemLocalService shoppingItemLocalService) {
478                    _shoppingItemLocalService = shoppingItemLocalService;
479            }
480    
481            public ShoppingItemLocalService getWrappedService() {
482                    return _shoppingItemLocalService;
483            }
484    
485            public void setWrappedService(
486                    ShoppingItemLocalService shoppingItemLocalService) {
487                    _shoppingItemLocalService = shoppingItemLocalService;
488            }
489    
490            private ShoppingItemLocalService _shoppingItemLocalService;
491    }