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