1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.ResourcePermission;
18  
19  /**
20   * <a href="ResourcePermissionPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       ResourcePermissionPersistenceImpl
29   * @see       ResourcePermissionUtil
30   * @generated
31   */
32  public interface ResourcePermissionPersistence extends BasePersistence<ResourcePermission> {
33      public void cacheResult(
34          com.liferay.portal.model.ResourcePermission resourcePermission);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.ResourcePermission> resourcePermissions);
38  
39      public com.liferay.portal.model.ResourcePermission create(
40          long resourcePermissionId);
41  
42      public com.liferay.portal.model.ResourcePermission remove(
43          long resourcePermissionId)
44          throws com.liferay.portal.NoSuchResourcePermissionException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.ResourcePermission updateImpl(
48          com.liferay.portal.model.ResourcePermission resourcePermission,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.ResourcePermission findByPrimaryKey(
53          long resourcePermissionId)
54          throws com.liferay.portal.NoSuchResourcePermissionException,
55              com.liferay.portal.kernel.exception.SystemException;
56  
57      public com.liferay.portal.model.ResourcePermission fetchByPrimaryKey(
58          long resourcePermissionId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
62          long roleId) throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
65          long roleId, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
69          long roleId, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.ResourcePermission findByRoleId_First(
74          long roleId,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.NoSuchResourcePermissionException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.ResourcePermission findByRoleId_Last(
80          long roleId,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.NoSuchResourcePermissionException,
83              com.liferay.portal.kernel.exception.SystemException;
84  
85      public com.liferay.portal.model.ResourcePermission[] findByRoleId_PrevAndNext(
86          long resourcePermissionId, long roleId,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.NoSuchResourcePermissionException,
89              com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.ResourcePermission> findByR_S(
92          long roleId, int scope)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.ResourcePermission> findByR_S(
96          long roleId, int scope, int start, int end)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.ResourcePermission> findByR_S(
100         long roleId, int scope, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portal.model.ResourcePermission findByR_S_First(
105         long roleId, int scope,
106         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107         throws com.liferay.portal.NoSuchResourcePermissionException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portal.model.ResourcePermission findByR_S_Last(
111         long roleId, int scope,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.NoSuchResourcePermissionException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portal.model.ResourcePermission[] findByR_S_PrevAndNext(
117         long resourcePermissionId, long roleId, int scope,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.NoSuchResourcePermissionException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
123         long companyId, java.lang.String name, int scope)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
127         long companyId, java.lang.String name, int scope, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
131         long companyId, java.lang.String name, int scope, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public com.liferay.portal.model.ResourcePermission findByC_N_S_First(
136         long companyId, java.lang.String name, int scope,
137         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138         throws com.liferay.portal.NoSuchResourcePermissionException,
139             com.liferay.portal.kernel.exception.SystemException;
140 
141     public com.liferay.portal.model.ResourcePermission findByC_N_S_Last(
142         long companyId, java.lang.String name, int scope,
143         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144         throws com.liferay.portal.NoSuchResourcePermissionException,
145             com.liferay.portal.kernel.exception.SystemException;
146 
147     public com.liferay.portal.model.ResourcePermission[] findByC_N_S_PrevAndNext(
148         long resourcePermissionId, long companyId, java.lang.String name,
149         int scope,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.NoSuchResourcePermissionException,
152             com.liferay.portal.kernel.exception.SystemException;
153 
154     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
155         long companyId, java.lang.String name, int scope,
156         java.lang.String primKey)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
160         long companyId, java.lang.String name, int scope,
161         java.lang.String primKey, int start, int end)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
165         long companyId, java.lang.String name, int scope,
166         java.lang.String primKey, int start, int end,
167         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public com.liferay.portal.model.ResourcePermission findByC_N_S_P_First(
171         long companyId, java.lang.String name, int scope,
172         java.lang.String primKey,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.NoSuchResourcePermissionException,
175             com.liferay.portal.kernel.exception.SystemException;
176 
177     public com.liferay.portal.model.ResourcePermission findByC_N_S_P_Last(
178         long companyId, java.lang.String name, int scope,
179         java.lang.String primKey,
180         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181         throws com.liferay.portal.NoSuchResourcePermissionException,
182             com.liferay.portal.kernel.exception.SystemException;
183 
184     public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_PrevAndNext(
185         long resourcePermissionId, long companyId, java.lang.String name,
186         int scope, java.lang.String primKey,
187         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188         throws com.liferay.portal.NoSuchResourcePermissionException,
189             com.liferay.portal.kernel.exception.SystemException;
190 
191     public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R(
192         long companyId, java.lang.String name, int scope,
193         java.lang.String primKey, long roleId)
194         throws com.liferay.portal.NoSuchResourcePermissionException,
195             com.liferay.portal.kernel.exception.SystemException;
196 
197     public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R(
198         long companyId, java.lang.String name, int scope,
199         java.lang.String primKey, long roleId)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R(
203         long companyId, java.lang.String name, int scope,
204         java.lang.String primKey, long roleId, boolean retrieveFromCache)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public java.util.List<com.liferay.portal.model.ResourcePermission> findAll()
208         throws com.liferay.portal.kernel.exception.SystemException;
209 
210     public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
211         int start, int end)
212         throws com.liferay.portal.kernel.exception.SystemException;
213 
214     public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
215         int start, int end,
216         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217         throws com.liferay.portal.kernel.exception.SystemException;
218 
219     public void removeByRoleId(long roleId)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public void removeByR_S(long roleId, int scope)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     public void removeByC_N_S(long companyId, java.lang.String name, int scope)
226         throws com.liferay.portal.kernel.exception.SystemException;
227 
228     public void removeByC_N_S_P(long companyId, java.lang.String name,
229         int scope, java.lang.String primKey)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     public void removeByC_N_S_P_R(long companyId, java.lang.String name,
233         int scope, java.lang.String primKey, long roleId)
234         throws com.liferay.portal.NoSuchResourcePermissionException,
235             com.liferay.portal.kernel.exception.SystemException;
236 
237     public void removeAll()
238         throws com.liferay.portal.kernel.exception.SystemException;
239 
240     public int countByRoleId(long roleId)
241         throws com.liferay.portal.kernel.exception.SystemException;
242 
243     public int countByR_S(long roleId, int scope)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     public int countByC_N_S(long companyId, java.lang.String name, int scope)
247         throws com.liferay.portal.kernel.exception.SystemException;
248 
249     public int countByC_N_S_P(long companyId, java.lang.String name, int scope,
250         java.lang.String primKey)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     public int countByC_N_S_P_R(long companyId, java.lang.String name,
254         int scope, java.lang.String primKey, long roleId)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     public int countAll()
258         throws com.liferay.portal.kernel.exception.SystemException;
259 }