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