001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBCategory;
020    
021    /**
022     * The persistence interface for the message boards category service.
023     *
024     * <p>
025     * Never modify or reference this interface directly. Always use {@link MBCategoryUtil} to access the message boards category persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see MBCategoryPersistenceImpl
034     * @see MBCategoryUtil
035     * @generated
036     */
037    public interface MBCategoryPersistence extends BasePersistence<MBCategory> {
038            /**
039            * Caches the message boards category in the entity cache if it is enabled.
040            *
041            * @param mbCategory the message boards category to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.messageboards.model.MBCategory mbCategory);
045    
046            /**
047            * Caches the message boards categories in the entity cache if it is enabled.
048            *
049            * @param mbCategories the message boards categories to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.messageboards.model.MBCategory> mbCategories);
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 com.liferay.portlet.messageboards.model.MBCategory create(
061                    long categoryId);
062    
063            /**
064            * Removes the message boards category with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param categoryId the primary key of the message boards category to remove
067            * @return the message boards category that was removed
068            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portlet.messageboards.model.MBCategory remove(
072                    long categoryId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.messageboards.NoSuchCategoryException;
075    
076            public com.liferay.portlet.messageboards.model.MBCategory updateImpl(
077                    com.liferay.portlet.messageboards.model.MBCategory mbCategory,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Finds the message boards category with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchCategoryException} if it could not be found.
083            *
084            * @param categoryId the primary key of the message boards category to find
085            * @return the message boards category
086            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
090                    long categoryId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.messageboards.NoSuchCategoryException;
093    
094            /**
095            * Finds the message boards category with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param categoryId the primary key of the message boards category to find
098            * @return the message boards category, or <code>null</code> if a message boards category with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
102                    long categoryId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Finds all the message boards categories where uuid = &#63;.
107            *
108            * @param uuid the uuid to search with
109            * @return the matching message boards categories
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
113                    java.lang.String uuid)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Finds a range of all the message boards categories where uuid = &#63;.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param uuid the uuid to search with
124            * @param start the lower bound of the range of message boards categories to return
125            * @param end the upper bound of the range of message boards categories to return (not inclusive)
126            * @return the range of matching message boards categories
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
130                    java.lang.String uuid, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds an ordered range of all the message boards categories where uuid = &#63;.
135            *
136            * <p>
137            * 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.
138            * </p>
139            *
140            * @param uuid the uuid to search with
141            * @param start the lower bound of the range of message boards categories to return
142            * @param end the upper bound of the range of message boards categories to return (not inclusive)
143            * @param orderByComparator the comparator to order the results by
144            * @return the ordered range of matching message boards categories
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
148                    java.lang.String uuid, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Finds the first message boards category in the ordered set where uuid = &#63;.
154            *
155            * <p>
156            * 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.
157            * </p>
158            *
159            * @param uuid the uuid to search with
160            * @param orderByComparator the comparator to order the set by
161            * @return the first matching message boards category
162            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.messageboards.model.MBCategory findByUuid_First(
166                    java.lang.String uuid,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.messageboards.NoSuchCategoryException;
170    
171            /**
172            * Finds the last message boards category in the ordered set where uuid = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param uuid the uuid to search with
179            * @param orderByComparator the comparator to order the set by
180            * @return the last matching message boards category
181            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last(
185                    java.lang.String uuid,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.messageboards.NoSuchCategoryException;
189    
190            /**
191            * Finds the message boards categories before and after the current message boards category in the ordered set where uuid = &#63;.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param categoryId the primary key of the current message boards category
198            * @param uuid the uuid to search with
199            * @param orderByComparator the comparator to order the set by
200            * @return the previous, current, and next message boards category
201            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext(
205                    long categoryId, java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.messageboards.NoSuchCategoryException;
209    
210            /**
211            * Finds the message boards category where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchCategoryException} if it could not be found.
212            *
213            * @param uuid the uuid to search with
214            * @param groupId the group id to search with
215            * @return the matching message boards category
216            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.messageboards.model.MBCategory findByUUID_G(
220                    java.lang.String uuid, long groupId)
221                    throws com.liferay.portal.kernel.exception.SystemException,
222                            com.liferay.portlet.messageboards.NoSuchCategoryException;
223    
224            /**
225            * Finds the message boards category where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
226            *
227            * @param uuid the uuid to search with
228            * @param groupId the group id to search with
229            * @return the matching message boards category, or <code>null</code> if a matching message boards category could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
233                    java.lang.String uuid, long groupId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Finds the message boards category where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
238            *
239            * @param uuid the uuid to search with
240            * @param groupId the group id to search with
241            * @return the matching message boards category, or <code>null</code> if a matching message boards category could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
245                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Finds all the message boards categories where groupId = &#63;.
250            *
251            * @param groupId the group id to search with
252            * @return the matching message boards categories
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
256                    long groupId)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Finds a range of all the message boards categories where groupId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param groupId the group id to search with
267            * @param start the lower bound of the range of message boards categories to return
268            * @param end the upper bound of the range of message boards categories to return (not inclusive)
269            * @return the range of matching message boards categories
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
273                    long groupId, int start, int end)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Finds an ordered range of all the message boards categories where groupId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param groupId the group id to search with
284            * @param start the lower bound of the range of message boards categories to return
285            * @param end the upper bound of the range of message boards categories to return (not inclusive)
286            * @param orderByComparator the comparator to order the results by
287            * @return the ordered range of matching message boards categories
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
291                    long groupId, int start, int end,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Finds the first message boards category in the ordered set where groupId = &#63;.
297            *
298            * <p>
299            * 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.
300            * </p>
301            *
302            * @param groupId the group id to search with
303            * @param orderByComparator the comparator to order the set by
304            * @return the first matching message boards category
305            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
309                    long groupId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException,
312                            com.liferay.portlet.messageboards.NoSuchCategoryException;
313    
314            /**
315            * Finds the last message boards category in the ordered set where groupId = &#63;.
316            *
317            * <p>
318            * 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.
319            * </p>
320            *
321            * @param groupId the group id to search with
322            * @param orderByComparator the comparator to order the set by
323            * @return the last matching message boards category
324            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
328                    long groupId,
329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330                    throws com.liferay.portal.kernel.exception.SystemException,
331                            com.liferay.portlet.messageboards.NoSuchCategoryException;
332    
333            /**
334            * Finds the message boards categories before and after the current message boards category in the ordered set where groupId = &#63;.
335            *
336            * <p>
337            * 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.
338            * </p>
339            *
340            * @param categoryId the primary key of the current message boards category
341            * @param groupId the group id to search with
342            * @param orderByComparator the comparator to order the set by
343            * @return the previous, current, and next message boards category
344            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
348                    long categoryId, long groupId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.messageboards.NoSuchCategoryException;
352    
353            /**
354            * Filters by the user's permissions and finds all the message boards categories where groupId = &#63;.
355            *
356            * @param groupId the group id to search with
357            * @return the matching message boards categories that the user has permission to view
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
361                    long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Filters by the user's permissions and finds a range of all the message boards categories where groupId = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param groupId the group id to search with
372            * @param start the lower bound of the range of message boards categories to return
373            * @param end the upper bound of the range of message boards categories to return (not inclusive)
374            * @return the range of matching message boards categories that the user has permission to view
375            * @throws SystemException if a system exception occurred
376            */
377            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
378                    long groupId, int start, int end)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Filters by the user's permissions and finds an ordered range of all the message boards categories where groupId = &#63;.
383            *
384            * <p>
385            * 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.
386            * </p>
387            *
388            * @param groupId the group id to search with
389            * @param start the lower bound of the range of message boards categories to return
390            * @param end the upper bound of the range of message boards categories to return (not inclusive)
391            * @param orderByComparator the comparator to order the results by
392            * @return the ordered range of matching message boards categories that the user has permission to view
393            * @throws SystemException if a system exception occurred
394            */
395            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
396                    long groupId, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Finds all the message boards categories where companyId = &#63;.
402            *
403            * @param companyId the company id to search with
404            * @return the matching message boards categories
405            * @throws SystemException if a system exception occurred
406            */
407            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
408                    long companyId)
409                    throws com.liferay.portal.kernel.exception.SystemException;
410    
411            /**
412            * Finds a range of all the message boards categories where companyId = &#63;.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param companyId the company id to search with
419            * @param start the lower bound of the range of message boards categories to return
420            * @param end the upper bound of the range of message boards categories to return (not inclusive)
421            * @return the range of matching message boards categories
422            * @throws SystemException if a system exception occurred
423            */
424            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
425                    long companyId, int start, int end)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            /**
429            * Finds an ordered range of all the message boards categories where companyId = &#63;.
430            *
431            * <p>
432            * 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.
433            * </p>
434            *
435            * @param companyId the company id to search with
436            * @param start the lower bound of the range of message boards categories to return
437            * @param end the upper bound of the range of message boards categories to return (not inclusive)
438            * @param orderByComparator the comparator to order the results by
439            * @return the ordered range of matching message boards categories
440            * @throws SystemException if a system exception occurred
441            */
442            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
443                    long companyId, int start, int end,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * Finds the first message boards category in the ordered set where companyId = &#63;.
449            *
450            * <p>
451            * 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.
452            * </p>
453            *
454            * @param companyId the company id to search with
455            * @param orderByComparator the comparator to order the set by
456            * @return the first matching message boards category
457            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
458            * @throws SystemException if a system exception occurred
459            */
460            public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
461                    long companyId,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException,
464                            com.liferay.portlet.messageboards.NoSuchCategoryException;
465    
466            /**
467            * Finds the last message boards category in the ordered set where companyId = &#63;.
468            *
469            * <p>
470            * 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.
471            * </p>
472            *
473            * @param companyId the company id to search with
474            * @param orderByComparator the comparator to order the set by
475            * @return the last matching message boards category
476            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
480                    long companyId,
481                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482                    throws com.liferay.portal.kernel.exception.SystemException,
483                            com.liferay.portlet.messageboards.NoSuchCategoryException;
484    
485            /**
486            * Finds the message boards categories before and after the current message boards category in the ordered set where companyId = &#63;.
487            *
488            * <p>
489            * 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.
490            * </p>
491            *
492            * @param categoryId the primary key of the current message boards category
493            * @param companyId the company id to search with
494            * @param orderByComparator the comparator to order the set by
495            * @return the previous, current, and next message boards category
496            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
500                    long categoryId, long companyId,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException,
503                            com.liferay.portlet.messageboards.NoSuchCategoryException;
504    
505            /**
506            * Finds all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
507            *
508            * @param groupId the group id to search with
509            * @param parentCategoryId the parent category id to search with
510            * @return the matching message boards categories
511            * @throws SystemException if a system exception occurred
512            */
513            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
514                    long groupId, long parentCategoryId)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Finds a range of all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
519            *
520            * <p>
521            * 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.
522            * </p>
523            *
524            * @param groupId the group id to search with
525            * @param parentCategoryId the parent category id to search with
526            * @param start the lower bound of the range of message boards categories to return
527            * @param end the upper bound of the range of message boards categories to return (not inclusive)
528            * @return the range of matching message boards categories
529            * @throws SystemException if a system exception occurred
530            */
531            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
532                    long groupId, long parentCategoryId, int start, int end)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Finds an ordered range of all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
537            *
538            * <p>
539            * 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.
540            * </p>
541            *
542            * @param groupId the group id to search with
543            * @param parentCategoryId the parent category id to search with
544            * @param start the lower bound of the range of message boards categories to return
545            * @param end the upper bound of the range of message boards categories to return (not inclusive)
546            * @param orderByComparator the comparator to order the results by
547            * @return the ordered range of matching message boards categories
548            * @throws SystemException if a system exception occurred
549            */
550            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
551                    long groupId, long parentCategoryId, int start, int end,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Finds the first message boards category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
557            *
558            * <p>
559            * 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.
560            * </p>
561            *
562            * @param groupId the group id to search with
563            * @param parentCategoryId the parent category id to search with
564            * @param orderByComparator the comparator to order the set by
565            * @return the first matching message boards category
566            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
570                    long groupId, long parentCategoryId,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException,
573                            com.liferay.portlet.messageboards.NoSuchCategoryException;
574    
575            /**
576            * Finds the last message boards category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
577            *
578            * <p>
579            * 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.
580            * </p>
581            *
582            * @param groupId the group id to search with
583            * @param parentCategoryId the parent category id to search with
584            * @param orderByComparator the comparator to order the set by
585            * @return the last matching message boards category
586            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
587            * @throws SystemException if a system exception occurred
588            */
589            public com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
590                    long groupId, long parentCategoryId,
591                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
592                    throws com.liferay.portal.kernel.exception.SystemException,
593                            com.liferay.portlet.messageboards.NoSuchCategoryException;
594    
595            /**
596            * Finds the message boards categories before and after the current message boards category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
597            *
598            * <p>
599            * 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.
600            * </p>
601            *
602            * @param categoryId the primary key of the current message boards category
603            * @param groupId the group id to search with
604            * @param parentCategoryId the parent category id to search with
605            * @param orderByComparator the comparator to order the set by
606            * @return the previous, current, and next message boards category
607            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
608            * @throws SystemException if a system exception occurred
609            */
610            public com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
611                    long categoryId, long groupId, long parentCategoryId,
612                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
613                    throws com.liferay.portal.kernel.exception.SystemException,
614                            com.liferay.portlet.messageboards.NoSuchCategoryException;
615    
616            /**
617            * Finds all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
618            *
619            * <p>
620            * 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.
621            * </p>
622            *
623            * @param groupId the group id to search with
624            * @param parentCategoryIds the parent category ids to search with
625            * @return the matching message boards categories
626            * @throws SystemException if a system exception occurred
627            */
628            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
629                    long groupId, long[] parentCategoryIds)
630                    throws com.liferay.portal.kernel.exception.SystemException;
631    
632            /**
633            * Finds a range of all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
634            *
635            * <p>
636            * 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.
637            * </p>
638            *
639            * @param groupId the group id to search with
640            * @param parentCategoryIds the parent category ids to search with
641            * @param start the lower bound of the range of message boards categories to return
642            * @param end the upper bound of the range of message boards categories to return (not inclusive)
643            * @return the range of matching message boards categories
644            * @throws SystemException if a system exception occurred
645            */
646            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
647                    long groupId, long[] parentCategoryIds, int start, int end)
648                    throws com.liferay.portal.kernel.exception.SystemException;
649    
650            /**
651            * Finds an ordered range of all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
652            *
653            * <p>
654            * 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.
655            * </p>
656            *
657            * @param groupId the group id to search with
658            * @param parentCategoryIds the parent category ids to search with
659            * @param start the lower bound of the range of message boards categories to return
660            * @param end the upper bound of the range of message boards categories to return (not inclusive)
661            * @param orderByComparator the comparator to order the results by
662            * @return the ordered range of matching message boards categories
663            * @throws SystemException if a system exception occurred
664            */
665            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
666                    long groupId, long[] parentCategoryIds, int start, int end,
667                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
668                    throws com.liferay.portal.kernel.exception.SystemException;
669    
670            /**
671            * Filters by the user's permissions and finds all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
672            *
673            * @param groupId the group id to search with
674            * @param parentCategoryId the parent category id to search with
675            * @return the matching message boards categories that the user has permission to view
676            * @throws SystemException if a system exception occurred
677            */
678            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
679                    long groupId, long parentCategoryId)
680                    throws com.liferay.portal.kernel.exception.SystemException;
681    
682            /**
683            * Filters by the user's permissions and finds a range of all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
684            *
685            * <p>
686            * 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.
687            * </p>
688            *
689            * @param groupId the group id to search with
690            * @param parentCategoryId the parent category id to search with
691            * @param start the lower bound of the range of message boards categories to return
692            * @param end the upper bound of the range of message boards categories to return (not inclusive)
693            * @return the range of matching message boards categories that the user has permission to view
694            * @throws SystemException if a system exception occurred
695            */
696            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
697                    long groupId, long parentCategoryId, int start, int end)
698                    throws com.liferay.portal.kernel.exception.SystemException;
699    
700            /**
701            * Filters by the user's permissions and finds an ordered range of all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
702            *
703            * <p>
704            * 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.
705            * </p>
706            *
707            * @param groupId the group id to search with
708            * @param parentCategoryId the parent category id to search with
709            * @param start the lower bound of the range of message boards categories to return
710            * @param end the upper bound of the range of message boards categories to return (not inclusive)
711            * @param orderByComparator the comparator to order the results by
712            * @return the ordered range of matching message boards categories that the user has permission to view
713            * @throws SystemException if a system exception occurred
714            */
715            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
716                    long groupId, long parentCategoryId, int start, int end,
717                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
718                    throws com.liferay.portal.kernel.exception.SystemException;
719    
720            /**
721            * Filters by the user's permissions and finds all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
722            *
723            * <p>
724            * 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.
725            * </p>
726            *
727            * @param groupId the group id to search with
728            * @param parentCategoryIds the parent category ids to search with
729            * @return the matching message boards categories that the user has permission to view
730            * @throws SystemException if a system exception occurred
731            */
732            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
733                    long groupId, long[] parentCategoryIds)
734                    throws com.liferay.portal.kernel.exception.SystemException;
735    
736            /**
737            * Filters by the user's permissions and finds a range of all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
738            *
739            * <p>
740            * 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.
741            * </p>
742            *
743            * @param groupId the group id to search with
744            * @param parentCategoryIds the parent category ids to search with
745            * @param start the lower bound of the range of message boards categories to return
746            * @param end the upper bound of the range of message boards categories to return (not inclusive)
747            * @return the range of matching message boards categories that the user has permission to view
748            * @throws SystemException if a system exception occurred
749            */
750            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
751                    long groupId, long[] parentCategoryIds, int start, int end)
752                    throws com.liferay.portal.kernel.exception.SystemException;
753    
754            /**
755            * Filters by the user's permissions and finds an ordered range of all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
756            *
757            * <p>
758            * 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.
759            * </p>
760            *
761            * @param groupId the group id to search with
762            * @param parentCategoryIds the parent category ids to search with
763            * @param start the lower bound of the range of message boards categories to return
764            * @param end the upper bound of the range of message boards categories to return (not inclusive)
765            * @param orderByComparator the comparator to order the results by
766            * @return the ordered range of matching message boards categories that the user has permission to view
767            * @throws SystemException if a system exception occurred
768            */
769            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
770                    long groupId, long[] parentCategoryIds, int start, int end,
771                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
772                    throws com.liferay.portal.kernel.exception.SystemException;
773    
774            /**
775            * Finds all the message boards categories.
776            *
777            * @return the message boards categories
778            * @throws SystemException if a system exception occurred
779            */
780            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
781                    throws com.liferay.portal.kernel.exception.SystemException;
782    
783            /**
784            * Finds a range of all the message boards categories.
785            *
786            * <p>
787            * 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.
788            * </p>
789            *
790            * @param start the lower bound of the range of message boards categories to return
791            * @param end the upper bound of the range of message boards categories to return (not inclusive)
792            * @return the range of message boards categories
793            * @throws SystemException if a system exception occurred
794            */
795            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
796                    int start, int end)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Finds an ordered range of all the message boards categories.
801            *
802            * <p>
803            * 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.
804            * </p>
805            *
806            * @param start the lower bound of the range of message boards categories to return
807            * @param end the upper bound of the range of message boards categories to return (not inclusive)
808            * @param orderByComparator the comparator to order the results by
809            * @return the ordered range of message boards categories
810            * @throws SystemException if a system exception occurred
811            */
812            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
813                    int start, int end,
814                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
815                    throws com.liferay.portal.kernel.exception.SystemException;
816    
817            /**
818            * Removes all the message boards categories where uuid = &#63; from the database.
819            *
820            * @param uuid the uuid to search with
821            * @throws SystemException if a system exception occurred
822            */
823            public void removeByUuid(java.lang.String uuid)
824                    throws com.liferay.portal.kernel.exception.SystemException;
825    
826            /**
827            * Removes the message boards category where uuid = &#63; and groupId = &#63; from the database.
828            *
829            * @param uuid the uuid to search with
830            * @param groupId the group id to search with
831            * @throws SystemException if a system exception occurred
832            */
833            public void removeByUUID_G(java.lang.String uuid, long groupId)
834                    throws com.liferay.portal.kernel.exception.SystemException,
835                            com.liferay.portlet.messageboards.NoSuchCategoryException;
836    
837            /**
838            * Removes all the message boards categories where groupId = &#63; from the database.
839            *
840            * @param groupId the group id to search with
841            * @throws SystemException if a system exception occurred
842            */
843            public void removeByGroupId(long groupId)
844                    throws com.liferay.portal.kernel.exception.SystemException;
845    
846            /**
847            * Removes all the message boards categories where companyId = &#63; from the database.
848            *
849            * @param companyId the company id to search with
850            * @throws SystemException if a system exception occurred
851            */
852            public void removeByCompanyId(long companyId)
853                    throws com.liferay.portal.kernel.exception.SystemException;
854    
855            /**
856            * Removes all the message boards categories where groupId = &#63; and parentCategoryId = &#63; from the database.
857            *
858            * @param groupId the group id to search with
859            * @param parentCategoryId the parent category id to search with
860            * @throws SystemException if a system exception occurred
861            */
862            public void removeByG_P(long groupId, long parentCategoryId)
863                    throws com.liferay.portal.kernel.exception.SystemException;
864    
865            /**
866            * Removes all the message boards categories from the database.
867            *
868            * @throws SystemException if a system exception occurred
869            */
870            public void removeAll()
871                    throws com.liferay.portal.kernel.exception.SystemException;
872    
873            /**
874            * Counts all the message boards categories where uuid = &#63;.
875            *
876            * @param uuid the uuid to search with
877            * @return the number of matching message boards categories
878            * @throws SystemException if a system exception occurred
879            */
880            public int countByUuid(java.lang.String uuid)
881                    throws com.liferay.portal.kernel.exception.SystemException;
882    
883            /**
884            * Counts all the message boards categories where uuid = &#63; and groupId = &#63;.
885            *
886            * @param uuid the uuid to search with
887            * @param groupId the group id to search with
888            * @return the number of matching message boards categories
889            * @throws SystemException if a system exception occurred
890            */
891            public int countByUUID_G(java.lang.String uuid, long groupId)
892                    throws com.liferay.portal.kernel.exception.SystemException;
893    
894            /**
895            * Counts all the message boards categories where groupId = &#63;.
896            *
897            * @param groupId the group id to search with
898            * @return the number of matching message boards categories
899            * @throws SystemException if a system exception occurred
900            */
901            public int countByGroupId(long groupId)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Filters by the user's permissions and counts all the message boards categories where groupId = &#63;.
906            *
907            * @param groupId the group id to search with
908            * @return the number of matching message boards categories that the user has permission to view
909            * @throws SystemException if a system exception occurred
910            */
911            public int filterCountByGroupId(long groupId)
912                    throws com.liferay.portal.kernel.exception.SystemException;
913    
914            /**
915            * Counts all the message boards categories where companyId = &#63;.
916            *
917            * @param companyId the company id to search with
918            * @return the number of matching message boards categories
919            * @throws SystemException if a system exception occurred
920            */
921            public int countByCompanyId(long companyId)
922                    throws com.liferay.portal.kernel.exception.SystemException;
923    
924            /**
925            * Counts all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
926            *
927            * @param groupId the group id to search with
928            * @param parentCategoryId the parent category id to search with
929            * @return the number of matching message boards categories
930            * @throws SystemException if a system exception occurred
931            */
932            public int countByG_P(long groupId, long parentCategoryId)
933                    throws com.liferay.portal.kernel.exception.SystemException;
934    
935            /**
936            * Counts all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
937            *
938            * @param groupId the group id to search with
939            * @param parentCategoryIds the parent category ids to search with
940            * @return the number of matching message boards categories
941            * @throws SystemException if a system exception occurred
942            */
943            public int countByG_P(long groupId, long[] parentCategoryIds)
944                    throws com.liferay.portal.kernel.exception.SystemException;
945    
946            /**
947            * Filters by the user's permissions and counts all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
948            *
949            * @param groupId the group id to search with
950            * @param parentCategoryId the parent category id to search with
951            * @return the number of matching message boards categories that the user has permission to view
952            * @throws SystemException if a system exception occurred
953            */
954            public int filterCountByG_P(long groupId, long parentCategoryId)
955                    throws com.liferay.portal.kernel.exception.SystemException;
956    
957            /**
958            * Filters by the user's permissions and counts all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
959            *
960            * @param groupId the group id to search with
961            * @param parentCategoryIds the parent category ids to search with
962            * @return the number of matching message boards categories that the user has permission to view
963            * @throws SystemException if a system exception occurred
964            */
965            public int filterCountByG_P(long groupId, long[] parentCategoryIds)
966                    throws com.liferay.portal.kernel.exception.SystemException;
967    
968            /**
969            * Counts all the message boards categories.
970            *
971            * @return the number of message boards categories
972            * @throws SystemException if a system exception occurred
973            */
974            public int countAll()
975                    throws com.liferay.portal.kernel.exception.SystemException;
976    }