001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link ShoppingCategoryService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ShoppingCategoryService
024     * @generated
025     */
026    public class ShoppingCategoryServiceWrapper implements ShoppingCategoryService {
027            public ShoppingCategoryServiceWrapper(
028                    ShoppingCategoryService shoppingCategoryService) {
029                    _shoppingCategoryService = shoppingCategoryService;
030            }
031    
032            public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
033                    long parentCategoryId, java.lang.String name,
034                    java.lang.String description,
035                    com.liferay.portal.service.ServiceContext serviceContext)
036                    throws com.liferay.portal.kernel.exception.PortalException,
037                            com.liferay.portal.kernel.exception.SystemException {
038                    return _shoppingCategoryService.addCategory(parentCategoryId, name,
039                            description, serviceContext);
040            }
041    
042            public void deleteCategory(long categoryId)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    _shoppingCategoryService.deleteCategory(categoryId);
046            }
047    
048            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
049                    long categoryId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException {
052                    return _shoppingCategoryService.getCategory(categoryId);
053            }
054    
055            public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
056                    long categoryId, long parentCategoryId, java.lang.String name,
057                    java.lang.String description, boolean mergeWithParentCategory,
058                    com.liferay.portal.service.ServiceContext serviceContext)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return _shoppingCategoryService.updateCategory(categoryId,
062                            parentCategoryId, name, description, mergeWithParentCategory,
063                            serviceContext);
064            }
065    
066            public ShoppingCategoryService getWrappedShoppingCategoryService() {
067                    return _shoppingCategoryService;
068            }
069    
070            private ShoppingCategoryService _shoppingCategoryService;
071    }