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