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 to cache
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 to cache
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 to remove
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            * Finds 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 to find
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            * Finds 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 to find
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            * Finds all the resource permissions where roleId = &#63;.
108            *
109            * @param roleId the role ID to search with
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> findByRoleId(
114                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Finds a range of all the resource permissions where roleId = &#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 roleId the role ID to search with
124            * @param start the lower bound of the range of resource permissions to return
125            * @param end the upper bound of the range of resource permissions to return (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> findByRoleId(
130                    long roleId, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds an ordered range of all the resource permissions where roleId = &#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 roleId the role ID to search with
141            * @param start the lower bound of the range of resource permissions to return
142            * @param end the upper bound of the range of resource permissions to return (not inclusive)
143            * @param orderByComparator the comparator to order the results by
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> findByRoleId(
148                    long roleId, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Finds the first resource permission in the ordered set where roleId = &#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 roleId the role ID to search with
160            * @param orderByComparator the comparator to order the set by
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 findByRoleId_First(
166                    long roleId,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.NoSuchResourcePermissionException,
169                            com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Finds the last resource permission in the ordered set where roleId = &#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 roleId the role ID to search with
179            * @param orderByComparator the comparator to order the set by
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 findByRoleId_Last(
185                    long roleId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.NoSuchResourcePermissionException,
188                            com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Finds the resource permissions before and after the current resource permission in the ordered set where roleId = &#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 roleId the role ID to search with
199            * @param orderByComparator the comparator to order the set by
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[] findByRoleId_PrevAndNext(
205                    long resourcePermissionId, long roleId,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.NoSuchResourcePermissionException,
208                            com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Finds all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63;.
212            *
213            * @param companyId the company ID to search with
214            * @param name the name to search with
215            * @param scope the scope to search with
216            * @return the matching resource permissions
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
220                    long companyId, java.lang.String name, int scope)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Finds a range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63;.
225            *
226            * <p>
227            * 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.
228            * </p>
229            *
230            * @param companyId the company ID to search with
231            * @param name the name to search with
232            * @param scope the scope to search with
233            * @param start the lower bound of the range of resource permissions to return
234            * @param end the upper bound of the range of resource permissions to return (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> findByC_N_S(
239                    long companyId, java.lang.String name, int scope, int start, int end)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Finds an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#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 companyId the company ID to search with
250            * @param name the name to search with
251            * @param scope the scope to search with
252            * @param start the lower bound of the range of resource permissions to return
253            * @param end the upper bound of the range of resource permissions to return (not inclusive)
254            * @param orderByComparator the comparator to order the results by
255            * @return the ordered range of matching resource permissions
256            * @throws SystemException if a system exception occurred
257            */
258            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
259                    long companyId, java.lang.String name, int scope, int start, int end,
260                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * Finds the first resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63;.
265            *
266            * <p>
267            * 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.
268            * </p>
269            *
270            * @param companyId the company ID to search with
271            * @param name the name to search with
272            * @param scope the scope to search with
273            * @param orderByComparator the comparator to order the set by
274            * @return the first matching resource permission
275            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
276            * @throws SystemException if a system exception occurred
277            */
278            public com.liferay.portal.model.ResourcePermission findByC_N_S_First(
279                    long companyId, java.lang.String name, int scope,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.NoSuchResourcePermissionException,
282                            com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * Finds the last resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63;.
286            *
287            * <p>
288            * 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.
289            * </p>
290            *
291            * @param companyId the company ID to search with
292            * @param name the name to search with
293            * @param scope the scope to search with
294            * @param orderByComparator the comparator to order the set by
295            * @return the last matching resource permission
296            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
297            * @throws SystemException if a system exception occurred
298            */
299            public com.liferay.portal.model.ResourcePermission findByC_N_S_Last(
300                    long companyId, java.lang.String name, int scope,
301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302                    throws com.liferay.portal.NoSuchResourcePermissionException,
303                            com.liferay.portal.kernel.exception.SystemException;
304    
305            /**
306            * Finds the resource permissions before and after the current resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63;.
307            *
308            * <p>
309            * 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.
310            * </p>
311            *
312            * @param resourcePermissionId the primary key of the current resource permission
313            * @param companyId the company ID to search with
314            * @param name the name to search with
315            * @param scope the scope to search with
316            * @param orderByComparator the comparator to order the set by
317            * @return the previous, current, and next resource permission
318            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portal.model.ResourcePermission[] findByC_N_S_PrevAndNext(
322                    long resourcePermissionId, long companyId, java.lang.String name,
323                    int scope,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.NoSuchResourcePermissionException,
326                            com.liferay.portal.kernel.exception.SystemException;
327    
328            /**
329            * Finds all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
330            *
331            * @param companyId the company ID to search with
332            * @param name the name to search with
333            * @param scope the scope to search with
334            * @param primKey the prim key to search with
335            * @return the matching resource permissions
336            * @throws SystemException if a system exception occurred
337            */
338            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
339                    long companyId, java.lang.String name, int scope,
340                    java.lang.String primKey)
341                    throws com.liferay.portal.kernel.exception.SystemException;
342    
343            /**
344            * Finds a range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
345            *
346            * <p>
347            * 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.
348            * </p>
349            *
350            * @param companyId the company ID to search with
351            * @param name the name to search with
352            * @param scope the scope to search with
353            * @param primKey the prim key to search with
354            * @param start the lower bound of the range of resource permissions to return
355            * @param end the upper bound of the range of resource permissions to return (not inclusive)
356            * @return the range of matching resource permissions
357            * @throws SystemException if a system exception occurred
358            */
359            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
360                    long companyId, java.lang.String name, int scope,
361                    java.lang.String primKey, int start, int end)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Finds an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
366            *
367            * <p>
368            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
369            * </p>
370            *
371            * @param companyId the company ID to search with
372            * @param name the name to search with
373            * @param scope the scope to search with
374            * @param primKey the prim key to search with
375            * @param start the lower bound of the range of resource permissions to return
376            * @param end the upper bound of the range of resource permissions to return (not inclusive)
377            * @param orderByComparator the comparator to order the results by
378            * @return the ordered range of matching resource permissions
379            * @throws SystemException if a system exception occurred
380            */
381            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
382                    long companyId, java.lang.String name, int scope,
383                    java.lang.String primKey, int start, int end,
384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385                    throws com.liferay.portal.kernel.exception.SystemException;
386    
387            /**
388            * Finds the first resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
389            *
390            * <p>
391            * 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.
392            * </p>
393            *
394            * @param companyId the company ID to search with
395            * @param name the name to search with
396            * @param scope the scope to search with
397            * @param primKey the prim key to search with
398            * @param orderByComparator the comparator to order the set by
399            * @return the first matching resource permission
400            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
401            * @throws SystemException if a system exception occurred
402            */
403            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_First(
404                    long companyId, java.lang.String name, int scope,
405                    java.lang.String primKey,
406                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407                    throws com.liferay.portal.NoSuchResourcePermissionException,
408                            com.liferay.portal.kernel.exception.SystemException;
409    
410            /**
411            * Finds the last resource permission in the ordered set where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
412            *
413            * <p>
414            * 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.
415            * </p>
416            *
417            * @param companyId the company ID to search with
418            * @param name the name to search with
419            * @param scope the scope to search with
420            * @param primKey the prim key to search with
421            * @param orderByComparator the comparator to order the set by
422            * @return the last matching resource permission
423            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
424            * @throws SystemException if a system exception occurred
425            */
426            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_Last(
427                    long companyId, java.lang.String name, int scope,
428                    java.lang.String primKey,
429                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430                    throws com.liferay.portal.NoSuchResourcePermissionException,
431                            com.liferay.portal.kernel.exception.SystemException;
432    
433            /**
434            * Finds 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;.
435            *
436            * <p>
437            * 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.
438            * </p>
439            *
440            * @param resourcePermissionId the primary key of the current resource permission
441            * @param companyId the company ID to search with
442            * @param name the name to search with
443            * @param scope the scope to search with
444            * @param primKey the prim key to search with
445            * @param orderByComparator the comparator to order the set by
446            * @return the previous, current, and next resource permission
447            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
448            * @throws SystemException if a system exception occurred
449            */
450            public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_PrevAndNext(
451                    long resourcePermissionId, long companyId, java.lang.String name,
452                    int scope, java.lang.String primKey,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.NoSuchResourcePermissionException,
455                            com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Finds all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
459            *
460            * @param companyId the company ID to search with
461            * @param name the name to search with
462            * @param primKey the prim key to search with
463            * @param ownerId the owner ID to search with
464            * @return the matching resource permissions
465            * @throws SystemException if a system exception occurred
466            */
467            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O(
468                    long companyId, java.lang.String name, java.lang.String primKey,
469                    long ownerId)
470                    throws com.liferay.portal.kernel.exception.SystemException;
471    
472            /**
473            * Finds a range of all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
474            *
475            * <p>
476            * 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.
477            * </p>
478            *
479            * @param companyId the company ID to search with
480            * @param name the name to search with
481            * @param primKey the prim key to search with
482            * @param ownerId the owner ID to search with
483            * @param start the lower bound of the range of resource permissions to return
484            * @param end the upper bound of the range of resource permissions to return (not inclusive)
485            * @return the range of matching resource permissions
486            * @throws SystemException if a system exception occurred
487            */
488            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O(
489                    long companyId, java.lang.String name, java.lang.String primKey,
490                    long ownerId, int start, int end)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Finds an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
495            *
496            * <p>
497            * 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.
498            * </p>
499            *
500            * @param companyId the company ID to search with
501            * @param name the name to search with
502            * @param primKey the prim key to search with
503            * @param ownerId the owner ID to search with
504            * @param start the lower bound of the range of resource permissions to return
505            * @param end the upper bound of the range of resource permissions to return (not inclusive)
506            * @param orderByComparator the comparator to order the results by
507            * @return the ordered range of matching resource permissions
508            * @throws SystemException if a system exception occurred
509            */
510            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O(
511                    long companyId, java.lang.String name, java.lang.String primKey,
512                    long ownerId, int start, int end,
513                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
514                    throws com.liferay.portal.kernel.exception.SystemException;
515    
516            /**
517            * Finds the first resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
518            *
519            * <p>
520            * 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.
521            * </p>
522            *
523            * @param companyId the company ID to search with
524            * @param name the name to search with
525            * @param primKey the prim key to search with
526            * @param ownerId the owner ID to search with
527            * @param orderByComparator the comparator to order the set by
528            * @return the first matching resource permission
529            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
530            * @throws SystemException if a system exception occurred
531            */
532            public com.liferay.portal.model.ResourcePermission findByC_N_P_O_First(
533                    long companyId, java.lang.String name, java.lang.String primKey,
534                    long ownerId,
535                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
536                    throws com.liferay.portal.NoSuchResourcePermissionException,
537                            com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Finds the last resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
541            *
542            * <p>
543            * 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.
544            * </p>
545            *
546            * @param companyId the company ID to search with
547            * @param name the name to search with
548            * @param primKey the prim key to search with
549            * @param ownerId the owner ID to search with
550            * @param orderByComparator the comparator to order the set by
551            * @return the last matching resource permission
552            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
553            * @throws SystemException if a system exception occurred
554            */
555            public com.liferay.portal.model.ResourcePermission findByC_N_P_O_Last(
556                    long companyId, java.lang.String name, java.lang.String primKey,
557                    long ownerId,
558                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
559                    throws com.liferay.portal.NoSuchResourcePermissionException,
560                            com.liferay.portal.kernel.exception.SystemException;
561    
562            /**
563            * Finds 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;.
564            *
565            * <p>
566            * 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.
567            * </p>
568            *
569            * @param resourcePermissionId the primary key of the current resource permission
570            * @param companyId the company ID to search with
571            * @param name the name to search with
572            * @param primKey the prim key to search with
573            * @param ownerId the owner ID to search with
574            * @param orderByComparator the comparator to order the set by
575            * @return the previous, current, and next resource permission
576            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
577            * @throws SystemException if a system exception occurred
578            */
579            public com.liferay.portal.model.ResourcePermission[] findByC_N_P_O_PrevAndNext(
580                    long resourcePermissionId, long companyId, java.lang.String name,
581                    java.lang.String primKey, long ownerId,
582                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
583                    throws com.liferay.portal.NoSuchResourcePermissionException,
584                            com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Finds the resource permission where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; or throws a {@link com.liferay.portal.NoSuchResourcePermissionException} if it could not be found.
588            *
589            * @param companyId the company ID to search with
590            * @param name the name to search with
591            * @param scope the scope to search with
592            * @param primKey the prim key to search with
593            * @param roleId the role ID to search with
594            * @return the matching resource permission
595            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
596            * @throws SystemException if a system exception occurred
597            */
598            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R(
599                    long companyId, java.lang.String name, int scope,
600                    java.lang.String primKey, long roleId)
601                    throws com.liferay.portal.NoSuchResourcePermissionException,
602                            com.liferay.portal.kernel.exception.SystemException;
603    
604            /**
605            * Finds the resource permission where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
606            *
607            * @param companyId the company ID to search with
608            * @param name the name to search with
609            * @param scope the scope to search with
610            * @param primKey the prim key to search with
611            * @param roleId the role ID to search with
612            * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found
613            * @throws SystemException if a system exception occurred
614            */
615            public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R(
616                    long companyId, java.lang.String name, int scope,
617                    java.lang.String primKey, long roleId)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * Finds the resource permission where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
622            *
623            * @param companyId the company ID to search with
624            * @param name the name to search with
625            * @param scope the scope to search with
626            * @param primKey the prim key to search with
627            * @param roleId the role ID to search with
628            * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found
629            * @throws SystemException if a system exception occurred
630            */
631            public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R(
632                    long companyId, java.lang.String name, int scope,
633                    java.lang.String primKey, long roleId, boolean retrieveFromCache)
634                    throws com.liferay.portal.kernel.exception.SystemException;
635    
636            /**
637            * Finds all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
638            *
639            * @param companyId the company ID to search with
640            * @param name the name to search with
641            * @param primKey the prim key to search with
642            * @param roleId the role ID to search with
643            * @param actionIds the action IDs to search with
644            * @return the matching resource permissions
645            * @throws SystemException if a system exception occurred
646            */
647            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A(
648                    long companyId, java.lang.String name, java.lang.String primKey,
649                    long roleId, long actionIds)
650                    throws com.liferay.portal.kernel.exception.SystemException;
651    
652            /**
653            * Finds a range of all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
654            *
655            * <p>
656            * 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.
657            * </p>
658            *
659            * @param companyId the company ID to search with
660            * @param name the name to search with
661            * @param primKey the prim key to search with
662            * @param roleId the role ID to search with
663            * @param actionIds the action IDs to search with
664            * @param start the lower bound of the range of resource permissions to return
665            * @param end the upper bound of the range of resource permissions to return (not inclusive)
666            * @return the range of matching resource permissions
667            * @throws SystemException if a system exception occurred
668            */
669            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A(
670                    long companyId, java.lang.String name, java.lang.String primKey,
671                    long roleId, long actionIds, int start, int end)
672                    throws com.liferay.portal.kernel.exception.SystemException;
673    
674            /**
675            * Finds an ordered range of all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
676            *
677            * <p>
678            * 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.
679            * </p>
680            *
681            * @param companyId the company ID to search with
682            * @param name the name to search with
683            * @param primKey the prim key to search with
684            * @param roleId the role ID to search with
685            * @param actionIds the action IDs to search with
686            * @param start the lower bound of the range of resource permissions to return
687            * @param end the upper bound of the range of resource permissions to return (not inclusive)
688            * @param orderByComparator the comparator to order the results by
689            * @return the ordered range of matching resource permissions
690            * @throws SystemException if a system exception occurred
691            */
692            public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A(
693                    long companyId, java.lang.String name, java.lang.String primKey,
694                    long roleId, long actionIds, int start, int end,
695                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    
698            /**
699            * Finds the first resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
700            *
701            * <p>
702            * 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.
703            * </p>
704            *
705            * @param companyId the company ID to search with
706            * @param name the name to search with
707            * @param primKey the prim key to search with
708            * @param roleId the role ID to search with
709            * @param actionIds the action IDs to search with
710            * @param orderByComparator the comparator to order the set by
711            * @return the first matching resource permission
712            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
713            * @throws SystemException if a system exception occurred
714            */
715            public com.liferay.portal.model.ResourcePermission findByC_N_P_R_A_First(
716                    long companyId, java.lang.String name, java.lang.String primKey,
717                    long roleId, long actionIds,
718                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
719                    throws com.liferay.portal.NoSuchResourcePermissionException,
720                            com.liferay.portal.kernel.exception.SystemException;
721    
722            /**
723            * Finds the last resource permission in the ordered set where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
724            *
725            * <p>
726            * 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.
727            * </p>
728            *
729            * @param companyId the company ID to search with
730            * @param name the name to search with
731            * @param primKey the prim key to search with
732            * @param roleId the role ID to search with
733            * @param actionIds the action IDs to search with
734            * @param orderByComparator the comparator to order the set by
735            * @return the last matching resource permission
736            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
737            * @throws SystemException if a system exception occurred
738            */
739            public com.liferay.portal.model.ResourcePermission findByC_N_P_R_A_Last(
740                    long companyId, java.lang.String name, java.lang.String primKey,
741                    long roleId, long actionIds,
742                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
743                    throws com.liferay.portal.NoSuchResourcePermissionException,
744                            com.liferay.portal.kernel.exception.SystemException;
745    
746            /**
747            * Finds 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;.
748            *
749            * <p>
750            * 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.
751            * </p>
752            *
753            * @param resourcePermissionId the primary key of the current resource permission
754            * @param companyId the company ID to search with
755            * @param name the name to search with
756            * @param primKey the prim key to search with
757            * @param roleId the role ID to search with
758            * @param actionIds the action IDs to search with
759            * @param orderByComparator the comparator to order the set by
760            * @return the previous, current, and next resource permission
761            * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found
762            * @throws SystemException if a system exception occurred
763            */
764            public com.liferay.portal.model.ResourcePermission[] findByC_N_P_R_A_PrevAndNext(
765                    long resourcePermissionId, long companyId, java.lang.String name,
766                    java.lang.String primKey, long roleId, long actionIds,
767                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
768                    throws com.liferay.portal.NoSuchResourcePermissionException,
769                            com.liferay.portal.kernel.exception.SystemException;
770    
771            /**
772            * Finds 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.
773            *
774            * @param companyId the company ID to search with
775            * @param name the name to search with
776            * @param scope the scope to search with
777            * @param primKey the prim key to search with
778            * @param roleId the role ID to search with
779            * @param ownerId the owner ID to search with
780            * @param actionIds the action IDs to search with
781            * @return the matching resource permission
782            * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found
783            * @throws SystemException if a system exception occurred
784            */
785            public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_O_A(
786                    long companyId, java.lang.String name, int scope,
787                    java.lang.String primKey, long roleId, long ownerId, long actionIds)
788                    throws com.liferay.portal.NoSuchResourcePermissionException,
789                            com.liferay.portal.kernel.exception.SystemException;
790    
791            /**
792            * Finds 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.
793            *
794            * @param companyId the company ID to search with
795            * @param name the name to search with
796            * @param scope the scope to search with
797            * @param primKey the prim key to search with
798            * @param roleId the role ID to search with
799            * @param ownerId the owner ID to search with
800            * @param actionIds the action IDs to search with
801            * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found
802            * @throws SystemException if a system exception occurred
803            */
804            public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_O_A(
805                    long companyId, java.lang.String name, int scope,
806                    java.lang.String primKey, long roleId, long ownerId, long actionIds)
807                    throws com.liferay.portal.kernel.exception.SystemException;
808    
809            /**
810            * Finds 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.
811            *
812            * @param companyId the company ID to search with
813            * @param name the name to search with
814            * @param scope the scope to search with
815            * @param primKey the prim key to search with
816            * @param roleId the role ID to search with
817            * @param ownerId the owner ID to search with
818            * @param actionIds the action IDs to search with
819            * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found
820            * @throws SystemException if a system exception occurred
821            */
822            public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_O_A(
823                    long companyId, java.lang.String name, int scope,
824                    java.lang.String primKey, long roleId, long ownerId, long actionIds,
825                    boolean retrieveFromCache)
826                    throws com.liferay.portal.kernel.exception.SystemException;
827    
828            /**
829            * Finds all the resource permissions.
830            *
831            * @return the resource permissions
832            * @throws SystemException if a system exception occurred
833            */
834            public java.util.List<com.liferay.portal.model.ResourcePermission> findAll()
835                    throws com.liferay.portal.kernel.exception.SystemException;
836    
837            /**
838            * Finds a range of all the resource permissions.
839            *
840            * <p>
841            * 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.
842            * </p>
843            *
844            * @param start the lower bound of the range of resource permissions to return
845            * @param end the upper bound of the range of resource permissions to return (not inclusive)
846            * @return the range of resource permissions
847            * @throws SystemException if a system exception occurred
848            */
849            public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
850                    int start, int end)
851                    throws com.liferay.portal.kernel.exception.SystemException;
852    
853            /**
854            * Finds an ordered range of all the resource permissions.
855            *
856            * <p>
857            * 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.
858            * </p>
859            *
860            * @param start the lower bound of the range of resource permissions to return
861            * @param end the upper bound of the range of resource permissions to return (not inclusive)
862            * @param orderByComparator the comparator to order the results by
863            * @return the ordered range of resource permissions
864            * @throws SystemException if a system exception occurred
865            */
866            public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
867                    int start, int end,
868                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
869                    throws com.liferay.portal.kernel.exception.SystemException;
870    
871            /**
872            * Removes all the resource permissions where roleId = &#63; from the database.
873            *
874            * @param roleId the role ID to search with
875            * @throws SystemException if a system exception occurred
876            */
877            public void removeByRoleId(long roleId)
878                    throws com.liferay.portal.kernel.exception.SystemException;
879    
880            /**
881            * Removes all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; from the database.
882            *
883            * @param companyId the company ID to search with
884            * @param name the name to search with
885            * @param scope the scope to search with
886            * @throws SystemException if a system exception occurred
887            */
888            public void removeByC_N_S(long companyId, java.lang.String name, int scope)
889                    throws com.liferay.portal.kernel.exception.SystemException;
890    
891            /**
892            * Removes all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; from the database.
893            *
894            * @param companyId the company ID to search with
895            * @param name the name to search with
896            * @param scope the scope to search with
897            * @param primKey the prim key to search with
898            * @throws SystemException if a system exception occurred
899            */
900            public void removeByC_N_S_P(long companyId, java.lang.String name,
901                    int scope, java.lang.String primKey)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Removes all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63; from the database.
906            *
907            * @param companyId the company ID to search with
908            * @param name the name to search with
909            * @param primKey the prim key to search with
910            * @param ownerId the owner ID to search with
911            * @throws SystemException if a system exception occurred
912            */
913            public void removeByC_N_P_O(long companyId, java.lang.String name,
914                    java.lang.String primKey, long ownerId)
915                    throws com.liferay.portal.kernel.exception.SystemException;
916    
917            /**
918            * Removes the resource permission where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; from the database.
919            *
920            * @param companyId the company ID to search with
921            * @param name the name to search with
922            * @param scope the scope to search with
923            * @param primKey the prim key to search with
924            * @param roleId the role ID to search with
925            * @throws SystemException if a system exception occurred
926            */
927            public void removeByC_N_S_P_R(long companyId, java.lang.String name,
928                    int scope, java.lang.String primKey, long roleId)
929                    throws com.liferay.portal.NoSuchResourcePermissionException,
930                            com.liferay.portal.kernel.exception.SystemException;
931    
932            /**
933            * Removes all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63; from the database.
934            *
935            * @param companyId the company ID to search with
936            * @param name the name to search with
937            * @param primKey the prim key to search with
938            * @param roleId the role ID to search with
939            * @param actionIds the action IDs to search with
940            * @throws SystemException if a system exception occurred
941            */
942            public void removeByC_N_P_R_A(long companyId, java.lang.String name,
943                    java.lang.String primKey, long roleId, long actionIds)
944                    throws com.liferay.portal.kernel.exception.SystemException;
945    
946            /**
947            * 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.
948            *
949            * @param companyId the company ID to search with
950            * @param name the name to search with
951            * @param scope the scope to search with
952            * @param primKey the prim key to search with
953            * @param roleId the role ID to search with
954            * @param ownerId the owner ID to search with
955            * @param actionIds the action IDs to search with
956            * @throws SystemException if a system exception occurred
957            */
958            public void removeByC_N_S_P_R_O_A(long companyId, java.lang.String name,
959                    int scope, java.lang.String primKey, long roleId, long ownerId,
960                    long actionIds)
961                    throws com.liferay.portal.NoSuchResourcePermissionException,
962                            com.liferay.portal.kernel.exception.SystemException;
963    
964            /**
965            * Removes all the resource permissions from the database.
966            *
967            * @throws SystemException if a system exception occurred
968            */
969            public void removeAll()
970                    throws com.liferay.portal.kernel.exception.SystemException;
971    
972            /**
973            * Counts all the resource permissions where roleId = &#63;.
974            *
975            * @param roleId the role ID to search with
976            * @return the number of matching resource permissions
977            * @throws SystemException if a system exception occurred
978            */
979            public int countByRoleId(long roleId)
980                    throws com.liferay.portal.kernel.exception.SystemException;
981    
982            /**
983            * Counts all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63;.
984            *
985            * @param companyId the company ID to search with
986            * @param name the name to search with
987            * @param scope the scope to search with
988            * @return the number of matching resource permissions
989            * @throws SystemException if a system exception occurred
990            */
991            public int countByC_N_S(long companyId, java.lang.String name, int scope)
992                    throws com.liferay.portal.kernel.exception.SystemException;
993    
994            /**
995            * Counts all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63;.
996            *
997            * @param companyId the company ID to search with
998            * @param name the name to search with
999            * @param scope the scope to search with
1000            * @param primKey the prim key to search with
1001            * @return the number of matching resource permissions
1002            * @throws SystemException if a system exception occurred
1003            */
1004            public int countByC_N_S_P(long companyId, java.lang.String name, int scope,
1005                    java.lang.String primKey)
1006                    throws com.liferay.portal.kernel.exception.SystemException;
1007    
1008            /**
1009            * Counts all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and ownerId = &#63;.
1010            *
1011            * @param companyId the company ID to search with
1012            * @param name the name to search with
1013            * @param primKey the prim key to search with
1014            * @param ownerId the owner ID to search with
1015            * @return the number of matching resource permissions
1016            * @throws SystemException if a system exception occurred
1017            */
1018            public int countByC_N_P_O(long companyId, java.lang.String name,
1019                    java.lang.String primKey, long ownerId)
1020                    throws com.liferay.portal.kernel.exception.SystemException;
1021    
1022            /**
1023            * Counts all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63;.
1024            *
1025            * @param companyId the company ID to search with
1026            * @param name the name to search with
1027            * @param scope the scope to search with
1028            * @param primKey the prim key to search with
1029            * @param roleId the role ID to search with
1030            * @return the number of matching resource permissions
1031            * @throws SystemException if a system exception occurred
1032            */
1033            public int countByC_N_S_P_R(long companyId, java.lang.String name,
1034                    int scope, java.lang.String primKey, long roleId)
1035                    throws com.liferay.portal.kernel.exception.SystemException;
1036    
1037            /**
1038            * Counts all the resource permissions where companyId = &#63; and name = &#63; and primKey = &#63; and roleId = &#63; and actionIds = &#63;.
1039            *
1040            * @param companyId the company ID to search with
1041            * @param name the name to search with
1042            * @param primKey the prim key to search with
1043            * @param roleId the role ID to search with
1044            * @param actionIds the action IDs to search with
1045            * @return the number of matching resource permissions
1046            * @throws SystemException if a system exception occurred
1047            */
1048            public int countByC_N_P_R_A(long companyId, java.lang.String name,
1049                    java.lang.String primKey, long roleId, long actionIds)
1050                    throws com.liferay.portal.kernel.exception.SystemException;
1051    
1052            /**
1053            * Counts all the resource permissions where companyId = &#63; and name = &#63; and scope = &#63; and primKey = &#63; and roleId = &#63; and ownerId = &#63; and actionIds = &#63;.
1054            *
1055            * @param companyId the company ID to search with
1056            * @param name the name to search with
1057            * @param scope the scope to search with
1058            * @param primKey the prim key to search with
1059            * @param roleId the role ID to search with
1060            * @param ownerId the owner ID to search with
1061            * @param actionIds the action IDs to search with
1062            * @return the number of matching resource permissions
1063            * @throws SystemException if a system exception occurred
1064            */
1065            public int countByC_N_S_P_R_O_A(long companyId, java.lang.String name,
1066                    int scope, java.lang.String primKey, long roleId, long ownerId,
1067                    long actionIds)
1068                    throws com.liferay.portal.kernel.exception.SystemException;
1069    
1070            /**
1071            * Counts all the resource permissions.
1072            *
1073            * @return the number of resource permissions
1074            * @throws SystemException if a system exception occurred
1075            */
1076            public int countAll()
1077                    throws com.liferay.portal.kernel.exception.SystemException;
1078    
1079            public ResourcePermission remove(ResourcePermission resourcePermission)
1080                    throws SystemException;
1081    }