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