1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.shopping.service;
16  
17  /**
18   * <a href="ShoppingCategoryServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link ShoppingCategoryService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       ShoppingCategoryService
31   * @generated
32   */
33  public class ShoppingCategoryServiceWrapper implements ShoppingCategoryService {
34      public ShoppingCategoryServiceWrapper(
35          ShoppingCategoryService shoppingCategoryService) {
36          _shoppingCategoryService = shoppingCategoryService;
37      }
38  
39      public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
40          long parentCategoryId, java.lang.String name,
41          java.lang.String description,
42          com.liferay.portal.service.ServiceContext serviceContext)
43          throws com.liferay.portal.PortalException,
44              com.liferay.portal.SystemException {
45          return _shoppingCategoryService.addCategory(parentCategoryId, name,
46              description, serviceContext);
47      }
48  
49      public void deleteCategory(long categoryId)
50          throws com.liferay.portal.PortalException,
51              com.liferay.portal.SystemException {
52          _shoppingCategoryService.deleteCategory(categoryId);
53      }
54  
55      public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
56          long categoryId)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException {
59          return _shoppingCategoryService.getCategory(categoryId);
60      }
61  
62      public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
63          long categoryId, long parentCategoryId, java.lang.String name,
64          java.lang.String description, boolean mergeWithParentCategory,
65          com.liferay.portal.service.ServiceContext serviceContext)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException {
68          return _shoppingCategoryService.updateCategory(categoryId,
69              parentCategoryId, name, description, mergeWithParentCategory,
70              serviceContext);
71      }
72  
73      public ShoppingCategoryService getWrappedShoppingCategoryService() {
74          return _shoppingCategoryService;
75      }
76  
77      private ShoppingCategoryService _shoppingCategoryService;
78  }