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