001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link MBCategoryLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see MBCategoryLocalService
026     * @generated
027     */
028    @ProviderType
029    public class MBCategoryLocalServiceWrapper implements MBCategoryLocalService,
030            ServiceWrapper<MBCategoryLocalService> {
031            public MBCategoryLocalServiceWrapper(
032                    MBCategoryLocalService mbCategoryLocalService) {
033                    _mbCategoryLocalService = mbCategoryLocalService;
034            }
035    
036            @Override
037            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
038                    long userId, long parentCategoryId, java.lang.String name,
039                    java.lang.String description, java.lang.String displayStyle,
040                    java.lang.String emailAddress, java.lang.String inProtocol,
041                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
042                    java.lang.String inUserName, java.lang.String inPassword,
043                    int inReadInterval, java.lang.String outEmailAddress,
044                    boolean outCustom, java.lang.String outServerName, int outServerPort,
045                    boolean outUseSSL, java.lang.String outUserName,
046                    java.lang.String outPassword, boolean allowAnonymous,
047                    boolean mailingListActive,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
051                            name, description, displayStyle, emailAddress, inProtocol,
052                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
053                            inReadInterval, outEmailAddress, outCustom, outServerName,
054                            outServerPort, outUseSSL, outUserName, outPassword, allowAnonymous,
055                            mailingListActive, serviceContext);
056            }
057    
058            @Override
059            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
060                    long userId, long parentCategoryId, java.lang.String name,
061                    java.lang.String description,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException {
064                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
065                            name, description, serviceContext);
066            }
067    
068            @Override
069            public void addCategoryResources(
070                    com.liferay.portlet.messageboards.model.MBCategory category,
071                    boolean addGroupPermissions, boolean addGuestPermissions)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    _mbCategoryLocalService.addCategoryResources(category,
074                            addGroupPermissions, addGuestPermissions);
075            }
076    
077            @Override
078            public void addCategoryResources(
079                    com.liferay.portlet.messageboards.model.MBCategory category,
080                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    _mbCategoryLocalService.addCategoryResources(category,
083                            groupPermissions, guestPermissions);
084            }
085    
086            @Override
087            public void addCategoryResources(long categoryId,
088                    boolean addGroupPermissions, boolean addGuestPermissions)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    _mbCategoryLocalService.addCategoryResources(categoryId,
091                            addGroupPermissions, addGuestPermissions);
092            }
093    
094            @Override
095            public void addCategoryResources(long categoryId,
096                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
097                    throws com.liferay.portal.kernel.exception.PortalException {
098                    _mbCategoryLocalService.addCategoryResources(categoryId,
099                            groupPermissions, guestPermissions);
100            }
101    
102            /**
103            * Adds the message boards category to the database. Also notifies the appropriate model listeners.
104            *
105            * @param mbCategory the message boards category
106            * @return the message boards category that was added
107            */
108            @Override
109            public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
110                    com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
111                    return _mbCategoryLocalService.addMBCategory(mbCategory);
112            }
113    
114            /**
115            * Creates a new message boards category with the primary key. Does not add the message boards category to the database.
116            *
117            * @param categoryId the primary key for the new message boards category
118            * @return the new message boards category
119            */
120            @Override
121            public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
122                    long categoryId) {
123                    return _mbCategoryLocalService.createMBCategory(categoryId);
124            }
125    
126            @Override
127            public void deleteCategories(long groupId)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    _mbCategoryLocalService.deleteCategories(groupId);
130            }
131    
132            @Override
133            public void deleteCategory(
134                    com.liferay.portlet.messageboards.model.MBCategory category)
135                    throws com.liferay.portal.kernel.exception.PortalException {
136                    _mbCategoryLocalService.deleteCategory(category);
137            }
138    
139            @Override
140            public void deleteCategory(
141                    com.liferay.portlet.messageboards.model.MBCategory category,
142                    boolean includeTrashedEntries)
143                    throws com.liferay.portal.kernel.exception.PortalException {
144                    _mbCategoryLocalService.deleteCategory(category, includeTrashedEntries);
145            }
146    
147            @Override
148            public void deleteCategory(long categoryId)
149                    throws com.liferay.portal.kernel.exception.PortalException {
150                    _mbCategoryLocalService.deleteCategory(categoryId);
151            }
152    
153            /**
154            * Deletes the message boards category with the primary key from the database. Also notifies the appropriate model listeners.
155            *
156            * @param categoryId the primary key of the message boards category
157            * @return the message boards category that was removed
158            * @throws PortalException if a message boards category with the primary key could not be found
159            */
160            @Override
161            public com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
162                    long categoryId)
163                    throws com.liferay.portal.kernel.exception.PortalException {
164                    return _mbCategoryLocalService.deleteMBCategory(categoryId);
165            }
166    
167            /**
168            * Deletes the message boards category from the database. Also notifies the appropriate model listeners.
169            *
170            * @param mbCategory the message boards category
171            * @return the message boards category that was removed
172            */
173            @Override
174            public com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
175                    com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
176                    return _mbCategoryLocalService.deleteMBCategory(mbCategory);
177            }
178    
179            /**
180            * @throws PortalException
181            */
182            @Override
183            public com.liferay.portal.model.PersistedModel deletePersistedModel(
184                    com.liferay.portal.model.PersistedModel persistedModel)
185                    throws com.liferay.portal.kernel.exception.PortalException {
186                    return _mbCategoryLocalService.deletePersistedModel(persistedModel);
187            }
188    
189            @Override
190            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
191                    return _mbCategoryLocalService.dynamicQuery();
192            }
193    
194            /**
195            * Performs a dynamic query on the database and returns the matching rows.
196            *
197            * @param dynamicQuery the dynamic query
198            * @return the matching rows
199            */
200            @Override
201            public <T> java.util.List<T> dynamicQuery(
202                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
203                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery);
204            }
205    
206            /**
207            * Performs a dynamic query on the database and returns a range of the matching rows.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param dynamicQuery the dynamic query
214            * @param start the lower bound of the range of model instances
215            * @param end the upper bound of the range of model instances (not inclusive)
216            * @return the range of matching rows
217            */
218            @Override
219            public <T> java.util.List<T> dynamicQuery(
220                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
221                    int end) {
222                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
223            }
224    
225            /**
226            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
227            *
228            * <p>
229            * 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.
230            * </p>
231            *
232            * @param dynamicQuery the dynamic query
233            * @param start the lower bound of the range of model instances
234            * @param end the upper bound of the range of model instances (not inclusive)
235            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
236            * @return the ordered range of matching rows
237            */
238            @Override
239            public <T> java.util.List<T> dynamicQuery(
240                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
241                    int end,
242                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
243                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end,
244                            orderByComparator);
245            }
246    
247            /**
248            * Returns the number of rows that match the dynamic query.
249            *
250            * @param dynamicQuery the dynamic query
251            * @return the number of rows that match the dynamic query
252            */
253            @Override
254            public long dynamicQueryCount(
255                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
256                    return _mbCategoryLocalService.dynamicQueryCount(dynamicQuery);
257            }
258    
259            /**
260            * Returns the number of rows that match the dynamic query.
261            *
262            * @param dynamicQuery the dynamic query
263            * @param projection the projection to apply to the query
264            * @return the number of rows that match the dynamic query
265            */
266            @Override
267            public long dynamicQueryCount(
268                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
269                    com.liferay.portal.kernel.dao.orm.Projection projection) {
270                    return _mbCategoryLocalService.dynamicQueryCount(dynamicQuery,
271                            projection);
272            }
273    
274            @Override
275            public com.liferay.portlet.messageboards.model.MBCategory fetchMBCategory(
276                    long categoryId) {
277                    return _mbCategoryLocalService.fetchMBCategory(categoryId);
278            }
279    
280            /**
281            * Returns the message boards category matching the UUID and group.
282            *
283            * @param uuid the message boards category's UUID
284            * @param groupId the primary key of the group
285            * @return the matching message boards category, or <code>null</code> if a matching message boards category could not be found
286            */
287            @Override
288            public com.liferay.portlet.messageboards.model.MBCategory fetchMBCategoryByUuidAndGroupId(
289                    java.lang.String uuid, long groupId) {
290                    return _mbCategoryLocalService.fetchMBCategoryByUuidAndGroupId(uuid,
291                            groupId);
292            }
293    
294            @Override
295            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
296                    return _mbCategoryLocalService.getActionableDynamicQuery();
297            }
298    
299            /**
300            * Returns the Spring bean ID for this bean.
301            *
302            * @return the Spring bean ID for this bean
303            */
304            @Override
305            public java.lang.String getBeanIdentifier() {
306                    return _mbCategoryLocalService.getBeanIdentifier();
307            }
308    
309            @Override
310            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
311                    long groupId) {
312                    return _mbCategoryLocalService.getCategories(groupId);
313            }
314    
315            @Override
316            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
317                    long groupId, long excludedCategoryId, long parentCategoryId,
318                    int status, int start, int end) {
319                    return _mbCategoryLocalService.getCategories(groupId,
320                            excludedCategoryId, parentCategoryId, status, start, end);
321            }
322    
323            @Override
324            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
325                    long groupId, long[] excludedCategoryIds, long[] parentCategoryIds,
326                    int status, int start, int end) {
327                    return _mbCategoryLocalService.getCategories(groupId,
328                            excludedCategoryIds, parentCategoryIds, status, start, end);
329            }
330    
331            @Override
332            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
333                    long groupId, long parentCategoryId, int start, int end) {
334                    return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
335                            start, end);
336            }
337    
338            @Override
339            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
340                    long groupId, long parentCategoryId, int status, int start, int end) {
341                    return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
342                            status, start, end);
343            }
344    
345            @Override
346            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
347                    long groupId, long[] parentCategoryIds, int start, int end) {
348                    return _mbCategoryLocalService.getCategories(groupId,
349                            parentCategoryIds, start, end);
350            }
351    
352            @Override
353            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
354                    long groupId, long[] parentCategoryIds, int status, int start, int end) {
355                    return _mbCategoryLocalService.getCategories(groupId,
356                            parentCategoryIds, status, start, end);
357            }
358    
359            @Override
360            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
361                    long groupId, int status) {
362                    return _mbCategoryLocalService.getCategories(groupId, status);
363            }
364    
365            @Override
366            public java.util.List<java.lang.Object> getCategoriesAndThreads(
367                    long groupId, long categoryId) {
368                    return _mbCategoryLocalService.getCategoriesAndThreads(groupId,
369                            categoryId);
370            }
371    
372            @Override
373            public int getCategoriesCount(long groupId) {
374                    return _mbCategoryLocalService.getCategoriesCount(groupId);
375            }
376    
377            @Override
378            public int getCategoriesCount(long groupId, long excludedCategoryId,
379                    long parentCategoryId, int status) {
380                    return _mbCategoryLocalService.getCategoriesCount(groupId,
381                            excludedCategoryId, parentCategoryId, status);
382            }
383    
384            @Override
385            public int getCategoriesCount(long groupId, long[] excludedCategoryIds,
386                    long[] parentCategoryIds, int status) {
387                    return _mbCategoryLocalService.getCategoriesCount(groupId,
388                            excludedCategoryIds, parentCategoryIds, status);
389            }
390    
391            @Override
392            public int getCategoriesCount(long groupId, long parentCategoryId) {
393                    return _mbCategoryLocalService.getCategoriesCount(groupId,
394                            parentCategoryId);
395            }
396    
397            @Override
398            public int getCategoriesCount(long groupId, long parentCategoryId,
399                    int status) {
400                    return _mbCategoryLocalService.getCategoriesCount(groupId,
401                            parentCategoryId, status);
402            }
403    
404            @Override
405            public int getCategoriesCount(long groupId, long[] parentCategoryIds) {
406                    return _mbCategoryLocalService.getCategoriesCount(groupId,
407                            parentCategoryIds);
408            }
409    
410            @Override
411            public int getCategoriesCount(long groupId, long[] parentCategoryIds,
412                    int status) {
413                    return _mbCategoryLocalService.getCategoriesCount(groupId,
414                            parentCategoryIds, status);
415            }
416    
417            @Override
418            public int getCategoriesCount(long groupId, int status) {
419                    return _mbCategoryLocalService.getCategoriesCount(groupId, status);
420            }
421    
422            @Override
423            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
424                    long categoryId)
425                    throws com.liferay.portal.kernel.exception.PortalException {
426                    return _mbCategoryLocalService.getCategory(categoryId);
427            }
428    
429            @Override
430            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
431                    long companyId, int start, int end) {
432                    return _mbCategoryLocalService.getCompanyCategories(companyId, start,
433                            end);
434            }
435    
436            @Override
437            public int getCompanyCategoriesCount(long companyId) {
438                    return _mbCategoryLocalService.getCompanyCategoriesCount(companyId);
439            }
440    
441            @Override
442            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
443                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
444                    return _mbCategoryLocalService.getExportActionableDynamicQuery(portletDataContext);
445            }
446    
447            /**
448            * Returns a range of all the message boards categories.
449            *
450            * <p>
451            * 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.
452            * </p>
453            *
454            * @param start the lower bound of the range of message boards categories
455            * @param end the upper bound of the range of message boards categories (not inclusive)
456            * @return the range of message boards categories
457            */
458            @Override
459            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
460                    int start, int end) {
461                    return _mbCategoryLocalService.getMBCategories(start, end);
462            }
463    
464            @Override
465            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
466                    java.lang.String uuid, long companyId) {
467                    return _mbCategoryLocalService.getMBCategoriesByUuidAndCompanyId(uuid,
468                            companyId);
469            }
470    
471            @Override
472            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
473                    java.lang.String uuid, long companyId, int start, int end,
474                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBCategory> orderByComparator) {
475                    return _mbCategoryLocalService.getMBCategoriesByUuidAndCompanyId(uuid,
476                            companyId, start, end, orderByComparator);
477            }
478    
479            /**
480            * Returns the number of message boards categories.
481            *
482            * @return the number of message boards categories
483            */
484            @Override
485            public int getMBCategoriesCount() {
486                    return _mbCategoryLocalService.getMBCategoriesCount();
487            }
488    
489            /**
490            * Returns the message boards category with the primary key.
491            *
492            * @param categoryId the primary key of the message boards category
493            * @return the message boards category
494            * @throws PortalException if a message boards category with the primary key could not be found
495            */
496            @Override
497            public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
498                    long categoryId)
499                    throws com.liferay.portal.kernel.exception.PortalException {
500                    return _mbCategoryLocalService.getMBCategory(categoryId);
501            }
502    
503            /**
504            * Returns the message boards category matching the UUID and group.
505            *
506            * @param uuid the message boards category's UUID
507            * @param groupId the primary key of the group
508            * @return the matching message boards category
509            * @throws PortalException if a matching message boards category could not be found
510            */
511            @Override
512            public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
513                    java.lang.String uuid, long groupId)
514                    throws com.liferay.portal.kernel.exception.PortalException {
515                    return _mbCategoryLocalService.getMBCategoryByUuidAndGroupId(uuid,
516                            groupId);
517            }
518    
519            @Override
520            public com.liferay.portal.model.PersistedModel getPersistedModel(
521                    java.io.Serializable primaryKeyObj)
522                    throws com.liferay.portal.kernel.exception.PortalException {
523                    return _mbCategoryLocalService.getPersistedModel(primaryKeyObj);
524            }
525    
526            @Override
527            public java.util.List<java.lang.Long> getSubcategoryIds(
528                    java.util.List<java.lang.Long> categoryIds, long groupId,
529                    long categoryId) {
530                    return _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
531                            categoryId);
532            }
533    
534            @Override
535            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
536                    long groupId, long userId, int start, int end) {
537                    return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
538                            start, end);
539            }
540    
541            @Override
542            public int getSubscribedCategoriesCount(long groupId, long userId) {
543                    return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
544                            userId);
545            }
546    
547            @Override
548            public void moveCategoriesToTrash(long groupId, long userId)
549                    throws com.liferay.portal.kernel.exception.PortalException {
550                    _mbCategoryLocalService.moveCategoriesToTrash(groupId, userId);
551            }
552    
553            @Override
554            public com.liferay.portlet.messageboards.model.MBCategory moveCategory(
555                    long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
556                    throws com.liferay.portal.kernel.exception.PortalException {
557                    return _mbCategoryLocalService.moveCategory(categoryId,
558                            parentCategoryId, mergeWithParentCategory);
559            }
560    
561            @Override
562            public com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
563                    long userId, long categoryId, long newCategoryId)
564                    throws com.liferay.portal.kernel.exception.PortalException {
565                    return _mbCategoryLocalService.moveCategoryFromTrash(userId,
566                            categoryId, newCategoryId);
567            }
568    
569            @Override
570            public com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
571                    long userId, long categoryId)
572                    throws com.liferay.portal.kernel.exception.PortalException {
573                    return _mbCategoryLocalService.moveCategoryToTrash(userId, categoryId);
574            }
575    
576            @Override
577            public void restoreCategoryFromTrash(long userId, long categoryId)
578                    throws com.liferay.portal.kernel.exception.PortalException {
579                    _mbCategoryLocalService.restoreCategoryFromTrash(userId, categoryId);
580            }
581    
582            /**
583            * Sets the Spring bean ID for this bean.
584            *
585            * @param beanIdentifier the Spring bean ID for this bean
586            */
587            @Override
588            public void setBeanIdentifier(java.lang.String beanIdentifier) {
589                    _mbCategoryLocalService.setBeanIdentifier(beanIdentifier);
590            }
591    
592            @Override
593            public void subscribeCategory(long userId, long groupId, long categoryId)
594                    throws com.liferay.portal.kernel.exception.PortalException {
595                    _mbCategoryLocalService.subscribeCategory(userId, groupId, categoryId);
596            }
597    
598            @Override
599            public void unsubscribeCategory(long userId, long groupId, long categoryId)
600                    throws com.liferay.portal.kernel.exception.PortalException {
601                    _mbCategoryLocalService.unsubscribeCategory(userId, groupId, categoryId);
602            }
603    
604            @Override
605            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
606                    long categoryId, long parentCategoryId, java.lang.String name,
607                    java.lang.String description, java.lang.String displayStyle,
608                    java.lang.String emailAddress, java.lang.String inProtocol,
609                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
610                    java.lang.String inUserName, java.lang.String inPassword,
611                    int inReadInterval, java.lang.String outEmailAddress,
612                    boolean outCustom, java.lang.String outServerName, int outServerPort,
613                    boolean outUseSSL, java.lang.String outUserName,
614                    java.lang.String outPassword, boolean allowAnonymous,
615                    boolean mailingListActive, boolean mergeWithParentCategory,
616                    com.liferay.portal.service.ServiceContext serviceContext)
617                    throws com.liferay.portal.kernel.exception.PortalException {
618                    return _mbCategoryLocalService.updateCategory(categoryId,
619                            parentCategoryId, name, description, displayStyle, emailAddress,
620                            inProtocol, inServerName, inServerPort, inUseSSL, inUserName,
621                            inPassword, inReadInterval, outEmailAddress, outCustom,
622                            outServerName, outServerPort, outUseSSL, outUserName, outPassword,
623                            allowAnonymous, mailingListActive, mergeWithParentCategory,
624                            serviceContext);
625            }
626    
627            /**
628            * Updates the message boards category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
629            *
630            * @param mbCategory the message boards category
631            * @return the message boards category that was updated
632            */
633            @Override
634            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
635                    com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
636                    return _mbCategoryLocalService.updateMBCategory(mbCategory);
637            }
638    
639            @Override
640            public com.liferay.portlet.messageboards.model.MBCategory updateStatus(
641                    long userId, long categoryId, int status)
642                    throws com.liferay.portal.kernel.exception.PortalException {
643                    return _mbCategoryLocalService.updateStatus(userId, categoryId, status);
644            }
645    
646            /**
647             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
648             */
649            @Deprecated
650            public MBCategoryLocalService getWrappedMBCategoryLocalService() {
651                    return _mbCategoryLocalService;
652            }
653    
654            /**
655             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
656             */
657            @Deprecated
658            public void setWrappedMBCategoryLocalService(
659                    MBCategoryLocalService mbCategoryLocalService) {
660                    _mbCategoryLocalService = mbCategoryLocalService;
661            }
662    
663            @Override
664            public MBCategoryLocalService getWrappedService() {
665                    return _mbCategoryLocalService;
666            }
667    
668            @Override
669            public void setWrappedService(MBCategoryLocalService mbCategoryLocalService) {
670                    _mbCategoryLocalService = mbCategoryLocalService;
671            }
672    
673            private MBCategoryLocalService _mbCategoryLocalService;
674    }