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 ShoppingCategoryService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingCategoryService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingCategoryServiceWrapper implements ShoppingCategoryService,
030            ServiceWrapper<ShoppingCategoryService> {
031            public ShoppingCategoryServiceWrapper(
032                    ShoppingCategoryService shoppingCategoryService) {
033                    _shoppingCategoryService = shoppingCategoryService;
034            }
035    
036            @Override
037            public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
038                    long parentCategoryId, java.lang.String name,
039                    java.lang.String description,
040                    com.liferay.portal.service.ServiceContext serviceContext)
041                    throws com.liferay.portal.kernel.exception.PortalException {
042                    return _shoppingCategoryService.addCategory(parentCategoryId, name,
043                            description, serviceContext);
044            }
045    
046            @Override
047            public void deleteCategory(long categoryId)
048                    throws com.liferay.portal.kernel.exception.PortalException {
049                    _shoppingCategoryService.deleteCategory(categoryId);
050            }
051    
052            /**
053            * Returns the Spring bean ID for this bean.
054            *
055            * @return the Spring bean ID for this bean
056            */
057            @Override
058            public java.lang.String getBeanIdentifier() {
059                    return _shoppingCategoryService.getBeanIdentifier();
060            }
061    
062            @Override
063            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
064                    long groupId) {
065                    return _shoppingCategoryService.getCategories(groupId);
066            }
067    
068            @Override
069            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
070                    long groupId, long parentCategoryId, int start, int end) {
071                    return _shoppingCategoryService.getCategories(groupId,
072                            parentCategoryId, start, end);
073            }
074    
075            @Override
076            public int getCategoriesCount(long groupId, long parentCategoryId) {
077                    return _shoppingCategoryService.getCategoriesCount(groupId,
078                            parentCategoryId);
079            }
080    
081            @Override
082            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
083                    long categoryId)
084                    throws com.liferay.portal.kernel.exception.PortalException {
085                    return _shoppingCategoryService.getCategory(categoryId);
086            }
087    
088            @Override
089            public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
090                    long groupId, long categoryId) {
091                    _shoppingCategoryService.getSubcategoryIds(categoryIds, groupId,
092                            categoryId);
093            }
094    
095            /**
096            * Sets the Spring bean ID for this bean.
097            *
098            * @param beanIdentifier the Spring bean ID for this bean
099            */
100            @Override
101            public void setBeanIdentifier(java.lang.String beanIdentifier) {
102                    _shoppingCategoryService.setBeanIdentifier(beanIdentifier);
103            }
104    
105            @Override
106            public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
107                    long categoryId, long parentCategoryId, java.lang.String name,
108                    java.lang.String description, boolean mergeWithParentCategory,
109                    com.liferay.portal.service.ServiceContext serviceContext)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    return _shoppingCategoryService.updateCategory(categoryId,
112                            parentCategoryId, name, description, mergeWithParentCategory,
113                            serviceContext);
114            }
115    
116            /**
117             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
118             */
119            @Deprecated
120            public ShoppingCategoryService getWrappedShoppingCategoryService() {
121                    return _shoppingCategoryService;
122            }
123    
124            /**
125             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
126             */
127            @Deprecated
128            public void setWrappedShoppingCategoryService(
129                    ShoppingCategoryService shoppingCategoryService) {
130                    _shoppingCategoryService = shoppingCategoryService;
131            }
132    
133            @Override
134            public ShoppingCategoryService getWrappedService() {
135                    return _shoppingCategoryService;
136            }
137    
138            @Override
139            public void setWrappedService(
140                    ShoppingCategoryService shoppingCategoryService) {
141                    _shoppingCategoryService = shoppingCategoryService;
142            }
143    
144            private ShoppingCategoryService _shoppingCategoryService;
145    }