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