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