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