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