001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.ResourceTypePermission;
018    
019    /**
020     * The persistence interface for the resource type permission service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see ResourceTypePermissionPersistenceImpl
028     * @see ResourceTypePermissionUtil
029     * @generated
030     */
031    public interface ResourceTypePermissionPersistence extends BasePersistence<ResourceTypePermission> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link ResourceTypePermissionUtil} to access the resource type permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Caches the resource type permission in the entity cache if it is enabled.
040            *
041            * @param resourceTypePermission the resource type permission
042            */
043            public void cacheResult(
044                    com.liferay.portal.model.ResourceTypePermission resourceTypePermission);
045    
046            /**
047            * Caches the resource type permissions in the entity cache if it is enabled.
048            *
049            * @param resourceTypePermissions the resource type permissions
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portal.model.ResourceTypePermission> resourceTypePermissions);
053    
054            /**
055            * Creates a new resource type permission with the primary key. Does not add the resource type permission to the database.
056            *
057            * @param resourceTypePermissionId the primary key for the new resource type permission
058            * @return the new resource type permission
059            */
060            public com.liferay.portal.model.ResourceTypePermission create(
061                    long resourceTypePermissionId);
062    
063            /**
064            * Removes the resource type permission with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param resourceTypePermissionId the primary key of the resource type permission
067            * @return the resource type permission that was removed
068            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portal.model.ResourceTypePermission remove(
072                    long resourceTypePermissionId)
073                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.ResourceTypePermission updateImpl(
077                    com.liferay.portal.model.ResourceTypePermission resourceTypePermission,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Returns the resource type permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourceTypePermissionException} if it could not be found.
083            *
084            * @param resourceTypePermissionId the primary key of the resource type permission
085            * @return the resource type permission
086            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portal.model.ResourceTypePermission findByPrimaryKey(
090                    long resourceTypePermissionId)
091                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            /**
095            * Returns the resource type permission with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param resourceTypePermissionId the primary key of the resource type permission
098            * @return the resource type permission, or <code>null</code> if a resource type permission with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portal.model.ResourceTypePermission fetchByPrimaryKey(
102                    long resourceTypePermissionId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Returns all the resource type permissions where roleId = &#63;.
107            *
108            * @param roleId the role ID
109            * @return the matching resource type permissions
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
113                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the resource type permissions where roleId = &#63;.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param roleId the role ID
123            * @param start the lower bound of the range of resource type permissions
124            * @param end the upper bound of the range of resource type permissions (not inclusive)
125            * @return the range of matching resource type permissions
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
129                    long roleId, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the resource type permissions where roleId = &#63;.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param roleId the role ID
140            * @param start the lower bound of the range of resource type permissions
141            * @param end the upper bound of the range of resource type permissions (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching resource type permissions
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
147                    long roleId, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first resource type permission in the ordered set where roleId = &#63;.
153            *
154            * @param roleId the role ID
155            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
156            * @return the first matching resource type permission
157            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portal.model.ResourceTypePermission findByRoleId_First(
161                    long roleId,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns the first resource type permission in the ordered set where roleId = &#63;.
168            *
169            * @param roleId the role ID
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portal.model.ResourceTypePermission fetchByRoleId_First(
175                    long roleId,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns the last resource type permission in the ordered set where roleId = &#63;.
181            *
182            * @param roleId the role ID
183            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
184            * @return the last matching resource type permission
185            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portal.model.ResourceTypePermission findByRoleId_Last(
189                    long roleId,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Returns the last resource type permission in the ordered set where roleId = &#63;.
196            *
197            * @param roleId the role ID
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.ResourceTypePermission fetchByRoleId_Last(
203                    long roleId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the resource type permissions before and after the current resource type permission in the ordered set where roleId = &#63;.
209            *
210            * @param resourceTypePermissionId the primary key of the current resource type permission
211            * @param roleId the role ID
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the previous, current, and next resource type permission
214            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portal.model.ResourceTypePermission[] findByRoleId_PrevAndNext(
218                    long resourceTypePermissionId, long roleId,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Returns all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
225            *
226            * @param companyId the company ID
227            * @param name the name
228            * @param roleId the role ID
229            * @return the matching resource type permissions
230            * @throws SystemException if a system exception occurred
231            */
232            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
233                    long companyId, java.lang.String name, long roleId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Returns a range of all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
238            *
239            * <p>
240            * 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.
241            * </p>
242            *
243            * @param companyId the company ID
244            * @param name the name
245            * @param roleId the role ID
246            * @param start the lower bound of the range of resource type permissions
247            * @param end the upper bound of the range of resource type permissions (not inclusive)
248            * @return the range of matching resource type permissions
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
252                    long companyId, java.lang.String name, long roleId, int start, int end)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            /**
256            * Returns an ordered range of all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
257            *
258            * <p>
259            * 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.
260            * </p>
261            *
262            * @param companyId the company ID
263            * @param name the name
264            * @param roleId the role ID
265            * @param start the lower bound of the range of resource type permissions
266            * @param end the upper bound of the range of resource type permissions (not inclusive)
267            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
268            * @return the ordered range of matching resource type permissions
269            * @throws SystemException if a system exception occurred
270            */
271            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
272                    long companyId, java.lang.String name, long roleId, int start, int end,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns the first resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
278            *
279            * @param companyId the company ID
280            * @param name the name
281            * @param roleId the role ID
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the first matching resource type permission
284            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public com.liferay.portal.model.ResourceTypePermission findByC_N_R_First(
288                    long companyId, java.lang.String name, long roleId,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
291                            com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * Returns the first resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
295            *
296            * @param companyId the company ID
297            * @param name the name
298            * @param roleId the role ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public com.liferay.portal.model.ResourceTypePermission fetchByC_N_R_First(
304                    long companyId, java.lang.String name, long roleId,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException;
307    
308            /**
309            * Returns the last resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
310            *
311            * @param companyId the company ID
312            * @param name the name
313            * @param roleId the role ID
314            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
315            * @return the last matching resource type permission
316            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portal.model.ResourceTypePermission findByC_N_R_Last(
320                    long companyId, java.lang.String name, long roleId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
323                            com.liferay.portal.kernel.exception.SystemException;
324    
325            /**
326            * Returns the last resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
327            *
328            * @param companyId the company ID
329            * @param name the name
330            * @param roleId the role ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public com.liferay.portal.model.ResourceTypePermission fetchByC_N_R_Last(
336                    long companyId, java.lang.String name, long roleId,
337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns the resource type permissions before and after the current resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
342            *
343            * @param resourceTypePermissionId the primary key of the current resource type permission
344            * @param companyId the company ID
345            * @param name the name
346            * @param roleId the role ID
347            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
348            * @return the previous, current, and next resource type permission
349            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
350            * @throws SystemException if a system exception occurred
351            */
352            public com.liferay.portal.model.ResourceTypePermission[] findByC_N_R_PrevAndNext(
353                    long resourceTypePermissionId, long companyId, java.lang.String name,
354                    long roleId,
355                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
357                            com.liferay.portal.kernel.exception.SystemException;
358    
359            /**
360            * Returns the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; or throws a {@link com.liferay.portal.NoSuchResourceTypePermissionException} if it could not be found.
361            *
362            * @param companyId the company ID
363            * @param groupId the group ID
364            * @param name the name
365            * @param roleId the role ID
366            * @return the matching resource type permission
367            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            public com.liferay.portal.model.ResourceTypePermission findByC_G_N_R(
371                    long companyId, long groupId, java.lang.String name, long roleId)
372                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
373                            com.liferay.portal.kernel.exception.SystemException;
374    
375            /**
376            * Returns the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
377            *
378            * @param companyId the company ID
379            * @param groupId the group ID
380            * @param name the name
381            * @param roleId the role ID
382            * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
383            * @throws SystemException if a system exception occurred
384            */
385            public com.liferay.portal.model.ResourceTypePermission fetchByC_G_N_R(
386                    long companyId, long groupId, java.lang.String name, long roleId)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Returns the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
391            *
392            * @param companyId the company ID
393            * @param groupId the group ID
394            * @param name the name
395            * @param roleId the role ID
396            * @param retrieveFromCache whether to use the finder cache
397            * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
398            * @throws SystemException if a system exception occurred
399            */
400            public com.liferay.portal.model.ResourceTypePermission fetchByC_G_N_R(
401                    long companyId, long groupId, java.lang.String name, long roleId,
402                    boolean retrieveFromCache)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * Returns all the resource type permissions.
407            *
408            * @return the resource type permissions
409            * @throws SystemException if a system exception occurred
410            */
411            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll()
412                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            /**
415            * Returns a range of all the resource type permissions.
416            *
417            * <p>
418            * 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.
419            * </p>
420            *
421            * @param start the lower bound of the range of resource type permissions
422            * @param end the upper bound of the range of resource type permissions (not inclusive)
423            * @return the range of resource type permissions
424            * @throws SystemException if a system exception occurred
425            */
426            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll(
427                    int start, int end)
428                    throws com.liferay.portal.kernel.exception.SystemException;
429    
430            /**
431            * Returns an ordered range of all the resource type permissions.
432            *
433            * <p>
434            * 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.
435            * </p>
436            *
437            * @param start the lower bound of the range of resource type permissions
438            * @param end the upper bound of the range of resource type permissions (not inclusive)
439            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
440            * @return the ordered range of resource type permissions
441            * @throws SystemException if a system exception occurred
442            */
443            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll(
444                    int start, int end,
445                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            /**
449            * Removes all the resource type permissions where roleId = &#63; from the database.
450            *
451            * @param roleId the role ID
452            * @throws SystemException if a system exception occurred
453            */
454            public void removeByRoleId(long roleId)
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Removes all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63; from the database.
459            *
460            * @param companyId the company ID
461            * @param name the name
462            * @param roleId the role ID
463            * @throws SystemException if a system exception occurred
464            */
465            public void removeByC_N_R(long companyId, java.lang.String name, long roleId)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Removes the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; from the database.
470            *
471            * @param companyId the company ID
472            * @param groupId the group ID
473            * @param name the name
474            * @param roleId the role ID
475            * @return the resource type permission that was removed
476            * @throws SystemException if a system exception occurred
477            */
478            public com.liferay.portal.model.ResourceTypePermission removeByC_G_N_R(
479                    long companyId, long groupId, java.lang.String name, long roleId)
480                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
481                            com.liferay.portal.kernel.exception.SystemException;
482    
483            /**
484            * Removes all the resource type permissions from the database.
485            *
486            * @throws SystemException if a system exception occurred
487            */
488            public void removeAll()
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns the number of resource type permissions where roleId = &#63;.
493            *
494            * @param roleId the role ID
495            * @return the number of matching resource type permissions
496            * @throws SystemException if a system exception occurred
497            */
498            public int countByRoleId(long roleId)
499                    throws com.liferay.portal.kernel.exception.SystemException;
500    
501            /**
502            * Returns the number of resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
503            *
504            * @param companyId the company ID
505            * @param name the name
506            * @param roleId the role ID
507            * @return the number of matching resource type permissions
508            * @throws SystemException if a system exception occurred
509            */
510            public int countByC_N_R(long companyId, java.lang.String name, long roleId)
511                    throws com.liferay.portal.kernel.exception.SystemException;
512    
513            /**
514            * Returns the number of resource type permissions where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63;.
515            *
516            * @param companyId the company ID
517            * @param groupId the group ID
518            * @param name the name
519            * @param roleId the role ID
520            * @return the number of matching resource type permissions
521            * @throws SystemException if a system exception occurred
522            */
523            public int countByC_G_N_R(long companyId, long groupId,
524                    java.lang.String name, long roleId)
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Returns the number of resource type permissions.
529            *
530            * @return the number of resource type permissions
531            * @throws SystemException if a system exception occurred
532            */
533            public int countAll()
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    }