001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link MBCategoryLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBCategoryLocalService
026     * @generated
027     */
028    public class MBCategoryLocalServiceWrapper implements MBCategoryLocalService,
029            ServiceWrapper<MBCategoryLocalService> {
030            public MBCategoryLocalServiceWrapper(
031                    MBCategoryLocalService mbCategoryLocalService) {
032                    _mbCategoryLocalService = mbCategoryLocalService;
033            }
034    
035            /**
036            * Adds the message boards category to the database. Also notifies the appropriate model listeners.
037            *
038            * @param mbCategory the message boards category
039            * @return the message boards category that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
043                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _mbCategoryLocalService.addMBCategory(mbCategory);
046            }
047    
048            /**
049            * Creates a new message boards category with the primary key. Does not add the message boards category to the database.
050            *
051            * @param categoryId the primary key for the new message boards category
052            * @return the new message boards category
053            */
054            public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
055                    long categoryId) {
056                    return _mbCategoryLocalService.createMBCategory(categoryId);
057            }
058    
059            /**
060            * Deletes the message boards category with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param categoryId the primary key of the message boards category
063            * @return the message boards category that was removed
064            * @throws PortalException if a message boards category with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
068                    long categoryId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _mbCategoryLocalService.deleteMBCategory(categoryId);
072            }
073    
074            /**
075            * Deletes the message boards category from the database. Also notifies the appropriate model listeners.
076            *
077            * @param mbCategory the message boards category
078            * @return the message boards category that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
082                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _mbCategoryLocalService.deleteMBCategory(mbCategory);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _mbCategoryLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _mbCategoryLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.messageboards.model.MBCategory fetchMBCategory(
163                    long categoryId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _mbCategoryLocalService.fetchMBCategory(categoryId);
166            }
167    
168            /**
169            * Returns the message boards category with the primary key.
170            *
171            * @param categoryId the primary key of the message boards category
172            * @return the message boards category
173            * @throws PortalException if a message boards category with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
177                    long categoryId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _mbCategoryLocalService.getMBCategory(categoryId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _mbCategoryLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns the message boards category with the UUID in the group.
192            *
193            * @param uuid the UUID of message boards category
194            * @param groupId the group id of the message boards category
195            * @return the message boards category
196            * @throws PortalException if a message boards category with the UUID in the group could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
200                    java.lang.String uuid, long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _mbCategoryLocalService.getMBCategoryByUuidAndGroupId(uuid,
204                            groupId);
205            }
206    
207            /**
208            * Returns a range of all the message boards categories.
209            *
210            * <p>
211            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
212            * </p>
213            *
214            * @param start the lower bound of the range of message boards categories
215            * @param end the upper bound of the range of message boards categories (not inclusive)
216            * @return the range of message boards categories
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
220                    int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _mbCategoryLocalService.getMBCategories(start, end);
223            }
224    
225            /**
226            * Returns the number of message boards categories.
227            *
228            * @return the number of message boards categories
229            * @throws SystemException if a system exception occurred
230            */
231            public int getMBCategoriesCount()
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _mbCategoryLocalService.getMBCategoriesCount();
234            }
235    
236            /**
237            * Updates the message boards category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
238            *
239            * @param mbCategory the message boards category
240            * @return the message boards category that was updated
241            * @throws SystemException if a system exception occurred
242            */
243            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
244                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _mbCategoryLocalService.updateMBCategory(mbCategory);
247            }
248    
249            /**
250            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _mbCategoryLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _mbCategoryLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
268                    long userId, long parentCategoryId, java.lang.String name,
269                    java.lang.String description,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
274                            name, description, serviceContext);
275            }
276    
277            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
278                    long userId, long parentCategoryId, java.lang.String name,
279                    java.lang.String description, java.lang.String displayStyle,
280                    java.lang.String emailAddress, java.lang.String inProtocol,
281                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
282                    java.lang.String inUserName, java.lang.String inPassword,
283                    int inReadInterval, java.lang.String outEmailAddress,
284                    boolean outCustom, java.lang.String outServerName, int outServerPort,
285                    boolean outUseSSL, java.lang.String outUserName,
286                    java.lang.String outPassword, boolean allowAnonymous,
287                    boolean mailingListActive,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
292                            name, description, displayStyle, emailAddress, inProtocol,
293                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
294                            inReadInterval, outEmailAddress, outCustom, outServerName,
295                            outServerPort, outUseSSL, outUserName, outPassword, allowAnonymous,
296                            mailingListActive, serviceContext);
297            }
298    
299            public void addCategoryResources(long categoryId,
300                    boolean addGroupPermissions, boolean addGuestPermissions)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _mbCategoryLocalService.addCategoryResources(categoryId,
304                            addGroupPermissions, addGuestPermissions);
305            }
306    
307            public void addCategoryResources(long categoryId,
308                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    _mbCategoryLocalService.addCategoryResources(categoryId,
312                            groupPermissions, guestPermissions);
313            }
314    
315            public void addCategoryResources(
316                    com.liferay.portlet.messageboards.model.MBCategory category,
317                    boolean addGroupPermissions, boolean addGuestPermissions)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _mbCategoryLocalService.addCategoryResources(category,
321                            addGroupPermissions, addGuestPermissions);
322            }
323    
324            public void addCategoryResources(
325                    com.liferay.portlet.messageboards.model.MBCategory category,
326                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    _mbCategoryLocalService.addCategoryResources(category,
330                            groupPermissions, guestPermissions);
331            }
332    
333            public void deleteCategories(long groupId)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    _mbCategoryLocalService.deleteCategories(groupId);
337            }
338    
339            public void deleteCategory(long categoryId)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    _mbCategoryLocalService.deleteCategory(categoryId);
343            }
344    
345            public void deleteCategory(
346                    com.liferay.portlet.messageboards.model.MBCategory category)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    _mbCategoryLocalService.deleteCategory(category);
350            }
351    
352            public void deleteCategory(
353                    com.liferay.portlet.messageboards.model.MBCategory category,
354                    boolean includeTrashedEntries)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    _mbCategoryLocalService.deleteCategory(category, includeTrashedEntries);
358            }
359    
360            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
361                    long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _mbCategoryLocalService.getCategories(groupId);
364            }
365    
366            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
367                    long groupId, int status)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _mbCategoryLocalService.getCategories(groupId, status);
370            }
371    
372            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
373                    long groupId, long parentCategoryId, int start, int end)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
376                            start, end);
377            }
378    
379            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
380                    long groupId, long parentCategoryId, int status, int start, int end)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
383                            status, start, end);
384            }
385    
386            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
387                    long groupId, long[] parentCategoryIds, int start, int end)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _mbCategoryLocalService.getCategories(groupId,
390                            parentCategoryIds, start, end);
391            }
392    
393            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
394                    long groupId, long[] parentCategoryIds, int status, int start, int end)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _mbCategoryLocalService.getCategories(groupId,
397                            parentCategoryIds, status, start, end);
398            }
399    
400            public java.util.List<java.lang.Object> getCategoriesAndThreads(
401                    long groupId, long categoryId)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _mbCategoryLocalService.getCategoriesAndThreads(groupId,
404                            categoryId);
405            }
406    
407            public int getCategoriesCount(long groupId)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return _mbCategoryLocalService.getCategoriesCount(groupId);
410            }
411    
412            public int getCategoriesCount(long groupId, int status)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return _mbCategoryLocalService.getCategoriesCount(groupId, status);
415            }
416    
417            public int getCategoriesCount(long groupId, long parentCategoryId)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _mbCategoryLocalService.getCategoriesCount(groupId,
420                            parentCategoryId);
421            }
422    
423            public int getCategoriesCount(long groupId, long parentCategoryId,
424                    int status) throws com.liferay.portal.kernel.exception.SystemException {
425                    return _mbCategoryLocalService.getCategoriesCount(groupId,
426                            parentCategoryId, status);
427            }
428    
429            public int getCategoriesCount(long groupId, long[] parentCategoryIds)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return _mbCategoryLocalService.getCategoriesCount(groupId,
432                            parentCategoryIds);
433            }
434    
435            public int getCategoriesCount(long groupId, long[] parentCategoryIds,
436                    int status) throws com.liferay.portal.kernel.exception.SystemException {
437                    return _mbCategoryLocalService.getCategoriesCount(groupId,
438                            parentCategoryIds, status);
439            }
440    
441            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
442                    long categoryId)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return _mbCategoryLocalService.getCategory(categoryId);
446            }
447    
448            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
449                    long companyId, int start, int end)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return _mbCategoryLocalService.getCompanyCategories(companyId, start,
452                            end);
453            }
454    
455            public int getCompanyCategoriesCount(long companyId)
456                    throws com.liferay.portal.kernel.exception.SystemException {
457                    return _mbCategoryLocalService.getCompanyCategoriesCount(companyId);
458            }
459    
460            public java.util.List<java.lang.Long> getSubcategoryIds(
461                    java.util.List<java.lang.Long> categoryIds, long groupId,
462                    long categoryId)
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
465                            categoryId);
466            }
467    
468            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
469                    long groupId, long userId, int start, int end)
470                    throws com.liferay.portal.kernel.exception.SystemException {
471                    return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
472                            start, end);
473            }
474    
475            public int getSubscribedCategoriesCount(long groupId, long userId)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
478                            userId);
479            }
480    
481            public void moveCategoriesToTrash(long groupId, long userId)
482                    throws com.liferay.portal.kernel.exception.PortalException,
483                            com.liferay.portal.kernel.exception.SystemException {
484                    _mbCategoryLocalService.moveCategoriesToTrash(groupId, userId);
485            }
486    
487            public com.liferay.portlet.messageboards.model.MBCategory moveCategory(
488                    long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    return _mbCategoryLocalService.moveCategory(categoryId,
492                            parentCategoryId, mergeWithParentCategory);
493            }
494    
495            public com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
496                    long userId, long categoryId, long newCategoryId)
497                    throws com.liferay.portal.kernel.exception.PortalException,
498                            com.liferay.portal.kernel.exception.SystemException {
499                    return _mbCategoryLocalService.moveCategoryFromTrash(userId,
500                            categoryId, newCategoryId);
501            }
502    
503            public com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
504                    long userId, long categoryId)
505                    throws com.liferay.portal.kernel.exception.PortalException,
506                            com.liferay.portal.kernel.exception.SystemException {
507                    return _mbCategoryLocalService.moveCategoryToTrash(userId, categoryId);
508            }
509    
510            public void restoreCategoryFromTrash(long userId, long categoryId)
511                    throws com.liferay.portal.kernel.exception.PortalException,
512                            com.liferay.portal.kernel.exception.SystemException {
513                    _mbCategoryLocalService.restoreCategoryFromTrash(userId, categoryId);
514            }
515    
516            public void subscribeCategory(long userId, long groupId, long categoryId)
517                    throws com.liferay.portal.kernel.exception.PortalException,
518                            com.liferay.portal.kernel.exception.SystemException {
519                    _mbCategoryLocalService.subscribeCategory(userId, groupId, categoryId);
520            }
521    
522            public void unsubscribeCategory(long userId, long groupId, long categoryId)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException {
525                    _mbCategoryLocalService.unsubscribeCategory(userId, groupId, categoryId);
526            }
527    
528            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
529                    long categoryId, long parentCategoryId, java.lang.String name,
530                    java.lang.String description, java.lang.String displayStyle,
531                    java.lang.String emailAddress, java.lang.String inProtocol,
532                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
533                    java.lang.String inUserName, java.lang.String inPassword,
534                    int inReadInterval, java.lang.String outEmailAddress,
535                    boolean outCustom, java.lang.String outServerName, int outServerPort,
536                    boolean outUseSSL, java.lang.String outUserName,
537                    java.lang.String outPassword, boolean allowAnonymous,
538                    boolean mailingListActive, boolean mergeWithParentCategory,
539                    com.liferay.portal.service.ServiceContext serviceContext)
540                    throws com.liferay.portal.kernel.exception.PortalException,
541                            com.liferay.portal.kernel.exception.SystemException {
542                    return _mbCategoryLocalService.updateCategory(categoryId,
543                            parentCategoryId, name, description, displayStyle, emailAddress,
544                            inProtocol, inServerName, inServerPort, inUseSSL, inUserName,
545                            inPassword, inReadInterval, outEmailAddress, outCustom,
546                            outServerName, outServerPort, outUseSSL, outUserName, outPassword,
547                            allowAnonymous, mailingListActive, mergeWithParentCategory,
548                            serviceContext);
549            }
550    
551            public void updateDependentStatus(com.liferay.portal.model.User user,
552                    java.util.List<java.lang.Object> categoriesAndThreads, int status)
553                    throws com.liferay.portal.kernel.exception.PortalException,
554                            com.liferay.portal.kernel.exception.SystemException {
555                    _mbCategoryLocalService.updateDependentStatus(user,
556                            categoriesAndThreads, status);
557            }
558    
559            public com.liferay.portlet.messageboards.model.MBCategory updateStatus(
560                    long userId, long categoryId, int status)
561                    throws com.liferay.portal.kernel.exception.PortalException,
562                            com.liferay.portal.kernel.exception.SystemException {
563                    return _mbCategoryLocalService.updateStatus(userId, categoryId, status);
564            }
565    
566            /**
567             * @deprecated Renamed to {@link #getWrappedService}
568             */
569            public MBCategoryLocalService getWrappedMBCategoryLocalService() {
570                    return _mbCategoryLocalService;
571            }
572    
573            /**
574             * @deprecated Renamed to {@link #setWrappedService}
575             */
576            public void setWrappedMBCategoryLocalService(
577                    MBCategoryLocalService mbCategoryLocalService) {
578                    _mbCategoryLocalService = mbCategoryLocalService;
579            }
580    
581            public MBCategoryLocalService getWrappedService() {
582                    return _mbCategoryLocalService;
583            }
584    
585            public void setWrappedService(MBCategoryLocalService mbCategoryLocalService) {
586                    _mbCategoryLocalService = mbCategoryLocalService;
587            }
588    
589            private MBCategoryLocalService _mbCategoryLocalService;
590    }