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="MBCategoryLocalServiceUtil.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 MBCategoryLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       MBCategoryLocalService
32   * @generated
33   */
34  public class MBCategoryLocalServiceWrapper implements MBCategoryLocalService {
35      public MBCategoryLocalServiceWrapper(
36          MBCategoryLocalService mbCategoryLocalService) {
37          _mbCategoryLocalService = mbCategoryLocalService;
38      }
39  
40      public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
41          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
42          throws com.liferay.portal.SystemException {
43          return _mbCategoryLocalService.addMBCategory(mbCategory);
44      }
45  
46      public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
47          long categoryId) {
48          return _mbCategoryLocalService.createMBCategory(categoryId);
49      }
50  
51      public void deleteMBCategory(long categoryId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _mbCategoryLocalService.deleteMBCategory(categoryId);
55      }
56  
57      public void deleteMBCategory(
58          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
59          throws com.liferay.portal.SystemException {
60          _mbCategoryLocalService.deleteMBCategory(mbCategory);
61      }
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return _mbCategoryLocalService.dynamicQuery(dynamicQuery);
67      }
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
76          long categoryId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return _mbCategoryLocalService.getMBCategory(categoryId);
80      }
81  
82      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return _mbCategoryLocalService.getMBCategories(start, end);
85      }
86  
87      public int getMBCategoriesCount() throws com.liferay.portal.SystemException {
88          return _mbCategoryLocalService.getMBCategoriesCount();
89      }
90  
91      public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
92          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
93          throws com.liferay.portal.SystemException {
94          return _mbCategoryLocalService.updateMBCategory(mbCategory);
95      }
96  
97      public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
98          com.liferay.portlet.messageboards.model.MBCategory mbCategory,
99          boolean merge) throws com.liferay.portal.SystemException {
100         return _mbCategoryLocalService.updateMBCategory(mbCategory, merge);
101     }
102 
103     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
104         long userId, long plid, long parentCategoryId, java.lang.String name,
105         java.lang.String description, boolean addCommunityPermissions,
106         boolean addGuestPermissions)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException {
109         return _mbCategoryLocalService.addCategory(userId, plid,
110             parentCategoryId, name, description, addCommunityPermissions,
111             addGuestPermissions);
112     }
113 
114     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
115         long userId, long plid, long parentCategoryId, java.lang.String name,
116         java.lang.String description, java.lang.String[] communityPermissions,
117         java.lang.String[] guestPermissions)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException {
120         return _mbCategoryLocalService.addCategory(userId, plid,
121             parentCategoryId, name, description, communityPermissions,
122             guestPermissions);
123     }
124 
125     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
126         java.lang.String uuid, long userId, long plid, long parentCategoryId,
127         java.lang.String name, java.lang.String description,
128         boolean addCommunityPermissions, boolean addGuestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         return _mbCategoryLocalService.addCategory(uuid, userId, plid,
132             parentCategoryId, name, description, addCommunityPermissions,
133             addGuestPermissions);
134     }
135 
136     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
137         java.lang.String uuid, long userId, long plid, long parentCategoryId,
138         java.lang.String name, java.lang.String description,
139         java.lang.Boolean addCommunityPermissions,
140         java.lang.Boolean addGuestPermissions,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException {
145         return _mbCategoryLocalService.addCategory(uuid, userId, plid,
146             parentCategoryId, name, description, addCommunityPermissions,
147             addGuestPermissions, communityPermissions, guestPermissions);
148     }
149 
150     public void addCategoryResources(long categoryId,
151         boolean addCommunityPermissions, boolean addGuestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         _mbCategoryLocalService.addCategoryResources(categoryId,
155             addCommunityPermissions, addGuestPermissions);
156     }
157 
158     public void addCategoryResources(long categoryId,
159         java.lang.String[] communityPermissions,
160         java.lang.String[] guestPermissions)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         _mbCategoryLocalService.addCategoryResources(categoryId,
164             communityPermissions, guestPermissions);
165     }
166 
167     public void addCategoryResources(
168         com.liferay.portlet.messageboards.model.MBCategory category,
169         boolean addCommunityPermissions, boolean addGuestPermissions)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException {
172         _mbCategoryLocalService.addCategoryResources(category,
173             addCommunityPermissions, addGuestPermissions);
174     }
175 
176     public void addCategoryResources(
177         com.liferay.portlet.messageboards.model.MBCategory category,
178         java.lang.String[] communityPermissions,
179         java.lang.String[] guestPermissions)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         _mbCategoryLocalService.addCategoryResources(category,
183             communityPermissions, guestPermissions);
184     }
185 
186     public void deleteCategories(long groupId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException {
189         _mbCategoryLocalService.deleteCategories(groupId);
190     }
191 
192     public void deleteCategory(long categoryId)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         _mbCategoryLocalService.deleteCategory(categoryId);
196     }
197 
198     public void deleteCategory(
199         com.liferay.portlet.messageboards.model.MBCategory category)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException {
202         _mbCategoryLocalService.deleteCategory(category);
203     }
204 
205     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
206         long groupId) throws com.liferay.portal.SystemException {
207         return _mbCategoryLocalService.getCategories(groupId);
208     }
209 
210     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
211         long groupId, long parentCategoryId)
212         throws com.liferay.portal.SystemException {
213         return _mbCategoryLocalService.getCategories(groupId, parentCategoryId);
214     }
215 
216     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
217         long groupId, long parentCategoryId, int start, int end)
218         throws com.liferay.portal.SystemException {
219         return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
220             start, end);
221     }
222 
223     public int getCategoriesCount(long groupId)
224         throws com.liferay.portal.SystemException {
225         return _mbCategoryLocalService.getCategoriesCount(groupId);
226     }
227 
228     public int getCategoriesCount(long groupId, long parentCategoryId)
229         throws com.liferay.portal.SystemException {
230         return _mbCategoryLocalService.getCategoriesCount(groupId,
231             parentCategoryId);
232     }
233 
234     public com.liferay.portlet.messageboards.model.MBCategory getCategory(
235         long categoryId)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException {
238         return _mbCategoryLocalService.getCategory(categoryId);
239     }
240 
241     public void getSubcategoryIds(java.util.List<Long> categoryIds,
242         long groupId, long categoryId)
243         throws com.liferay.portal.SystemException {
244         _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
245             categoryId);
246     }
247 
248     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
249         long groupId, long userId, int start, int end)
250         throws com.liferay.portal.SystemException {
251         return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
252             start, end);
253     }
254 
255     public int getSubscribedCategoriesCount(long groupId, long userId)
256         throws com.liferay.portal.SystemException {
257         return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
258             userId);
259     }
260 
261     public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
262         throws com.liferay.portal.SystemException {
263         return _mbCategoryLocalService.getSystemCategory();
264     }
265 
266     public void reIndex(java.lang.String[] ids)
267         throws com.liferay.portal.SystemException {
268         _mbCategoryLocalService.reIndex(ids);
269     }
270 
271     public com.liferay.portal.kernel.search.Hits search(long companyId,
272         long groupId, long[] categoryIds, long threadId,
273         java.lang.String keywords, int start, int end)
274         throws com.liferay.portal.SystemException {
275         return _mbCategoryLocalService.search(companyId, groupId, categoryIds,
276             threadId, keywords, start, end);
277     }
278 
279     public void subscribeCategory(long userId, long categoryId)
280         throws com.liferay.portal.PortalException,
281             com.liferay.portal.SystemException {
282         _mbCategoryLocalService.subscribeCategory(userId, categoryId);
283     }
284 
285     public void unsubscribeCategory(long userId, long categoryId)
286         throws com.liferay.portal.PortalException,
287             com.liferay.portal.SystemException {
288         _mbCategoryLocalService.unsubscribeCategory(userId, categoryId);
289     }
290 
291     public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
292         long categoryId, long parentCategoryId, java.lang.String name,
293         java.lang.String description, boolean mergeWithParentCategory)
294         throws com.liferay.portal.PortalException,
295             com.liferay.portal.SystemException {
296         return _mbCategoryLocalService.updateCategory(categoryId,
297             parentCategoryId, name, description, mergeWithParentCategory);
298     }
299 
300     public MBCategoryLocalService getWrappedMBCategoryLocalService() {
301         return _mbCategoryLocalService;
302     }
303 
304     private MBCategoryLocalService _mbCategoryLocalService;
305 }