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 ShoppingItemService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingItemService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingItemServiceWrapper implements ShoppingItemService,
030            ServiceWrapper<ShoppingItemService> {
031            public ShoppingItemServiceWrapper(ShoppingItemService shoppingItemService) {
032                    _shoppingItemService = shoppingItemService;
033            }
034    
035            @Override
036            public com.liferay.portlet.shopping.model.ShoppingItem addItem(
037                    long groupId, long categoryId, java.lang.String sku,
038                    java.lang.String name, java.lang.String description,
039                    java.lang.String properties, java.lang.String fieldsQuantities,
040                    boolean requiresShipping, int stockQuantity, boolean featured,
041                    java.lang.Boolean sale, boolean smallImage,
042                    java.lang.String smallImageURL, java.io.File smallFile,
043                    boolean mediumImage, java.lang.String mediumImageURL,
044                    java.io.File mediumFile, boolean largeImage,
045                    java.lang.String largeImageURL, java.io.File largeFile,
046                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
047                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _shoppingItemService.addItem(groupId, categoryId, sku, name,
051                            description, properties, fieldsQuantities, requiresShipping,
052                            stockQuantity, featured, sale, smallImage, smallImageURL,
053                            smallFile, mediumImage, mediumImageURL, mediumFile, largeImage,
054                            largeImageURL, largeFile, itemFields, itemPrices, serviceContext);
055            }
056    
057            @Override
058            public void deleteItem(long itemId)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    _shoppingItemService.deleteItem(itemId);
061            }
062    
063            /**
064            * Returns the Spring bean ID for this bean.
065            *
066            * @return the Spring bean ID for this bean
067            */
068            @Override
069            public java.lang.String getBeanIdentifier() {
070                    return _shoppingItemService.getBeanIdentifier();
071            }
072    
073            @Override
074            public int getCategoriesItemsCount(long groupId,
075                    java.util.List<java.lang.Long> categoryIds) {
076                    return _shoppingItemService.getCategoriesItemsCount(groupId, categoryIds);
077            }
078    
079            @Override
080            public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return _shoppingItemService.getItem(itemId);
083            }
084    
085            @Override
086            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
087                    long groupId, long categoryId) {
088                    return _shoppingItemService.getItems(groupId, categoryId);
089            }
090    
091            @Override
092            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
093                    long groupId, long categoryId, int start, int end,
094                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> obc) {
095                    return _shoppingItemService.getItems(groupId, categoryId, start, end,
096                            obc);
097            }
098    
099            @Override
100            public int getItemsCount(long groupId, long categoryId) {
101                    return _shoppingItemService.getItemsCount(groupId, categoryId);
102            }
103    
104            @Override
105            public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
106                    long itemId,
107                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> obc)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return _shoppingItemService.getItemsPrevAndNext(itemId, obc);
110            }
111    
112            /**
113            * Sets the Spring bean ID for this bean.
114            *
115            * @param beanIdentifier the Spring bean ID for this bean
116            */
117            @Override
118            public void setBeanIdentifier(java.lang.String beanIdentifier) {
119                    _shoppingItemService.setBeanIdentifier(beanIdentifier);
120            }
121    
122            @Override
123            public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
124                    long itemId, long groupId, long categoryId, java.lang.String sku,
125                    java.lang.String name, java.lang.String description,
126                    java.lang.String properties, java.lang.String fieldsQuantities,
127                    boolean requiresShipping, int stockQuantity, boolean featured,
128                    java.lang.Boolean sale, boolean smallImage,
129                    java.lang.String smallImageURL, java.io.File smallFile,
130                    boolean mediumImage, java.lang.String mediumImageURL,
131                    java.io.File mediumFile, boolean largeImage,
132                    java.lang.String largeImageURL, java.io.File largeFile,
133                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
134                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
135                    com.liferay.portal.service.ServiceContext serviceContext)
136                    throws com.liferay.portal.kernel.exception.PortalException {
137                    return _shoppingItemService.updateItem(itemId, groupId, categoryId,
138                            sku, name, description, properties, fieldsQuantities,
139                            requiresShipping, stockQuantity, featured, sale, smallImage,
140                            smallImageURL, smallFile, mediumImage, mediumImageURL, mediumFile,
141                            largeImage, largeImageURL, largeFile, itemFields, itemPrices,
142                            serviceContext);
143            }
144    
145            /**
146             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
147             */
148            @Deprecated
149            public ShoppingItemService getWrappedShoppingItemService() {
150                    return _shoppingItemService;
151            }
152    
153            /**
154             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
155             */
156            @Deprecated
157            public void setWrappedShoppingItemService(
158                    ShoppingItemService shoppingItemService) {
159                    _shoppingItemService = shoppingItemService;
160            }
161    
162            @Override
163            public ShoppingItemService getWrappedService() {
164                    return _shoppingItemService;
165            }
166    
167            @Override
168            public void setWrappedService(ShoppingItemService shoppingItemService) {
169                    _shoppingItemService = shoppingItemService;
170            }
171    
172            private ShoppingItemService _shoppingItemService;
173    }