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