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 matching the dynamic query.
240            *
241            * @param dynamicQuery the dynamic query
242            * @return the number of rows matching 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 matching 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 matching 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.portlet.exportimport.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            /**
423            * Returns all the message boards categories matching the UUID and company.
424            *
425            * @param uuid the UUID of the message boards categories
426            * @param companyId the primary key of the company
427            * @return the matching message boards categories, or an empty list if no matches were found
428            */
429            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
430                    java.lang.String uuid, long companyId) {
431                    return getService().getMBCategoriesByUuidAndCompanyId(uuid, companyId);
432            }
433    
434            /**
435            * Returns a range of message boards categories matching the UUID and company.
436            *
437            * @param uuid the UUID of the message boards categories
438            * @param companyId the primary key of the company
439            * @param start the lower bound of the range of message boards categories
440            * @param end the upper bound of the range of message boards categories (not inclusive)
441            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
442            * @return the range of matching message boards categories, or an empty list if no matches were found
443            */
444            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
445                    java.lang.String uuid, long companyId, int start, int end,
446                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBCategory> orderByComparator) {
447                    return getService()
448                                       .getMBCategoriesByUuidAndCompanyId(uuid, companyId, start,
449                            end, orderByComparator);
450            }
451    
452            /**
453            * Returns the number of message boards categories.
454            *
455            * @return the number of message boards categories
456            */
457            public static int getMBCategoriesCount() {
458                    return getService().getMBCategoriesCount();
459            }
460    
461            /**
462            * Returns the message boards category with the primary key.
463            *
464            * @param categoryId the primary key of the message boards category
465            * @return the message boards category
466            * @throws PortalException if a message boards category with the primary key could not be found
467            */
468            public static com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
469                    long categoryId)
470                    throws com.liferay.portal.kernel.exception.PortalException {
471                    return getService().getMBCategory(categoryId);
472            }
473    
474            /**
475            * Returns the message boards category matching the UUID and group.
476            *
477            * @param uuid the message boards category's UUID
478            * @param groupId the primary key of the group
479            * @return the matching message boards category
480            * @throws PortalException if a matching message boards category could not be found
481            */
482            public static com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
483                    java.lang.String uuid, long groupId)
484                    throws com.liferay.portal.kernel.exception.PortalException {
485                    return getService().getMBCategoryByUuidAndGroupId(uuid, groupId);
486            }
487    
488            public static com.liferay.portal.model.PersistedModel getPersistedModel(
489                    java.io.Serializable primaryKeyObj)
490                    throws com.liferay.portal.kernel.exception.PortalException {
491                    return getService().getPersistedModel(primaryKeyObj);
492            }
493    
494            public static java.util.List<java.lang.Long> getSubcategoryIds(
495                    java.util.List<java.lang.Long> categoryIds, long groupId,
496                    long categoryId) {
497                    return getService().getSubcategoryIds(categoryIds, groupId, categoryId);
498            }
499    
500            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
501                    long groupId, long userId, int start, int end) {
502                    return getService().getSubscribedCategories(groupId, userId, start, end);
503            }
504    
505            public static int getSubscribedCategoriesCount(long groupId, long userId) {
506                    return getService().getSubscribedCategoriesCount(groupId, userId);
507            }
508    
509            public static void moveCategoriesToTrash(long groupId, long userId)
510                    throws com.liferay.portal.kernel.exception.PortalException {
511                    getService().moveCategoriesToTrash(groupId, userId);
512            }
513    
514            public static com.liferay.portlet.messageboards.model.MBCategory moveCategory(
515                    long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
516                    throws com.liferay.portal.kernel.exception.PortalException {
517                    return getService()
518                                       .moveCategory(categoryId, parentCategoryId,
519                            mergeWithParentCategory);
520            }
521    
522            public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
523                    long userId, long categoryId, long newCategoryId)
524                    throws com.liferay.portal.kernel.exception.PortalException {
525                    return getService()
526                                       .moveCategoryFromTrash(userId, categoryId, newCategoryId);
527            }
528    
529            public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
530                    long userId, long categoryId)
531                    throws com.liferay.portal.kernel.exception.PortalException {
532                    return getService().moveCategoryToTrash(userId, categoryId);
533            }
534    
535            public static void restoreCategoryFromTrash(long userId, long categoryId)
536                    throws com.liferay.portal.kernel.exception.PortalException {
537                    getService().restoreCategoryFromTrash(userId, categoryId);
538            }
539    
540            /**
541            * Sets the Spring bean ID for this bean.
542            *
543            * @param beanIdentifier the Spring bean ID for this bean
544            */
545            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
546                    getService().setBeanIdentifier(beanIdentifier);
547            }
548    
549            public static void subscribeCategory(long userId, long groupId,
550                    long categoryId)
551                    throws com.liferay.portal.kernel.exception.PortalException {
552                    getService().subscribeCategory(userId, groupId, categoryId);
553            }
554    
555            public static void unsubscribeCategory(long userId, long groupId,
556                    long categoryId)
557                    throws com.liferay.portal.kernel.exception.PortalException {
558                    getService().unsubscribeCategory(userId, groupId, categoryId);
559            }
560    
561            public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
562                    long categoryId, long parentCategoryId, java.lang.String name,
563                    java.lang.String description, java.lang.String displayStyle,
564                    java.lang.String emailAddress, java.lang.String inProtocol,
565                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
566                    java.lang.String inUserName, java.lang.String inPassword,
567                    int inReadInterval, java.lang.String outEmailAddress,
568                    boolean outCustom, java.lang.String outServerName, int outServerPort,
569                    boolean outUseSSL, java.lang.String outUserName,
570                    java.lang.String outPassword, boolean allowAnonymous,
571                    boolean mailingListActive, boolean mergeWithParentCategory,
572                    com.liferay.portal.service.ServiceContext serviceContext)
573                    throws com.liferay.portal.kernel.exception.PortalException {
574                    return getService()
575                                       .updateCategory(categoryId, parentCategoryId, name,
576                            description, displayStyle, emailAddress, inProtocol, inServerName,
577                            inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
578                            outEmailAddress, outCustom, outServerName, outServerPort,
579                            outUseSSL, outUserName, outPassword, allowAnonymous,
580                            mailingListActive, mergeWithParentCategory, serviceContext);
581            }
582    
583            /**
584            * Updates the message boards category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
585            *
586            * @param mbCategory the message boards category
587            * @return the message boards category that was updated
588            */
589            public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
590                    com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
591                    return getService().updateMBCategory(mbCategory);
592            }
593    
594            public static com.liferay.portlet.messageboards.model.MBCategory updateStatus(
595                    long userId, long categoryId, int status)
596                    throws com.liferay.portal.kernel.exception.PortalException {
597                    return getService().updateStatus(userId, categoryId, status);
598            }
599    
600            public static MBCategoryLocalService getService() {
601                    if (_service == null) {
602                            _service = (MBCategoryLocalService)PortalBeanLocatorUtil.locate(MBCategoryLocalService.class.getName());
603    
604                            ReferenceRegistry.registerReference(MBCategoryLocalServiceUtil.class,
605                                    "_service");
606                    }
607    
608                    return _service;
609            }
610    
611            /**
612             * @deprecated As of 6.2.0
613             */
614            @Deprecated
615            public void setService(MBCategoryLocalService service) {
616            }
617    
618            private static MBCategoryLocalService _service;
619    }