001    /**
002     * Copyright (c) 2000-2012 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            public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
036                    long parentCategoryId, java.lang.String name,
037                    java.lang.String description,
038                    com.liferay.portal.service.ServiceContext serviceContext)
039                    throws com.liferay.portal.kernel.exception.PortalException,
040                            com.liferay.portal.kernel.exception.SystemException {
041                    return _shoppingCategoryService.addCategory(parentCategoryId, name,
042                            description, serviceContext);
043            }
044    
045            public void deleteCategory(long categoryId)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    _shoppingCategoryService.deleteCategory(categoryId);
049            }
050    
051            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
052                    long groupId)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return _shoppingCategoryService.getCategories(groupId);
055            }
056    
057            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
058                    long groupId, long parentCategoryId, int start, int end)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return _shoppingCategoryService.getCategories(groupId,
061                            parentCategoryId, start, end);
062            }
063    
064            public int getCategoriesCount(long groupId, long parentCategoryId)
065                    throws com.liferay.portal.kernel.exception.SystemException {
066                    return _shoppingCategoryService.getCategoriesCount(groupId,
067                            parentCategoryId);
068            }
069    
070            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
071                    long categoryId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _shoppingCategoryService.getCategory(categoryId);
075            }
076    
077            public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
078                    long groupId, long categoryId)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _shoppingCategoryService.getSubcategoryIds(categoryIds, groupId,
081                            categoryId);
082            }
083    
084            public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
085                    long categoryId, long parentCategoryId, java.lang.String name,
086                    java.lang.String description, boolean mergeWithParentCategory,
087                    com.liferay.portal.service.ServiceContext serviceContext)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _shoppingCategoryService.updateCategory(categoryId,
091                            parentCategoryId, name, description, mergeWithParentCategory,
092                            serviceContext);
093            }
094    
095            /**
096             * @deprecated Renamed to {@link #getWrappedService}
097             */
098            public ShoppingCategoryService getWrappedShoppingCategoryService() {
099                    return _shoppingCategoryService;
100            }
101    
102            /**
103             * @deprecated Renamed to {@link #setWrappedService}
104             */
105            public void setWrappedShoppingCategoryService(
106                    ShoppingCategoryService shoppingCategoryService) {
107                    _shoppingCategoryService = shoppingCategoryService;
108            }
109    
110            public ShoppingCategoryService getWrappedService() {
111                    return _shoppingCategoryService;
112            }
113    
114            public void setWrappedService(
115                    ShoppingCategoryService shoppingCategoryService) {
116                    _shoppingCategoryService = shoppingCategoryService;
117            }
118    
119            private ShoppingCategoryService _shoppingCategoryService;
120    }