001    /**
002     * Copyright (c) 2000-2011 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.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.model.ResourcePermission;
019    
020    /**
021     * The persistence interface for the resource permission service.
022     *
023     * <p>
024     * Caching information and settings can be found in <code>portal.properties</code>
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see ResourcePermissionPersistenceImpl
029     * @see ResourcePermissionUtil
030     * @generated
031     */
032    public interface ResourcePermissionPersistence extends BasePersistence<ResourcePermission> {
033            /*
034             * NOTE FOR DEVELOPERS:
035             *
036             * Never modify or reference this interface directly. Always use {@link ResourcePermissionUtil} to access the resource permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
037             */
038    
039            /**
040            * Caches the resource permission in the entity cache if it is enabled.
041            *
042            * @param resourcePermission the resource permission
043            */
044            public void cacheResult(
045                    com.liferay.portal.model.ResourcePermission resourcePermission);
046    
047            /**
048            * Caches the resource permissions in the entity cache if it is enabled.
049            *
050            * @param resourcePermissions the resource permissions
051            */
052            public void cacheResult(
053                    java.util.List<com.liferay.portal.model.ResourcePermission> resourcePermissions);
054    
055            /**
056            * Creates a new resource permission with the primary key. Does not add the resource permission to the database.
057            *
058            * @param resourcePermissionId the primary key for the new resource permission
059            * @return the new resource permission
060            */
061            public com.liferay.portal.model.ResourcePermission create(
062                    long resourcePermissionId);
063    
064            /**
065            * Removes the resource permission with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param resourcePermissionId the primary key of the resource permission
068            * @return the resource permission that was removed
069            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portal.model.ResourcePermission remove(
073                    long resourcePermissionId)
074                    throws com.liferay.portal.NoSuchResourcePermissionException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portal.model.ResourcePermission updateImpl(
078                    com.liferay.portal.model.ResourcePermission resourcePermission,
079                    boolean merge)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the resource permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourcePermissionException} if it could not be found.
084            *
085            * @param resourcePermissionId the primary key of the resource permission
086            * @return the resource permission
087            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portal.model.ResourcePermission findByPrimaryKey(
091                    long resourcePermissionId)
092                    throws com.liferay.portal.NoSuchResourcePermissionException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            /**
096            * Returns the resource permission with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param resourcePermissionId the primary key of the resource permission
099            * @return the resource permission, or <code>null</code> if a resource permission with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portal.model.ResourcePermission fetchByPrimaryKey(
103                    long resourcePermissionId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the resource permissions where scope = &#63;.
108            *
109            * @param scope the scope
110            * @return the matching resource permissions
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope(
114                    int scope) throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns a range of all the resource permissions where scope = &#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 scope the scope
124            * @param start the lower bound of the range of resource permissions
125            * @param end the upper bound of the range of resource permissions (not inclusive)
126            * @return the range of matching resource permissions
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope(
130                    int scope, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Returns an ordered range of all the resource permissions where scope = &#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 scope the scope
141            * @param start the lower bound of the range of resource permissions
142            * @param end the upper bound of the range of resource permissions (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching resource permissions
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope(
148                    int scope, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Returns the first resource permission in the ordered set where scope = &#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 scope the scope
160            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
161            * @return the first matching resource permission
162            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portal.model.ResourcePermission findByScope_First(
166                    int scope,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.NoSuchResourcePermissionException,
169                            com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the last resource permission in the ordered set where scope = &#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 scope the scope
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @return the last matching resource permission
181            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portal.model.ResourcePermission findByScope_Last(
185                    int scope,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.NoSuchResourcePermissionException,
188                            com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns the resource permissions before and after the current resource permission in the ordered set where scope = &#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 resourcePermissionId the primary key of the current resource permission
198            * @param scope the scope
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the previous, current, and next resource permission
201            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portal.model.ResourcePermission[] findByScope_PrevAndNext(
205                    long resourcePermissionId, int scope,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.NoSuchResourcePermissionException,
208                            com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns all the resource permissions where scope = any &#63;.
212            *
213            * <p>
214            * 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.
215            * </p>
216            *
217            * @param scopes the scopes
218            * @return the matching resource permissions
219            * @throws SystemException if a system exception occurred
220            */
221            public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope(
222                    int[] scopes)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            /**
226            * Returns a range of all the resource permissions where scope = any &#63;.
227            *
228            * <p>
229            * 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.
230            * </p>
231            *
232            * @param scopes the scopes
233            * @param start the lower bound of the range of resource permissions
234            * @param end the upper bound of the range of resource permissions (not inclusive)
235            * @return the range of matching resource permissions
236            * @throws SystemException if a system exception occurred
237            */
238            public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope(
239                    int[] scopes, int start, int end)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns an ordered range of all the resource permissions where scope = any &#63;.
244            *
245            * <p>
246            * 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.
247            * </p>
248            *
249            * @param scopes the scopes
250            * @param start the lower bound of the range of resource permissions
251            * @param end the upper bound of the range of resource permissions (not inclusive)
252            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
253            * @return the ordered range of matching resource permissions
254            * @throws SystemException if a system exception occurred
255            */
256            public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope(
257                    int[] scopes, int start, int end,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Returns all the resource permissions where roleId = &#63;.
263            *
264            * @param roleId the role ID
265            * @return the matching resource permissions
266            * @throws SystemException if a system exception occurred
267            */
268            public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
269                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
270    
271            /**
272            * Returns a range of all the resource permissions where roleId = &#63;.
273            *
274            * <p>
275            * 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.
276            * </p>
277            *
278            * @param roleId the role ID
279            * @param start the lower bound of the range of resource permissions
280            * @param end the upper bound of the range of resource permissions (not inclusive)
281            * @return the range of matching resource permissions
282            * @throws SystemException if a system exception occurred
283            */
284            public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
285                    long roleId, int start, int end)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            /**
289            * Returns an ordered range of all the resource permissions where roleId = &#63;.
290            *
291            * <p>
292            * 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.
293            * </p>
294            *
295            * @param roleId the role ID
296            * @param start the lower bound of the range of resource permissions
297            * @param end the upper bound of the range of resource permissions (not inclusive)
298            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
299            * @return the ordered range of matching resource permissions
300            * @throws SystemException if a system exception occurred
301            */
302            public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
303                    long roleId, int start, int end,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException;
306    
307            /**
308            * Returns the first resource permission in the ordered set where roleId = &#63;.
309            *
310            * <p>
311            * 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.
312            * </p>
313            *
314            * @param roleId the role ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching resource permission
317            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public com.liferay.portal.model.ResourcePermission findByRoleId_First(
321                    long roleId,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.NoSuchResourcePermissionException,
324                            com.liferay.portal.kernel.exception.SystemException;
325    
326            /**
327            * Returns the last resource permission in the ordered set where roleId = &#63;.
328            *
329            * <p>
330            * 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.
331            * </p>
332            *
333            * @param roleId the role ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the last matching resource permission
336            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portal.model.ResourcePermission findByRoleId_Last(
340                    long roleId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.NoSuchResourcePermissionException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Returns the resource permissions before and after the current resource permission in the ordered set where roleId = &#63;.
347            *
348            * <p>
349            * 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.
350            * </p>
351            *
352            * @param resourcePermissionId the primary key of the current resource permission
353            * @param roleId the role ID
354            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
355            * @return the previous, current, and next resource permission
356            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
357            * @throws SystemException if a system exception occurred
358            */
359            public com.liferay.portal.model.ResourcePermission[] findByRoleId_PrevAndNext(
360                    long resourcePermissionId, long roleId,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.NoSuchResourcePermissionException,
363                            com.liferay.portal.kernel.exception.SystemException;
364    
365            /**
366            * Returns all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63;.
367            *
368            * @param companyId the company ID
369            * @param name the name
370            * @param scope the scope
371            * @return the matching resource permissions
372            * @throws SystemException if a system exception occurred
373            */
374            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
375                    long companyId, java.lang.String name, int scope)
376                    throws com.liferay.portal.kernel.exception.SystemException;
377    
378            /**
379            * Returns a range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63;.
380            *
381            * <p>
382            * 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.
383            * </p>
384            *
385            * @param companyId the company ID
386            * @param name the name
387            * @param scope the scope
388            * @param start the lower bound of the range of resource permissions
389            * @param end the upper bound of the range of resource permissions (not inclusive)
390            * @return the range of matching resource permissions
391            * @throws SystemException if a system exception occurred
392            */
393            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
394                    long companyId, java.lang.String name, int scope, int start, int end)
395                    throws com.liferay.portal.kernel.exception.SystemException;
396    
397            /**
398            * Returns an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63;.
399            *
400            * <p>
401            * 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.
402            * </p>
403            *
404            * @param companyId the company ID
405            * @param name the name
406            * @param scope the scope
407            * @param start the lower bound of the range of resource permissions
408            * @param end the upper bound of the range of resource permissions (not inclusive)
409            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
410            * @return the ordered range of matching resource permissions
411            * @throws SystemException if a system exception occurred
412            */
413            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
414                    long companyId, java.lang.String name, int scope, int start, int end,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Returns the first resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param companyId the company ID
426            * @param name the name
427            * @param scope the scope
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the first matching resource permission
430            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public com.liferay.portal.model.ResourcePermission findByC_N_S_First(
434                    long companyId, java.lang.String name, int scope,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.NoSuchResourcePermissionException,
437                            com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Returns the last resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63;.
441            *
442            * <p>
443            * 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.
444            * </p>
445            *
446            * @param companyId the company ID
447            * @param name the name
448            * @param scope the scope
449            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
450            * @return the last matching resource permission
451            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
452            * @throws SystemException if a system exception occurred
453            */
454            public com.liferay.portal.model.ResourcePermission findByC_N_S_Last(
455                    long companyId, java.lang.String name, int scope,
456                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457                    throws com.liferay.portal.NoSuchResourcePermissionException,
458                            com.liferay.portal.kernel.exception.SystemException;
459    
460            /**
461            * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63;.
462            *
463            * <p>
464            * 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.
465            * </p>
466            *
467            * @param resourcePermissionId the primary key of the current resource permission
468            * @param companyId the company ID
469            * @param name the name
470            * @param scope the scope
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the previous, current, and next resource permission
473            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portal.model.ResourcePermission[] findByC_N_S_PrevAndNext(
477                    long resourcePermissionId, long companyId, java.lang.String name,
478                    int scope,
479                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
480                    throws com.liferay.portal.NoSuchResourcePermissionException,
481                            com.liferay.portal.kernel.exception.SystemException;
482    
483            /**
484            * Returns all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
485            *
486            * @param companyId the company ID
487            * @param name the name
488            * @param scope the scope
489            * @param primKey the prim key
490            * @return the matching resource permissions
491            * @throws SystemException if a system exception occurred
492            */
493            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
494                    long companyId, java.lang.String name, int scope,
495                    java.lang.String primKey)
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            /**
499            * Returns a range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
500            *
501            * <p>
502            * 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.
503            * </p>
504            *
505            * @param companyId the company ID
506            * @param name the name
507            * @param scope the scope
508            * @param primKey the prim key
509            * @param start the lower bound of the range of resource permissions
510            * @param end the upper bound of the range of resource permissions (not inclusive)
511            * @return the range of matching resource permissions
512            * @throws SystemException if a system exception occurred
513            */
514            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
515                    long companyId, java.lang.String name, int scope,
516                    java.lang.String primKey, int start, int end)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Returns an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
521            *
522            * <p>
523            * 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.
524            * </p>
525            *
526            * @param companyId the company ID
527            * @param name the name
528            * @param scope the scope
529            * @param primKey the prim key
530            * @param start the lower bound of the range of resource permissions
531            * @param end the upper bound of the range of resource permissions (not inclusive)
532            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
533            * @return the ordered range of matching resource permissions
534            * @throws SystemException if a system exception occurred
535            */
536            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
537                    long companyId, java.lang.String name, int scope,
538                    java.lang.String primKey, int start, int end,
539                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            /**
543            * Returns the first resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
544            *
545            * <p>
546            * 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.
547            * </p>
548            *
549            * @param companyId the company ID
550            * @param name the name
551            * @param scope the scope
552            * @param primKey the prim key
553            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
554            * @return the first matching resource permission
555            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
556            * @throws SystemException if a system exception occurred
557            */
558            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_First(
559                    long companyId, java.lang.String name, int scope,
560                    java.lang.String primKey,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.NoSuchResourcePermissionException,
563                            com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * Returns the last resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
567            *
568            * <p>
569            * 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.
570            * </p>
571            *
572            * @param companyId the company ID
573            * @param name the name
574            * @param scope the scope
575            * @param primKey the prim key
576            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
577            * @return the last matching resource permission
578            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
579            * @throws SystemException if a system exception occurred
580            */
581            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_Last(
582                    long companyId, java.lang.String name, int scope,
583                    java.lang.String primKey,
584                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
585                    throws com.liferay.portal.NoSuchResourcePermissionException,
586                            com.liferay.portal.kernel.exception.SystemException;
587    
588            /**
589            * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
590            *
591            * <p>
592            * 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.
593            * </p>
594            *
595            * @param resourcePermissionId the primary key of the current resource permission
596            * @param companyId the company ID
597            * @param name the name
598            * @param scope the scope
599            * @param primKey the prim key
600            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
601            * @return the previous, current, and next resource permission
602            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
603            * @throws SystemException if a system exception occurred
604            */
605            public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_PrevAndNext(
606                    long resourcePermissionId, long companyId, java.lang.String name,
607                    int scope, java.lang.String primKey,
608                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
609                    throws com.liferay.portal.NoSuchResourcePermissionException,
610                            com.liferay.portal.kernel.exception.SystemException;
611    
612            /**
613            * Returns all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
614            *
615            * @param companyId the company ID
616            * @param name the name
617            * @param primKey the prim key
618            * @param ownerId the owner ID
619            * @return the matching resource permissions
620            * @throws SystemException if a system exception occurred
621            */
622            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O(
623                    long companyId, java.lang.String name, java.lang.String primKey,
624                    long ownerId)
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    
627            /**
628            * Returns a range of all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
629            *
630            * <p>
631            * 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.
632            * </p>
633            *
634            * @param companyId the company ID
635            * @param name the name
636            * @param primKey the prim key
637            * @param ownerId the owner ID
638            * @param start the lower bound of the range of resource permissions
639            * @param end the upper bound of the range of resource permissions (not inclusive)
640            * @return the range of matching resource permissions
641            * @throws SystemException if a system exception occurred
642            */
643            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O(
644                    long companyId, java.lang.String name, java.lang.String primKey,
645                    long ownerId, int start, int end)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            /**
649            * Returns an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
650            *
651            * <p>
652            * 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.
653            * </p>
654            *
655            * @param companyId the company ID
656            * @param name the name
657            * @param primKey the prim key
658            * @param ownerId the owner ID
659            * @param start the lower bound of the range of resource permissions
660            * @param end the upper bound of the range of resource permissions (not inclusive)
661            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
662            * @return the ordered range of matching resource permissions
663            * @throws SystemException if a system exception occurred
664            */
665            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O(
666                    long companyId, java.lang.String name, java.lang.String primKey,
667                    long ownerId, int start, int end,
668                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
669                    throws com.liferay.portal.kernel.exception.SystemException;
670    
671            /**
672            * Returns the first resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
673            *
674            * <p>
675            * 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.
676            * </p>
677            *
678            * @param companyId the company ID
679            * @param name the name
680            * @param primKey the prim key
681            * @param ownerId the owner ID
682            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
683            * @return the first matching resource permission
684            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public com.liferay.portal.model.ResourcePermission findByC_N_P_O_First(
688                    long companyId, java.lang.String name, java.lang.String primKey,
689                    long ownerId,
690                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
691                    throws com.liferay.portal.NoSuchResourcePermissionException,
692                            com.liferay.portal.kernel.exception.SystemException;
693    
694            /**
695            * Returns the last resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
696            *
697            * <p>
698            * 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.
699            * </p>
700            *
701            * @param companyId the company ID
702            * @param name the name
703            * @param primKey the prim key
704            * @param ownerId the owner ID
705            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
706            * @return the last matching resource permission
707            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
708            * @throws SystemException if a system exception occurred
709            */
710            public com.liferay.portal.model.ResourcePermission findByC_N_P_O_Last(
711                    long companyId, java.lang.String name, java.lang.String primKey,
712                    long ownerId,
713                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
714                    throws com.liferay.portal.NoSuchResourcePermissionException,
715                            com.liferay.portal.kernel.exception.SystemException;
716    
717            /**
718            * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
719            *
720            * <p>
721            * 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.
722            * </p>
723            *
724            * @param resourcePermissionId the primary key of the current resource permission
725            * @param companyId the company ID
726            * @param name the name
727            * @param primKey the prim key
728            * @param ownerId the owner ID
729            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
730            * @return the previous, current, and next resource permission
731            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
732            * @throws SystemException if a system exception occurred
733            */
734            public com.liferay.portal.model.ResourcePermission[] findByC_N_P_O_PrevAndNext(
735                    long resourcePermissionId, long companyId, java.lang.String name,
736                    java.lang.String primKey, long ownerId,
737                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
738                    throws com.liferay.portal.NoSuchResourcePermissionException,
739                            com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Returns all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63;.
743            *
744            * @param companyId the company ID
745            * @param name the name
746            * @param scope the scope
747            * @param primKey the prim key
748            * @param roleId the role ID
749            * @return the matching resource permissions
750            * @throws SystemException if a system exception occurred
751            */
752            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R(
753                    long companyId, java.lang.String name, int scope,
754                    java.lang.String primKey, long roleId)
755                    throws com.liferay.portal.kernel.exception.SystemException;
756    
757            /**
758            * Returns a range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63;.
759            *
760            * <p>
761            * 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.
762            * </p>
763            *
764            * @param companyId the company ID
765            * @param name the name
766            * @param scope the scope
767            * @param primKey the prim key
768            * @param roleId the role ID
769            * @param start the lower bound of the range of resource permissions
770            * @param end the upper bound of the range of resource permissions (not inclusive)
771            * @return the range of matching resource permissions
772            * @throws SystemException if a system exception occurred
773            */
774            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R(
775                    long companyId, java.lang.String name, int scope,
776                    java.lang.String primKey, long roleId, int start, int end)
777                    throws com.liferay.portal.kernel.exception.SystemException;
778    
779            /**
780            * Returns an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63;.
781            *
782            * <p>
783            * 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.
784            * </p>
785            *
786            * @param companyId the company ID
787            * @param name the name
788            * @param scope the scope
789            * @param primKey the prim key
790            * @param roleId the role ID
791            * @param start the lower bound of the range of resource permissions
792            * @param end the upper bound of the range of resource permissions (not inclusive)
793            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
794            * @return the ordered range of matching resource permissions
795            * @throws SystemException if a system exception occurred
796            */
797            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R(
798                    long companyId, java.lang.String name, int scope,
799                    java.lang.String primKey, long roleId, int start, int end,
800                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
801                    throws com.liferay.portal.kernel.exception.SystemException;
802    
803            /**
804            * Returns the first resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63;.
805            *
806            * <p>
807            * 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.
808            * </p>
809            *
810            * @param companyId the company ID
811            * @param name the name
812            * @param scope the scope
813            * @param primKey the prim key
814            * @param roleId the role ID
815            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
816            * @return the first matching resource permission
817            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
818            * @throws SystemException if a system exception occurred
819            */
820            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_First(
821                    long companyId, java.lang.String name, int scope,
822                    java.lang.String primKey, long roleId,
823                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
824                    throws com.liferay.portal.NoSuchResourcePermissionException,
825                            com.liferay.portal.kernel.exception.SystemException;
826    
827            /**
828            * Returns the last resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63;.
829            *
830            * <p>
831            * 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.
832            * </p>
833            *
834            * @param companyId the company ID
835            * @param name the name
836            * @param scope the scope
837            * @param primKey the prim key
838            * @param roleId the role ID
839            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
840            * @return the last matching resource permission
841            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
842            * @throws SystemException if a system exception occurred
843            */
844            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_Last(
845                    long companyId, java.lang.String name, int scope,
846                    java.lang.String primKey, long roleId,
847                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
848                    throws com.liferay.portal.NoSuchResourcePermissionException,
849                            com.liferay.portal.kernel.exception.SystemException;
850    
851            /**
852            * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63;.
853            *
854            * <p>
855            * 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.
856            * </p>
857            *
858            * @param resourcePermissionId the primary key of the current resource permission
859            * @param companyId the company ID
860            * @param name the name
861            * @param scope the scope
862            * @param primKey the prim key
863            * @param roleId the role ID
864            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
865            * @return the previous, current, and next resource permission
866            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
867            * @throws SystemException if a system exception occurred
868            */
869            public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_R_PrevAndNext(
870                    long resourcePermissionId, long companyId, java.lang.String name,
871                    int scope, java.lang.String primKey, long roleId,
872                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
873                    throws com.liferay.portal.NoSuchResourcePermissionException,
874                            com.liferay.portal.kernel.exception.SystemException;
875    
876            /**
877            * Returns all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = any &#63;.
878            *
879            * <p>
880            * 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.
881            * </p>
882            *
883            * @param companyId the company ID
884            * @param name the name
885            * @param scope the scope
886            * @param primKey the prim key
887            * @param roleIds the role IDs
888            * @return the matching resource permissions
889            * @throws SystemException if a system exception occurred
890            */
891            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R(
892                    long companyId, java.lang.String name, int scope,
893                    java.lang.String primKey, long[] roleIds)
894                    throws com.liferay.portal.kernel.exception.SystemException;
895    
896            /**
897            * Returns a range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = any &#63;.
898            *
899            * <p>
900            * 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.
901            * </p>
902            *
903            * @param companyId the company ID
904            * @param name the name
905            * @param scope the scope
906            * @param primKey the prim key
907            * @param roleIds the role IDs
908            * @param start the lower bound of the range of resource permissions
909            * @param end the upper bound of the range of resource permissions (not inclusive)
910            * @return the range of matching resource permissions
911            * @throws SystemException if a system exception occurred
912            */
913            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R(
914                    long companyId, java.lang.String name, int scope,
915                    java.lang.String primKey, long[] roleIds, int start, int end)
916                    throws com.liferay.portal.kernel.exception.SystemException;
917    
918            /**
919            * Returns an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = any &#63;.
920            *
921            * <p>
922            * 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.
923            * </p>
924            *
925            * @param companyId the company ID
926            * @param name the name
927            * @param scope the scope
928            * @param primKey the prim key
929            * @param roleIds the role IDs
930            * @param start the lower bound of the range of resource permissions
931            * @param end the upper bound of the range of resource permissions (not inclusive)
932            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
933            * @return the ordered range of matching resource permissions
934            * @throws SystemException if a system exception occurred
935            */
936            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R(
937                    long companyId, java.lang.String name, int scope,
938                    java.lang.String primKey, long[] roleIds, int start, int end,
939                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
940                    throws com.liferay.portal.kernel.exception.SystemException;
941    
942            /**
943            * Returns all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
944            *
945            * @param companyId the company ID
946            * @param name the name
947            * @param primKey the prim key
948            * @param roleId the role ID
949            * @param actionIds the action IDs
950            * @return the matching resource permissions
951            * @throws SystemException if a system exception occurred
952            */
953            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A(
954                    long companyId, java.lang.String name, java.lang.String primKey,
955                    long roleId, long actionIds)
956                    throws com.liferay.portal.kernel.exception.SystemException;
957    
958            /**
959            * Returns a range of all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
960            *
961            * <p>
962            * 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.
963            * </p>
964            *
965            * @param companyId the company ID
966            * @param name the name
967            * @param primKey the prim key
968            * @param roleId the role ID
969            * @param actionIds the action IDs
970            * @param start the lower bound of the range of resource permissions
971            * @param end the upper bound of the range of resource permissions (not inclusive)
972            * @return the range of matching resource permissions
973            * @throws SystemException if a system exception occurred
974            */
975            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A(
976                    long companyId, java.lang.String name, java.lang.String primKey,
977                    long roleId, long actionIds, int start, int end)
978                    throws com.liferay.portal.kernel.exception.SystemException;
979    
980            /**
981            * Returns an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
982            *
983            * <p>
984            * 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.
985            * </p>
986            *
987            * @param companyId the company ID
988            * @param name the name
989            * @param primKey the prim key
990            * @param roleId the role ID
991            * @param actionIds the action IDs
992            * @param start the lower bound of the range of resource permissions
993            * @param end the upper bound of the range of resource permissions (not inclusive)
994            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
995            * @return the ordered range of matching resource permissions
996            * @throws SystemException if a system exception occurred
997            */
998            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A(
999                    long companyId, java.lang.String name, java.lang.String primKey,
1000                    long roleId, long actionIds, int start, int end,
1001                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1002                    throws com.liferay.portal.kernel.exception.SystemException;
1003    
1004            /**
1005            * Returns the first resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1006            *
1007            * <p>
1008            * 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.
1009            * </p>
1010            *
1011            * @param companyId the company ID
1012            * @param name the name
1013            * @param primKey the prim key
1014            * @param roleId the role ID
1015            * @param actionIds the action IDs
1016            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1017            * @return the first matching resource permission
1018            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
1019            * @throws SystemException if a system exception occurred
1020            */
1021            public com.liferay.portal.model.ResourcePermission findByC_N_P_R_A_First(
1022                    long companyId, java.lang.String name, java.lang.String primKey,
1023                    long roleId, long actionIds,
1024                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1025                    throws com.liferay.portal.NoSuchResourcePermissionException,
1026                            com.liferay.portal.kernel.exception.SystemException;
1027    
1028            /**
1029            * Returns the last resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1030            *
1031            * <p>
1032            * 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.
1033            * </p>
1034            *
1035            * @param companyId the company ID
1036            * @param name the name
1037            * @param primKey the prim key
1038            * @param roleId the role ID
1039            * @param actionIds the action IDs
1040            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1041            * @return the last matching resource permission
1042            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
1043            * @throws SystemException if a system exception occurred
1044            */
1045            public com.liferay.portal.model.ResourcePermission findByC_N_P_R_A_Last(
1046                    long companyId, java.lang.String name, java.lang.String primKey,
1047                    long roleId, long actionIds,
1048                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1049                    throws com.liferay.portal.NoSuchResourcePermissionException,
1050                            com.liferay.portal.kernel.exception.SystemException;
1051    
1052            /**
1053            * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1054            *
1055            * <p>
1056            * 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.
1057            * </p>
1058            *
1059            * @param resourcePermissionId the primary key of the current resource permission
1060            * @param companyId the company ID
1061            * @param name the name
1062            * @param primKey the prim key
1063            * @param roleId the role ID
1064            * @param actionIds the action IDs
1065            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1066            * @return the previous, current, and next resource permission
1067            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
1068            * @throws SystemException if a system exception occurred
1069            */
1070            public com.liferay.portal.model.ResourcePermission[] findByC_N_P_R_A_PrevAndNext(
1071                    long resourcePermissionId, long companyId, java.lang.String name,
1072                    java.lang.String primKey, long roleId, long actionIds,
1073                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1074                    throws com.liferay.portal.NoSuchResourcePermissionException,
1075                            com.liferay.portal.kernel.exception.SystemException;
1076    
1077            /**
1078            * Returns all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1079            *
1080            * @param companyId the company ID
1081            * @param name the name
1082            * @param scope the scope
1083            * @param primKey the prim key
1084            * @param roleId the role ID
1085            * @param actionIds the action IDs
1086            * @return the matching resource permissions
1087            * @throws SystemException if a system exception occurred
1088            */
1089            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A(
1090                    long companyId, java.lang.String name, int scope,
1091                    java.lang.String primKey, long roleId, long actionIds)
1092                    throws com.liferay.portal.kernel.exception.SystemException;
1093    
1094            /**
1095            * Returns a range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1096            *
1097            * <p>
1098            * 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.
1099            * </p>
1100            *
1101            * @param companyId the company ID
1102            * @param name the name
1103            * @param scope the scope
1104            * @param primKey the prim key
1105            * @param roleId the role ID
1106            * @param actionIds the action IDs
1107            * @param start the lower bound of the range of resource permissions
1108            * @param end the upper bound of the range of resource permissions (not inclusive)
1109            * @return the range of matching resource permissions
1110            * @throws SystemException if a system exception occurred
1111            */
1112            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A(
1113                    long companyId, java.lang.String name, int scope,
1114                    java.lang.String primKey, long roleId, long actionIds, int start,
1115                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1116    
1117            /**
1118            * Returns an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1119            *
1120            * <p>
1121            * 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.
1122            * </p>
1123            *
1124            * @param companyId the company ID
1125            * @param name the name
1126            * @param scope the scope
1127            * @param primKey the prim key
1128            * @param roleId the role ID
1129            * @param actionIds the action IDs
1130            * @param start the lower bound of the range of resource permissions
1131            * @param end the upper bound of the range of resource permissions (not inclusive)
1132            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1133            * @return the ordered range of matching resource permissions
1134            * @throws SystemException if a system exception occurred
1135            */
1136            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A(
1137                    long companyId, java.lang.String name, int scope,
1138                    java.lang.String primKey, long roleId, long actionIds, int start,
1139                    int end,
1140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1141                    throws com.liferay.portal.kernel.exception.SystemException;
1142    
1143            /**
1144            * Returns the first resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1145            *
1146            * <p>
1147            * 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.
1148            * </p>
1149            *
1150            * @param companyId the company ID
1151            * @param name the name
1152            * @param scope the scope
1153            * @param primKey the prim key
1154            * @param roleId the role ID
1155            * @param actionIds the action IDs
1156            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1157            * @return the first matching resource permission
1158            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
1159            * @throws SystemException if a system exception occurred
1160            */
1161            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_A_First(
1162                    long companyId, java.lang.String name, int scope,
1163                    java.lang.String primKey, long roleId, long actionIds,
1164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1165                    throws com.liferay.portal.NoSuchResourcePermissionException,
1166                            com.liferay.portal.kernel.exception.SystemException;
1167    
1168            /**
1169            * Returns the last resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1170            *
1171            * <p>
1172            * 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.
1173            * </p>
1174            *
1175            * @param companyId the company ID
1176            * @param name the name
1177            * @param scope the scope
1178            * @param primKey the prim key
1179            * @param roleId the role ID
1180            * @param actionIds the action IDs
1181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1182            * @return the last matching resource permission
1183            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
1184            * @throws SystemException if a system exception occurred
1185            */
1186            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_A_Last(
1187                    long companyId, java.lang.String name, int scope,
1188                    java.lang.String primKey, long roleId, long actionIds,
1189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1190                    throws com.liferay.portal.NoSuchResourcePermissionException,
1191                            com.liferay.portal.kernel.exception.SystemException;
1192    
1193            /**
1194            * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1195            *
1196            * <p>
1197            * 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.
1198            * </p>
1199            *
1200            * @param resourcePermissionId the primary key of the current resource permission
1201            * @param companyId the company ID
1202            * @param name the name
1203            * @param scope the scope
1204            * @param primKey the prim key
1205            * @param roleId the role ID
1206            * @param actionIds the action IDs
1207            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1208            * @return the previous, current, and next resource permission
1209            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
1210            * @throws SystemException if a system exception occurred
1211            */
1212            public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_R_A_PrevAndNext(
1213                    long resourcePermissionId, long companyId, java.lang.String name,
1214                    int scope, java.lang.String primKey, long roleId, long actionIds,
1215                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1216                    throws com.liferay.portal.NoSuchResourcePermissionException,
1217                            com.liferay.portal.kernel.exception.SystemException;
1218    
1219            /**
1220            * Returns all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = any &#63; and actionIds = &#63;.
1221            *
1222            * <p>
1223            * 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.
1224            * </p>
1225            *
1226            * @param companyId the company ID
1227            * @param name the name
1228            * @param scope the scope
1229            * @param primKey the prim key
1230            * @param roleIds the role IDs
1231            * @param actionIds the action IDs
1232            * @return the matching resource permissions
1233            * @throws SystemException if a system exception occurred
1234            */
1235            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A(
1236                    long companyId, java.lang.String name, int scope,
1237                    java.lang.String primKey, long[] roleIds, long actionIds)
1238                    throws com.liferay.portal.kernel.exception.SystemException;
1239    
1240            /**
1241            * Returns a range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = any &#63; and actionIds = &#63;.
1242            *
1243            * <p>
1244            * 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.
1245            * </p>
1246            *
1247            * @param companyId the company ID
1248            * @param name the name
1249            * @param scope the scope
1250            * @param primKey the prim key
1251            * @param roleIds the role IDs
1252            * @param actionIds the action IDs
1253            * @param start the lower bound of the range of resource permissions
1254            * @param end the upper bound of the range of resource permissions (not inclusive)
1255            * @return the range of matching resource permissions
1256            * @throws SystemException if a system exception occurred
1257            */
1258            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A(
1259                    long companyId, java.lang.String name, int scope,
1260                    java.lang.String primKey, long[] roleIds, long actionIds, int start,
1261                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1262    
1263            /**
1264            * Returns an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = any &#63; and actionIds = &#63;.
1265            *
1266            * <p>
1267            * 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.
1268            * </p>
1269            *
1270            * @param companyId the company ID
1271            * @param name the name
1272            * @param scope the scope
1273            * @param primKey the prim key
1274            * @param roleIds the role IDs
1275            * @param actionIds the action IDs
1276            * @param start the lower bound of the range of resource permissions
1277            * @param end the upper bound of the range of resource permissions (not inclusive)
1278            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1279            * @return the ordered range of matching resource permissions
1280            * @throws SystemException if a system exception occurred
1281            */
1282            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A(
1283                    long companyId, java.lang.String name, int scope,
1284                    java.lang.String primKey, long[] roleIds, long actionIds, int start,
1285                    int end,
1286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1287                    throws com.liferay.portal.kernel.exception.SystemException;
1288    
1289            /**
1290            * Returns the resource permission where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and ownerId = &#63; and actionIds = &#63; or throws a {@link com.liferay.portal.NoSuchResourcePermissionException} if it could not be found.
1291            *
1292            * @param companyId the company ID
1293            * @param name the name
1294            * @param scope the scope
1295            * @param primKey the prim key
1296            * @param roleId the role ID
1297            * @param ownerId the owner ID
1298            * @param actionIds the action IDs
1299            * @return the matching resource permission
1300            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
1301            * @throws SystemException if a system exception occurred
1302            */
1303            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_O_A(
1304                    long companyId, java.lang.String name, int scope,
1305                    java.lang.String primKey, long roleId, long ownerId, long actionIds)
1306                    throws com.liferay.portal.NoSuchResourcePermissionException,
1307                            com.liferay.portal.kernel.exception.SystemException;
1308    
1309            /**
1310            * Returns the resource permission where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and ownerId = &#63; and actionIds = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1311            *
1312            * @param companyId the company ID
1313            * @param name the name
1314            * @param scope the scope
1315            * @param primKey the prim key
1316            * @param roleId the role ID
1317            * @param ownerId the owner ID
1318            * @param actionIds the action IDs
1319            * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found
1320            * @throws SystemException if a system exception occurred
1321            */
1322            public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_O_A(
1323                    long companyId, java.lang.String name, int scope,
1324                    java.lang.String primKey, long roleId, long ownerId, long actionIds)
1325                    throws com.liferay.portal.kernel.exception.SystemException;
1326    
1327            /**
1328            * Returns the resource permission where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and ownerId = &#63; and actionIds = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1329            *
1330            * @param companyId the company ID
1331            * @param name the name
1332            * @param scope the scope
1333            * @param primKey the prim key
1334            * @param roleId the role ID
1335            * @param ownerId the owner ID
1336            * @param actionIds the action IDs
1337            * @param retrieveFromCache whether to use the finder cache
1338            * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found
1339            * @throws SystemException if a system exception occurred
1340            */
1341            public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_O_A(
1342                    long companyId, java.lang.String name, int scope,
1343                    java.lang.String primKey, long roleId, long ownerId, long actionIds,
1344                    boolean retrieveFromCache)
1345                    throws com.liferay.portal.kernel.exception.SystemException;
1346    
1347            /**
1348            * Returns all the resource permissions.
1349            *
1350            * @return the resource permissions
1351            * @throws SystemException if a system exception occurred
1352            */
1353            public java.util.List<com.liferay.portal.model.ResourcePermission> findAll()
1354                    throws com.liferay.portal.kernel.exception.SystemException;
1355    
1356            /**
1357            * Returns a range of all the resource permissions.
1358            *
1359            * <p>
1360            * 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.
1361            * </p>
1362            *
1363            * @param start the lower bound of the range of resource permissions
1364            * @param end the upper bound of the range of resource permissions (not inclusive)
1365            * @return the range of resource permissions
1366            * @throws SystemException if a system exception occurred
1367            */
1368            public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
1369                    int start, int end)
1370                    throws com.liferay.portal.kernel.exception.SystemException;
1371    
1372            /**
1373            * Returns an ordered range of all the resource permissions.
1374            *
1375            * <p>
1376            * 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.
1377            * </p>
1378            *
1379            * @param start the lower bound of the range of resource permissions
1380            * @param end the upper bound of the range of resource permissions (not inclusive)
1381            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1382            * @return the ordered range of resource permissions
1383            * @throws SystemException if a system exception occurred
1384            */
1385            public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
1386                    int start, int end,
1387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1388                    throws com.liferay.portal.kernel.exception.SystemException;
1389    
1390            /**
1391            * Removes all the resource permissions where scope = &#63; from the database.
1392            *
1393            * @param scope the scope
1394            * @throws SystemException if a system exception occurred
1395            */
1396            public void removeByScope(int scope)
1397                    throws com.liferay.portal.kernel.exception.SystemException;
1398    
1399            /**
1400            * Removes all the resource permissions where roleId = &#63; from the database.
1401            *
1402            * @param roleId the role ID
1403            * @throws SystemException if a system exception occurred
1404            */
1405            public void removeByRoleId(long roleId)
1406                    throws com.liferay.portal.kernel.exception.SystemException;
1407    
1408            /**
1409            * Removes all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; from the database.
1410            *
1411            * @param companyId the company ID
1412            * @param name the name
1413            * @param scope the scope
1414            * @throws SystemException if a system exception occurred
1415            */
1416            public void removeByC_N_S(long companyId, java.lang.String name, int scope)
1417                    throws com.liferay.portal.kernel.exception.SystemException;
1418    
1419            /**
1420            * Removes all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; from the database.
1421            *
1422            * @param companyId the company ID
1423            * @param name the name
1424            * @param scope the scope
1425            * @param primKey the prim key
1426            * @throws SystemException if a system exception occurred
1427            */
1428            public void removeByC_N_S_P(long companyId, java.lang.String name,
1429                    int scope, java.lang.String primKey)
1430                    throws com.liferay.portal.kernel.exception.SystemException;
1431    
1432            /**
1433            * Removes all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63; from the database.
1434            *
1435            * @param companyId the company ID
1436            * @param name the name
1437            * @param primKey the prim key
1438            * @param ownerId the owner ID
1439            * @throws SystemException if a system exception occurred
1440            */
1441            public void removeByC_N_P_O(long companyId, java.lang.String name,
1442                    java.lang.String primKey, long ownerId)
1443                    throws com.liferay.portal.kernel.exception.SystemException;
1444    
1445            /**
1446            * Removes all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; from the database.
1447            *
1448            * @param companyId the company ID
1449            * @param name the name
1450            * @param scope the scope
1451            * @param primKey the prim key
1452            * @param roleId the role ID
1453            * @throws SystemException if a system exception occurred
1454            */
1455            public void removeByC_N_S_P_R(long companyId, java.lang.String name,
1456                    int scope, java.lang.String primKey, long roleId)
1457                    throws com.liferay.portal.kernel.exception.SystemException;
1458    
1459            /**
1460            * Removes all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63; from the database.
1461            *
1462            * @param companyId the company ID
1463            * @param name the name
1464            * @param primKey the prim key
1465            * @param roleId the role ID
1466            * @param actionIds the action IDs
1467            * @throws SystemException if a system exception occurred
1468            */
1469            public void removeByC_N_P_R_A(long companyId, java.lang.String name,
1470                    java.lang.String primKey, long roleId, long actionIds)
1471                    throws com.liferay.portal.kernel.exception.SystemException;
1472    
1473            /**
1474            * Removes all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63; from the database.
1475            *
1476            * @param companyId the company ID
1477            * @param name the name
1478            * @param scope the scope
1479            * @param primKey the prim key
1480            * @param roleId the role ID
1481            * @param actionIds the action IDs
1482            * @throws SystemException if a system exception occurred
1483            */
1484            public void removeByC_N_S_P_R_A(long companyId, java.lang.String name,
1485                    int scope, java.lang.String primKey, long roleId, long actionIds)
1486                    throws com.liferay.portal.kernel.exception.SystemException;
1487    
1488            /**
1489            * Removes the resource permission where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and ownerId = &#63; and actionIds = &#63; from the database.
1490            *
1491            * @param companyId the company ID
1492            * @param name the name
1493            * @param scope the scope
1494            * @param primKey the prim key
1495            * @param roleId the role ID
1496            * @param ownerId the owner ID
1497            * @param actionIds the action IDs
1498            * @throws SystemException if a system exception occurred
1499            */
1500            public void removeByC_N_S_P_R_O_A(long companyId, java.lang.String name,
1501                    int scope, java.lang.String primKey, long roleId, long ownerId,
1502                    long actionIds)
1503                    throws com.liferay.portal.NoSuchResourcePermissionException,
1504                            com.liferay.portal.kernel.exception.SystemException;
1505    
1506            /**
1507            * Removes all the resource permissions from the database.
1508            *
1509            * @throws SystemException if a system exception occurred
1510            */
1511            public void removeAll()
1512                    throws com.liferay.portal.kernel.exception.SystemException;
1513    
1514            /**
1515            * Returns the number of resource permissions where scope = &#63;.
1516            *
1517            * @param scope the scope
1518            * @return the number of matching resource permissions
1519            * @throws SystemException if a system exception occurred
1520            */
1521            public int countByScope(int scope)
1522                    throws com.liferay.portal.kernel.exception.SystemException;
1523    
1524            /**
1525            * Returns the number of resource permissions where scope = any &#63;.
1526            *
1527            * @param scopes the scopes
1528            * @return the number of matching resource permissions
1529            * @throws SystemException if a system exception occurred
1530            */
1531            public int countByScope(int[] scopes)
1532                    throws com.liferay.portal.kernel.exception.SystemException;
1533    
1534            /**
1535            * Returns the number of resource permissions where roleId = &#63;.
1536            *
1537            * @param roleId the role ID
1538            * @return the number of matching resource permissions
1539            * @throws SystemException if a system exception occurred
1540            */
1541            public int countByRoleId(long roleId)
1542                    throws com.liferay.portal.kernel.exception.SystemException;
1543    
1544            /**
1545            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and scope = &#63;.
1546            *
1547            * @param companyId the company ID
1548            * @param name the name
1549            * @param scope the scope
1550            * @return the number of matching resource permissions
1551            * @throws SystemException if a system exception occurred
1552            */
1553            public int countByC_N_S(long companyId, java.lang.String name, int scope)
1554                    throws com.liferay.portal.kernel.exception.SystemException;
1555    
1556            /**
1557            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
1558            *
1559            * @param companyId the company ID
1560            * @param name the name
1561            * @param scope the scope
1562            * @param primKey the prim key
1563            * @return the number of matching resource permissions
1564            * @throws SystemException if a system exception occurred
1565            */
1566            public int countByC_N_S_P(long companyId, java.lang.String name, int scope,
1567                    java.lang.String primKey)
1568                    throws com.liferay.portal.kernel.exception.SystemException;
1569    
1570            /**
1571            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
1572            *
1573            * @param companyId the company ID
1574            * @param name the name
1575            * @param primKey the prim key
1576            * @param ownerId the owner ID
1577            * @return the number of matching resource permissions
1578            * @throws SystemException if a system exception occurred
1579            */
1580            public int countByC_N_P_O(long companyId, java.lang.String name,
1581                    java.lang.String primKey, long ownerId)
1582                    throws com.liferay.portal.kernel.exception.SystemException;
1583    
1584            /**
1585            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63;.
1586            *
1587            * @param companyId the company ID
1588            * @param name the name
1589            * @param scope the scope
1590            * @param primKey the prim key
1591            * @param roleId the role ID
1592            * @return the number of matching resource permissions
1593            * @throws SystemException if a system exception occurred
1594            */
1595            public int countByC_N_S_P_R(long companyId, java.lang.String name,
1596                    int scope, java.lang.String primKey, long roleId)
1597                    throws com.liferay.portal.kernel.exception.SystemException;
1598    
1599            /**
1600            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = any &#63;.
1601            *
1602            * @param companyId the company ID
1603            * @param name the name
1604            * @param scope the scope
1605            * @param primKey the prim key
1606            * @param roleIds the role IDs
1607            * @return the number of matching resource permissions
1608            * @throws SystemException if a system exception occurred
1609            */
1610            public int countByC_N_S_P_R(long companyId, java.lang.String name,
1611                    int scope, java.lang.String primKey, long[] roleIds)
1612                    throws com.liferay.portal.kernel.exception.SystemException;
1613    
1614            /**
1615            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1616            *
1617            * @param companyId the company ID
1618            * @param name the name
1619            * @param primKey the prim key
1620            * @param roleId the role ID
1621            * @param actionIds the action IDs
1622            * @return the number of matching resource permissions
1623            * @throws SystemException if a system exception occurred
1624            */
1625            public int countByC_N_P_R_A(long companyId, java.lang.String name,
1626                    java.lang.String primKey, long roleId, long actionIds)
1627                    throws com.liferay.portal.kernel.exception.SystemException;
1628    
1629            /**
1630            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1631            *
1632            * @param companyId the company ID
1633            * @param name the name
1634            * @param scope the scope
1635            * @param primKey the prim key
1636            * @param roleId the role ID
1637            * @param actionIds the action IDs
1638            * @return the number of matching resource permissions
1639            * @throws SystemException if a system exception occurred
1640            */
1641            public int countByC_N_S_P_R_A(long companyId, java.lang.String name,
1642                    int scope, java.lang.String primKey, long roleId, long actionIds)
1643                    throws com.liferay.portal.kernel.exception.SystemException;
1644    
1645            /**
1646            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = any &#63; and actionIds = &#63;.
1647            *
1648            * @param companyId the company ID
1649            * @param name the name
1650            * @param scope the scope
1651            * @param primKey the prim key
1652            * @param roleIds the role IDs
1653            * @param actionIds the action IDs
1654            * @return the number of matching resource permissions
1655            * @throws SystemException if a system exception occurred
1656            */
1657            public int countByC_N_S_P_R_A(long companyId, java.lang.String name,
1658                    int scope, java.lang.String primKey, long[] roleIds, long actionIds)
1659                    throws com.liferay.portal.kernel.exception.SystemException;
1660    
1661            /**
1662            * Returns the number of resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and ownerId = &#63; and actionIds = &#63;.
1663            *
1664            * @param companyId the company ID
1665            * @param name the name
1666            * @param scope the scope
1667            * @param primKey the prim key
1668            * @param roleId the role ID
1669            * @param ownerId the owner ID
1670            * @param actionIds the action IDs
1671            * @return the number of matching resource permissions
1672            * @throws SystemException if a system exception occurred
1673            */
1674            public int countByC_N_S_P_R_O_A(long companyId, java.lang.String name,
1675                    int scope, java.lang.String primKey, long roleId, long ownerId,
1676                    long actionIds)
1677                    throws com.liferay.portal.kernel.exception.SystemException;
1678    
1679            /**
1680            * Returns the number of resource permissions.
1681            *
1682            * @return the number of resource permissions
1683            * @throws SystemException if a system exception occurred
1684            */
1685            public int countAll()
1686                    throws com.liferay.portal.kernel.exception.SystemException;
1687    
1688            public ResourcePermission remove(ResourcePermission resourcePermission)
1689                    throws SystemException;
1690    }