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