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 java.util.List<java.lang.Object> getCategoriesAndThreads(
363                    long groupId, long categoryId, int status) {
364                    return _mbCategoryLocalService.getCategoriesAndThreads(groupId,
365                            categoryId, status);
366            }
367    
368            @Override
369            public java.util.List<java.lang.Object> getCategoriesAndThreads(
370                    long groupId, long categoryId, int status, int start, int end) {
371                    return _mbCategoryLocalService.getCategoriesAndThreads(groupId,
372                            categoryId, status, start, end);
373            }
374    
375            @Override
376            public int getCategoriesAndThreadsCount(long groupId, long categoryId) {
377                    return _mbCategoryLocalService.getCategoriesAndThreadsCount(groupId,
378                            categoryId);
379            }
380    
381            @Override
382            public int getCategoriesAndThreadsCount(long groupId, long categoryId,
383                    int status) {
384                    return _mbCategoryLocalService.getCategoriesAndThreadsCount(groupId,
385                            categoryId, status);
386            }
387    
388            @Override
389            public int getCategoriesCount(long groupId) {
390                    return _mbCategoryLocalService.getCategoriesCount(groupId);
391            }
392    
393            @Override
394            public int getCategoriesCount(long groupId, long excludedCategoryId,
395                    long parentCategoryId, int status) {
396                    return _mbCategoryLocalService.getCategoriesCount(groupId,
397                            excludedCategoryId, parentCategoryId, status);
398            }
399    
400            @Override
401            public int getCategoriesCount(long groupId, long[] excludedCategoryIds,
402                    long[] parentCategoryIds, int status) {
403                    return _mbCategoryLocalService.getCategoriesCount(groupId,
404                            excludedCategoryIds, parentCategoryIds, status);
405            }
406    
407            @Override
408            public int getCategoriesCount(long groupId, long parentCategoryId) {
409                    return _mbCategoryLocalService.getCategoriesCount(groupId,
410                            parentCategoryId);
411            }
412    
413            @Override
414            public int getCategoriesCount(long groupId, long parentCategoryId,
415                    int status) {
416                    return _mbCategoryLocalService.getCategoriesCount(groupId,
417                            parentCategoryId, status);
418            }
419    
420            @Override
421            public int getCategoriesCount(long groupId, long[] parentCategoryIds) {
422                    return _mbCategoryLocalService.getCategoriesCount(groupId,
423                            parentCategoryIds);
424            }
425    
426            @Override
427            public int getCategoriesCount(long groupId, long[] parentCategoryIds,
428                    int status) {
429                    return _mbCategoryLocalService.getCategoriesCount(groupId,
430                            parentCategoryIds, status);
431            }
432    
433            @Override
434            public int getCategoriesCount(long groupId, int status) {
435                    return _mbCategoryLocalService.getCategoriesCount(groupId, status);
436            }
437    
438            @Override
439            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
440                    long categoryId)
441                    throws com.liferay.portal.kernel.exception.PortalException {
442                    return _mbCategoryLocalService.getCategory(categoryId);
443            }
444    
445            @Override
446            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
447                    long companyId, int start, int end) {
448                    return _mbCategoryLocalService.getCompanyCategories(companyId, start,
449                            end);
450            }
451    
452            @Override
453            public int getCompanyCategoriesCount(long companyId) {
454                    return _mbCategoryLocalService.getCompanyCategoriesCount(companyId);
455            }
456    
457            @Override
458            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
459                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
460                    return _mbCategoryLocalService.getExportActionableDynamicQuery(portletDataContext);
461            }
462    
463            @Override
464            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
465                    return _mbCategoryLocalService.getIndexableActionableDynamicQuery();
466            }
467    
468            /**
469            * Returns a range of all the message boards categories.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param start the lower bound of the range of message boards categories
476            * @param end the upper bound of the range of message boards categories (not inclusive)
477            * @return the range of message boards categories
478            */
479            @Override
480            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
481                    int start, int end) {
482                    return _mbCategoryLocalService.getMBCategories(start, end);
483            }
484    
485            /**
486            * Returns all the message boards categories matching the UUID and company.
487            *
488            * @param uuid the UUID of the message boards categories
489            * @param companyId the primary key of the company
490            * @return the matching message boards categories, or an empty list if no matches were found
491            */
492            @Override
493            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
494                    java.lang.String uuid, long companyId) {
495                    return _mbCategoryLocalService.getMBCategoriesByUuidAndCompanyId(uuid,
496                            companyId);
497            }
498    
499            /**
500            * Returns a range of message boards categories matching the UUID and company.
501            *
502            * @param uuid the UUID of the message boards categories
503            * @param companyId the primary key of the company
504            * @param start the lower bound of the range of message boards categories
505            * @param end the upper bound of the range of message boards categories (not inclusive)
506            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
507            * @return the range of matching message boards categories, or an empty list if no matches were found
508            */
509            @Override
510            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
511                    java.lang.String uuid, long companyId, int start, int end,
512                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBCategory> orderByComparator) {
513                    return _mbCategoryLocalService.getMBCategoriesByUuidAndCompanyId(uuid,
514                            companyId, start, end, orderByComparator);
515            }
516    
517            /**
518            * Returns the number of message boards categories.
519            *
520            * @return the number of message boards categories
521            */
522            @Override
523            public int getMBCategoriesCount() {
524                    return _mbCategoryLocalService.getMBCategoriesCount();
525            }
526    
527            /**
528            * Returns the message boards category with the primary key.
529            *
530            * @param categoryId the primary key of the message boards category
531            * @return the message boards category
532            * @throws PortalException if a message boards category with the primary key could not be found
533            */
534            @Override
535            public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
536                    long categoryId)
537                    throws com.liferay.portal.kernel.exception.PortalException {
538                    return _mbCategoryLocalService.getMBCategory(categoryId);
539            }
540    
541            /**
542            * Returns the message boards category matching the UUID and group.
543            *
544            * @param uuid the message boards category's UUID
545            * @param groupId the primary key of the group
546            * @return the matching message boards category
547            * @throws PortalException if a matching message boards category could not be found
548            */
549            @Override
550            public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
551                    java.lang.String uuid, long groupId)
552                    throws com.liferay.portal.kernel.exception.PortalException {
553                    return _mbCategoryLocalService.getMBCategoryByUuidAndGroupId(uuid,
554                            groupId);
555            }
556    
557            /**
558            * Returns the OSGi service identifier.
559            *
560            * @return the OSGi service identifier
561            */
562            @Override
563            public java.lang.String getOSGiServiceIdentifier() {
564                    return _mbCategoryLocalService.getOSGiServiceIdentifier();
565            }
566    
567            @Override
568            public com.liferay.portal.model.PersistedModel getPersistedModel(
569                    java.io.Serializable primaryKeyObj)
570                    throws com.liferay.portal.kernel.exception.PortalException {
571                    return _mbCategoryLocalService.getPersistedModel(primaryKeyObj);
572            }
573    
574            @Override
575            public java.util.List<java.lang.Long> getSubcategoryIds(
576                    java.util.List<java.lang.Long> categoryIds, long groupId,
577                    long categoryId) {
578                    return _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
579                            categoryId);
580            }
581    
582            @Override
583            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
584                    long groupId, long userId, int start, int end) {
585                    return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
586                            start, end);
587            }
588    
589            @Override
590            public int getSubscribedCategoriesCount(long groupId, long userId) {
591                    return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
592                            userId);
593            }
594    
595            @Override
596            public void moveCategoriesToTrash(long groupId, long userId)
597                    throws com.liferay.portal.kernel.exception.PortalException {
598                    _mbCategoryLocalService.moveCategoriesToTrash(groupId, userId);
599            }
600    
601            @Override
602            public com.liferay.portlet.messageboards.model.MBCategory moveCategory(
603                    long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
604                    throws com.liferay.portal.kernel.exception.PortalException {
605                    return _mbCategoryLocalService.moveCategory(categoryId,
606                            parentCategoryId, mergeWithParentCategory);
607            }
608    
609            @Override
610            public com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
611                    long userId, long categoryId, long newCategoryId)
612                    throws com.liferay.portal.kernel.exception.PortalException {
613                    return _mbCategoryLocalService.moveCategoryFromTrash(userId,
614                            categoryId, newCategoryId);
615            }
616    
617            @Override
618            public com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
619                    long userId, long categoryId)
620                    throws com.liferay.portal.kernel.exception.PortalException {
621                    return _mbCategoryLocalService.moveCategoryToTrash(userId, categoryId);
622            }
623    
624            @Override
625            public void restoreCategoryFromTrash(long userId, long categoryId)
626                    throws com.liferay.portal.kernel.exception.PortalException {
627                    _mbCategoryLocalService.restoreCategoryFromTrash(userId, categoryId);
628            }
629    
630            @Override
631            public void subscribeCategory(long userId, long groupId, long categoryId)
632                    throws com.liferay.portal.kernel.exception.PortalException {
633                    _mbCategoryLocalService.subscribeCategory(userId, groupId, categoryId);
634            }
635    
636            @Override
637            public void unsubscribeCategory(long userId, long groupId, long categoryId)
638                    throws com.liferay.portal.kernel.exception.PortalException {
639                    _mbCategoryLocalService.unsubscribeCategory(userId, groupId, categoryId);
640            }
641    
642            @Override
643            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
644                    long categoryId, long parentCategoryId, java.lang.String name,
645                    java.lang.String description, java.lang.String displayStyle,
646                    java.lang.String emailAddress, java.lang.String inProtocol,
647                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
648                    java.lang.String inUserName, java.lang.String inPassword,
649                    int inReadInterval, java.lang.String outEmailAddress,
650                    boolean outCustom, java.lang.String outServerName, int outServerPort,
651                    boolean outUseSSL, java.lang.String outUserName,
652                    java.lang.String outPassword, boolean allowAnonymous,
653                    boolean mailingListActive, boolean mergeWithParentCategory,
654                    com.liferay.portal.service.ServiceContext serviceContext)
655                    throws com.liferay.portal.kernel.exception.PortalException {
656                    return _mbCategoryLocalService.updateCategory(categoryId,
657                            parentCategoryId, name, description, displayStyle, emailAddress,
658                            inProtocol, inServerName, inServerPort, inUseSSL, inUserName,
659                            inPassword, inReadInterval, outEmailAddress, outCustom,
660                            outServerName, outServerPort, outUseSSL, outUserName, outPassword,
661                            allowAnonymous, mailingListActive, mergeWithParentCategory,
662                            serviceContext);
663            }
664    
665            /**
666            * Updates the message boards category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
667            *
668            * @param mbCategory the message boards category
669            * @return the message boards category that was updated
670            */
671            @Override
672            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
673                    com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
674                    return _mbCategoryLocalService.updateMBCategory(mbCategory);
675            }
676    
677            @Override
678            public com.liferay.portlet.messageboards.model.MBCategory updateMessageCount(
679                    long categoryId) {
680                    return _mbCategoryLocalService.updateMessageCount(categoryId);
681            }
682    
683            @Override
684            public com.liferay.portlet.messageboards.model.MBCategory updateStatistics(
685                    long categoryId) {
686                    return _mbCategoryLocalService.updateStatistics(categoryId);
687            }
688    
689            @Override
690            public com.liferay.portlet.messageboards.model.MBCategory updateStatus(
691                    long userId, long categoryId, int status)
692                    throws com.liferay.portal.kernel.exception.PortalException {
693                    return _mbCategoryLocalService.updateStatus(userId, categoryId, status);
694            }
695    
696            @Override
697            public com.liferay.portlet.messageboards.model.MBCategory updateThreadCount(
698                    long categoryId) {
699                    return _mbCategoryLocalService.updateThreadCount(categoryId);
700            }
701    
702            @Override
703            public MBCategoryLocalService getWrappedService() {
704                    return _mbCategoryLocalService;
705            }
706    
707            @Override
708            public void setWrappedService(MBCategoryLocalService mbCategoryLocalService) {
709                    _mbCategoryLocalService = mbCategoryLocalService;
710            }
711    
712            private MBCategoryLocalService _mbCategoryLocalService;
713    }