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 obc)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.ResourcePermission findByRoleId_First(
74          long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.NoSuchResourcePermissionException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.ResourcePermission findByRoleId_Last(
79          long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.NoSuchResourcePermissionException,
81              com.liferay.portal.kernel.exception.SystemException;
82  
83      public com.liferay.portal.model.ResourcePermission[] findByRoleId_PrevAndNext(
84          long resourcePermissionId, long roleId,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.NoSuchResourcePermissionException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      public java.util.List<com.liferay.portal.model.ResourcePermission> findByR_S(
90          long roleId, int scope)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.ResourcePermission> findByR_S(
94          long roleId, int scope, int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portal.model.ResourcePermission> findByR_S(
98          long roleId, int scope, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portal.model.ResourcePermission findByR_S_First(
103         long roleId, int scope,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.NoSuchResourcePermissionException,
106             com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portal.model.ResourcePermission findByR_S_Last(
109         long roleId, int scope,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchResourcePermissionException,
112             com.liferay.portal.kernel.exception.SystemException;
113 
114     public com.liferay.portal.model.ResourcePermission[] findByR_S_PrevAndNext(
115         long resourcePermissionId, long roleId, int scope,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchResourcePermissionException,
118             com.liferay.portal.kernel.exception.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
121         long companyId, java.lang.String name, int scope)
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
125         long companyId, java.lang.String name, int scope, int start, int end)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
129         long companyId, java.lang.String name, int scope, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public com.liferay.portal.model.ResourcePermission findByC_N_S_First(
134         long companyId, java.lang.String name, int scope,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.NoSuchResourcePermissionException,
137             com.liferay.portal.kernel.exception.SystemException;
138 
139     public com.liferay.portal.model.ResourcePermission findByC_N_S_Last(
140         long companyId, java.lang.String name, int scope,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.NoSuchResourcePermissionException,
143             com.liferay.portal.kernel.exception.SystemException;
144 
145     public com.liferay.portal.model.ResourcePermission[] findByC_N_S_PrevAndNext(
146         long resourcePermissionId, long companyId, java.lang.String name,
147         int scope, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchResourcePermissionException,
149             com.liferay.portal.kernel.exception.SystemException;
150 
151     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
152         long companyId, java.lang.String name, int scope,
153         java.lang.String primKey)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
157         long companyId, java.lang.String name, int scope,
158         java.lang.String primKey, int start, int end)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
162         long companyId, java.lang.String name, int scope,
163         java.lang.String primKey, int start, int end,
164         com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     public com.liferay.portal.model.ResourcePermission findByC_N_S_P_First(
168         long companyId, java.lang.String name, int scope,
169         java.lang.String primKey,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.NoSuchResourcePermissionException,
172             com.liferay.portal.kernel.exception.SystemException;
173 
174     public com.liferay.portal.model.ResourcePermission findByC_N_S_P_Last(
175         long companyId, java.lang.String name, int scope,
176         java.lang.String primKey,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.NoSuchResourcePermissionException,
179             com.liferay.portal.kernel.exception.SystemException;
180 
181     public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_PrevAndNext(
182         long resourcePermissionId, long companyId, java.lang.String name,
183         int scope, java.lang.String primKey,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.NoSuchResourcePermissionException,
186             com.liferay.portal.kernel.exception.SystemException;
187 
188     public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R(
189         long companyId, java.lang.String name, int scope,
190         java.lang.String primKey, long roleId)
191         throws com.liferay.portal.NoSuchResourcePermissionException,
192             com.liferay.portal.kernel.exception.SystemException;
193 
194     public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R(
195         long companyId, java.lang.String name, int scope,
196         java.lang.String primKey, long roleId)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R(
200         long companyId, java.lang.String name, int scope,
201         java.lang.String primKey, long roleId, boolean retrieveFromCache)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public java.util.List<com.liferay.portal.model.ResourcePermission> findAll()
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
208         int start, int end)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
212         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     public void removeByRoleId(long roleId)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public void removeByR_S(long roleId, int scope)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public void removeByC_N_S(long companyId, java.lang.String name, int scope)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public void removeByC_N_S_P(long companyId, java.lang.String name,
225         int scope, java.lang.String primKey)
226         throws com.liferay.portal.kernel.exception.SystemException;
227 
228     public void removeByC_N_S_P_R(long companyId, java.lang.String name,
229         int scope, java.lang.String primKey, long roleId)
230         throws com.liferay.portal.NoSuchResourcePermissionException,
231             com.liferay.portal.kernel.exception.SystemException;
232 
233     public void removeAll()
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public int countByRoleId(long roleId)
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public int countByR_S(long roleId, int scope)
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public int countByC_N_S(long companyId, java.lang.String name, int scope)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public int countByC_N_S_P(long companyId, java.lang.String name, int scope,
246         java.lang.String primKey)
247         throws com.liferay.portal.kernel.exception.SystemException;
248 
249     public int countByC_N_S_P_R(long companyId, java.lang.String name,
250         int scope, java.lang.String primKey, long roleId)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     public int countAll()
254         throws com.liferay.portal.kernel.exception.SystemException;
255 }