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