001    /**
002     * Copyright (c) 2000-2012 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                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the resource type permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourceTypePermissionException} if it could not be found.
082            *
083            * @param resourceTypePermissionId the primary key of the resource type permission
084            * @return the resource type permission
085            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portal.model.ResourceTypePermission findByPrimaryKey(
089                    long resourceTypePermissionId)
090                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            /**
094            * Returns the resource type permission with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param resourceTypePermissionId the primary key of the resource type permission
097            * @return the resource type permission, or <code>null</code> if a resource type permission with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portal.model.ResourceTypePermission fetchByPrimaryKey(
101                    long resourceTypePermissionId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns all the resource type permissions where roleId = &#63;.
106            *
107            * @param roleId the role ID
108            * @return the matching resource type permissions
109            * @throws SystemException if a system exception occurred
110            */
111            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
112                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Returns a range of all the resource type permissions where roleId = &#63;.
116            *
117            * <p>
118            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
119            * </p>
120            *
121            * @param roleId the role ID
122            * @param start the lower bound of the range of resource type permissions
123            * @param end the upper bound of the range of resource type permissions (not inclusive)
124            * @return the range of matching resource type permissions
125            * @throws SystemException if a system exception occurred
126            */
127            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
128                    long roleId, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns an ordered range of all the resource type permissions where roleId = &#63;.
133            *
134            * <p>
135            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
136            * </p>
137            *
138            * @param roleId the role ID
139            * @param start the lower bound of the range of resource type permissions
140            * @param end the upper bound of the range of resource type permissions (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching resource type permissions
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
146                    long roleId, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Returns the first resource type permission in the ordered set where roleId = &#63;.
152            *
153            * @param roleId the role ID
154            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
155            * @return the first matching resource type permission
156            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portal.model.ResourceTypePermission findByRoleId_First(
160                    long roleId,
161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
163                            com.liferay.portal.kernel.exception.SystemException;
164    
165            /**
166            * Returns the first resource type permission in the ordered set where roleId = &#63;.
167            *
168            * @param roleId the role ID
169            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
170            * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public com.liferay.portal.model.ResourceTypePermission fetchByRoleId_First(
174                    long roleId,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns the last resource type permission in the ordered set where roleId = &#63;.
180            *
181            * @param roleId the role ID
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
183            * @return the last matching resource type permission
184            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portal.model.ResourceTypePermission findByRoleId_Last(
188                    long roleId,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
191                            com.liferay.portal.kernel.exception.SystemException;
192    
193            /**
194            * Returns the last resource type permission in the ordered set where roleId = &#63;.
195            *
196            * @param roleId the role ID
197            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
198            * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portal.model.ResourceTypePermission fetchByRoleId_Last(
202                    long roleId,
203                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns the resource type permissions before and after the current resource type permission in the ordered set where roleId = &#63;.
208            *
209            * @param resourceTypePermissionId the primary key of the current resource type permission
210            * @param roleId the role ID
211            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
212            * @return the previous, current, and next resource type permission
213            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portal.model.ResourceTypePermission[] findByRoleId_PrevAndNext(
217                    long resourceTypePermissionId, long roleId,
218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
220                            com.liferay.portal.kernel.exception.SystemException;
221    
222            /**
223            * Returns all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
224            *
225            * @param companyId the company ID
226            * @param name the name
227            * @param roleId the role ID
228            * @return the matching resource type permissions
229            * @throws SystemException if a system exception occurred
230            */
231            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
232                    long companyId, java.lang.String name, long roleId)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            /**
236            * Returns a range of all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
237            *
238            * <p>
239            * 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.
240            * </p>
241            *
242            * @param companyId the company ID
243            * @param name the name
244            * @param roleId the role ID
245            * @param start the lower bound of the range of resource type permissions
246            * @param end the upper bound of the range of resource type permissions (not inclusive)
247            * @return the range of matching resource type permissions
248            * @throws SystemException if a system exception occurred
249            */
250            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
251                    long companyId, java.lang.String name, long roleId, int start, int end)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns an ordered range of all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
256            *
257            * <p>
258            * 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.
259            * </p>
260            *
261            * @param companyId the company ID
262            * @param name the name
263            * @param roleId the role ID
264            * @param start the lower bound of the range of resource type permissions
265            * @param end the upper bound of the range of resource type permissions (not inclusive)
266            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
267            * @return the ordered range of matching resource type permissions
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
271                    long companyId, java.lang.String name, long roleId, int start, int end,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns the first resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
277            *
278            * @param companyId the company ID
279            * @param name the name
280            * @param roleId the role ID
281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
282            * @return the first matching resource type permission
283            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portal.model.ResourceTypePermission findByC_N_R_First(
287                    long companyId, java.lang.String name, long roleId,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
290                            com.liferay.portal.kernel.exception.SystemException;
291    
292            /**
293            * Returns the first resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
294            *
295            * @param companyId the company ID
296            * @param name the name
297            * @param roleId the role ID
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public com.liferay.portal.model.ResourceTypePermission fetchByC_N_R_First(
303                    long companyId, java.lang.String name, long roleId,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException;
306    
307            /**
308            * Returns the last resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
309            *
310            * @param companyId the company ID
311            * @param name the name
312            * @param roleId the role ID
313            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
314            * @return the last matching resource type permission
315            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
316            * @throws SystemException if a system exception occurred
317            */
318            public com.liferay.portal.model.ResourceTypePermission findByC_N_R_Last(
319                    long companyId, java.lang.String name, long roleId,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
322                            com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns the last resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
326            *
327            * @param companyId the company ID
328            * @param name the name
329            * @param roleId the role ID
330            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
331            * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portal.model.ResourceTypePermission fetchByC_N_R_Last(
335                    long companyId, java.lang.String name, long roleId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException;
338    
339            /**
340            * 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;.
341            *
342            * @param resourceTypePermissionId the primary key of the current resource type permission
343            * @param companyId the company ID
344            * @param name the name
345            * @param roleId the role ID
346            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
347            * @return the previous, current, and next resource type permission
348            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public com.liferay.portal.model.ResourceTypePermission[] findByC_N_R_PrevAndNext(
352                    long resourceTypePermissionId, long companyId, java.lang.String name,
353                    long roleId,
354                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
356                            com.liferay.portal.kernel.exception.SystemException;
357    
358            /**
359            * 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.
360            *
361            * @param companyId the company ID
362            * @param groupId the group ID
363            * @param name the name
364            * @param roleId the role ID
365            * @return the matching resource type permission
366            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public com.liferay.portal.model.ResourceTypePermission findByC_G_N_R(
370                    long companyId, long groupId, java.lang.String name, long roleId)
371                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
372                            com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * 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.
376            *
377            * @param companyId the company ID
378            * @param groupId the group ID
379            * @param name the name
380            * @param roleId the role ID
381            * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
382            * @throws SystemException if a system exception occurred
383            */
384            public com.liferay.portal.model.ResourceTypePermission fetchByC_G_N_R(
385                    long companyId, long groupId, java.lang.String name, long roleId)
386                    throws com.liferay.portal.kernel.exception.SystemException;
387    
388            /**
389            * 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.
390            *
391            * @param companyId the company ID
392            * @param groupId the group ID
393            * @param name the name
394            * @param roleId the role ID
395            * @param retrieveFromCache whether to use the finder cache
396            * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
397            * @throws SystemException if a system exception occurred
398            */
399            public com.liferay.portal.model.ResourceTypePermission fetchByC_G_N_R(
400                    long companyId, long groupId, java.lang.String name, long roleId,
401                    boolean retrieveFromCache)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            /**
405            * Returns all the resource type permissions.
406            *
407            * @return the resource type permissions
408            * @throws SystemException if a system exception occurred
409            */
410            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll()
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            /**
414            * Returns a range of all the resource type permissions.
415            *
416            * <p>
417            * 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.
418            * </p>
419            *
420            * @param start the lower bound of the range of resource type permissions
421            * @param end the upper bound of the range of resource type permissions (not inclusive)
422            * @return the range of resource type permissions
423            * @throws SystemException if a system exception occurred
424            */
425            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll(
426                    int start, int end)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns an ordered range of all the resource type permissions.
431            *
432            * <p>
433            * 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.
434            * </p>
435            *
436            * @param start the lower bound of the range of resource type permissions
437            * @param end the upper bound of the range of resource type permissions (not inclusive)
438            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
439            * @return the ordered range of resource type permissions
440            * @throws SystemException if a system exception occurred
441            */
442            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll(
443                    int start, int end,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * Removes all the resource type permissions where roleId = &#63; from the database.
449            *
450            * @param roleId the role ID
451            * @throws SystemException if a system exception occurred
452            */
453            public void removeByRoleId(long roleId)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Removes all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63; from the database.
458            *
459            * @param companyId the company ID
460            * @param name the name
461            * @param roleId the role ID
462            * @throws SystemException if a system exception occurred
463            */
464            public void removeByC_N_R(long companyId, java.lang.String name, long roleId)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Removes the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; from the database.
469            *
470            * @param companyId the company ID
471            * @param groupId the group ID
472            * @param name the name
473            * @param roleId the role ID
474            * @return the resource type permission that was removed
475            * @throws SystemException if a system exception occurred
476            */
477            public com.liferay.portal.model.ResourceTypePermission removeByC_G_N_R(
478                    long companyId, long groupId, java.lang.String name, long roleId)
479                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
480                            com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * Removes all the resource type permissions from the database.
484            *
485            * @throws SystemException if a system exception occurred
486            */
487            public void removeAll()
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * Returns the number of resource type permissions where roleId = &#63;.
492            *
493            * @param roleId the role ID
494            * @return the number of matching resource type permissions
495            * @throws SystemException if a system exception occurred
496            */
497            public int countByRoleId(long roleId)
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    
500            /**
501            * Returns the number of resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
502            *
503            * @param companyId the company ID
504            * @param name the name
505            * @param roleId the role ID
506            * @return the number of matching resource type permissions
507            * @throws SystemException if a system exception occurred
508            */
509            public int countByC_N_R(long companyId, java.lang.String name, long roleId)
510                    throws com.liferay.portal.kernel.exception.SystemException;
511    
512            /**
513            * Returns the number of resource type permissions where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63;.
514            *
515            * @param companyId the company ID
516            * @param groupId the group ID
517            * @param name the name
518            * @param roleId the role ID
519            * @return the number of matching resource type permissions
520            * @throws SystemException if a system exception occurred
521            */
522            public int countByC_G_N_R(long companyId, long groupId,
523                    java.lang.String name, long roleId)
524                    throws com.liferay.portal.kernel.exception.SystemException;
525    
526            /**
527            * Returns the number of resource type permissions.
528            *
529            * @return the number of resource type permissions
530            * @throws SystemException if a system exception occurred
531            */
532            public int countAll()
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    }