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