1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  
18  /**
19   * <a href="MBCategoryServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link MBCategoryService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       MBCategoryService
32   * @generated
33   */
34  public class MBCategoryServiceWrapper implements MBCategoryService {
35      public MBCategoryServiceWrapper(MBCategoryService mbCategoryService) {
36          _mbCategoryService = mbCategoryService;
37      }
38  
39      public com.liferay.portlet.messageboards.model.MBCategory addCategory(
40          long plid, long parentCategoryId, java.lang.String name,
41          java.lang.String description, boolean addCommunityPermissions,
42          boolean addGuestPermissions)
43          throws com.liferay.portal.PortalException,
44              com.liferay.portal.SystemException, java.rmi.RemoteException {
45          return _mbCategoryService.addCategory(plid, parentCategoryId, name,
46              description, addCommunityPermissions, addGuestPermissions);
47      }
48  
49      public com.liferay.portlet.messageboards.model.MBCategory addCategory(
50          long plid, long parentCategoryId, java.lang.String name,
51          java.lang.String description, java.lang.String[] communityPermissions,
52          java.lang.String[] guestPermissions)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException, java.rmi.RemoteException {
55          return _mbCategoryService.addCategory(plid, parentCategoryId, name,
56              description, communityPermissions, guestPermissions);
57      }
58  
59      public void deleteCategory(long categoryId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException, java.rmi.RemoteException {
62          _mbCategoryService.deleteCategory(categoryId);
63      }
64  
65      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
66          long groupId, long parentCategoryId, int start, int end)
67          throws com.liferay.portal.PortalException,
68              com.liferay.portal.SystemException, java.rmi.RemoteException {
69          return _mbCategoryService.getCategories(groupId, parentCategoryId,
70              start, end);
71      }
72  
73      public int getCategoriesCount(long groupId, long parentCategoryId)
74          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
75          return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
76      }
77  
78      public com.liferay.portlet.messageboards.model.MBCategory getCategory(
79          long categoryId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException, java.rmi.RemoteException {
82          return _mbCategoryService.getCategory(categoryId);
83      }
84  
85      public void subscribeCategory(long categoryId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException, java.rmi.RemoteException {
88          _mbCategoryService.subscribeCategory(categoryId);
89      }
90  
91      public void unsubscribeCategory(long categoryId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException, java.rmi.RemoteException {
94          _mbCategoryService.unsubscribeCategory(categoryId);
95      }
96  
97      public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
98          long categoryId, long parentCategoryId, java.lang.String name,
99          java.lang.String description, boolean mergeWithParentCategory)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException, java.rmi.RemoteException {
102         return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
103             name, description, mergeWithParentCategory);
104     }
105 
106     public MBCategoryService getWrappedMBCategoryService() {
107         return _mbCategoryService;
108     }
109 
110     private MBCategoryService _mbCategoryService;
111 }